Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/customdumpsoftwareversions #51

Merged
merged 2 commits into from
Mar 21, 2024
Merged

Conversation

apetkau
Copy link
Member

@apetkau apetkau commented Mar 20, 2024

This fixes an error when generating the software versions file due to an invalid command for extracting the version of gzip.

@@ -23,7 +23,7 @@ process GZIP_FILES {
gzip -c ${file_in} > ${output_name}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
gzip: \$(echo \$(gzip --version 2>&1) | sed 's/^.*coreutils) //; s/ .*\$//')
gzip: \$(echo \$(gzip --help 2>&1 | head -n 1 ) | sed -e 's/ (.*//')
Copy link
Member Author

@apetkau apetkau Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version of gzip in the container running this process does not have a --version flag. The closest is --help, which gives:

BusyBox v1.22.1 (2014-05-23 01:24:27 UTC) multi-call binary.

Usage: gzip [-cfd] [FILE]...

Compress FILEs (or stdin)

        -d      Decompress
        -c      Write to stdout
        -f      Force

This PR extracts the top line and uses that for the version (specifically uses BusyBox v1.22.1). I'm including BusyBox in the version since I believe these are custom versions of software (like gzip) that are smaller/scaled down: https://www.busybox.net/about.html

Copy link

github-actions bot commented Mar 20, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit d9bdba5

+| ✅ 146 tests passed       |+
#| ❔  31 tests were ignored |#
!| ❗   2 tests had warnings |!

❗ Test warnings:

  • readme - README contains the placeholder zenodo.XXXXXXX. This should be replaced with the zenodo doi (after the first release).
  • schema_lint - Schema $id should be https://raw.githubusercontent.com/phac-nml/mikrokondo/master/nextflow_schema.json
    Found https://raw.githubusercontent.com/phac-nml/mikrokondo/main/nextflow_schema.json

❔ Tests ignored:

  • files_exist - File is ignored: CODE_OF_CONDUCT.md
  • files_exist - File is ignored: assets/nf-core-mikrokondo_logo_light.png
  • files_exist - File is ignored: docs/images/nf-core-mikrokondo_logo_light.png
  • files_exist - File is ignored: docs/images/nf-core-mikrokondo_logo_dark.png
  • files_exist - File is ignored: .github/ISSUE_TEMPLATE/config.yml
  • files_exist - File is ignored: .github/workflows/awstest.yml
  • files_exist - File is ignored: .github/workflows/awsfulltest.yml
  • files_exist - File is ignored: docs/output.md
  • files_exist - File is ignored: docs/README.md
  • files_exist - File is ignored: docs/usage.md
  • nextflow_config - Config variable ignored: manifest.name
  • nextflow_config - Config variable ignored: manifest.homePage
  • files_unchanged - File does not exist: CODE_OF_CONDUCT.md
  • files_unchanged - File ignored due to lint config: LICENSE or LICENSE.md or LICENCE or LICENCE.md
  • files_unchanged - File ignored due to lint config: .github/CONTRIBUTING.md
  • files_unchanged - File ignored due to lint config: .github/ISSUE_TEMPLATE/bug_report.yml
  • files_unchanged - File does not exist: .github/ISSUE_TEMPLATE/config.yml
  • files_unchanged - File ignored due to lint config: .github/ISSUE_TEMPLATE/feature_request.yml
  • files_unchanged - File ignored due to lint config: .github/PULL_REQUEST_TEMPLATE.md
  • files_unchanged - File ignored due to lint config: .github/workflows/branch.yml
  • files_unchanged - File ignored due to lint config: .github/workflows/linting.yml
  • files_unchanged - File ignored due to lint config: assets/email_template.html
  • files_unchanged - File ignored due to lint config: assets/email_template.txt
  • files_unchanged - File ignored due to lint config: assets/sendmail_template.txt
  • files_unchanged - File does not exist: assets/nf-core-mikrokondo_logo_light.png
  • files_unchanged - File does not exist: docs/images/nf-core-mikrokondo_logo_light.png
  • files_unchanged - File does not exist: docs/images/nf-core-mikrokondo_logo_dark.png
  • files_unchanged - File does not exist: docs/README.md
  • files_unchanged - File ignored due to lint config: .gitignore or .prettierignore or pyproject.toml
  • actions_awstest - 'awstest.yml' workflow not found: /home/runner/work/mikrokondo/mikrokondo/.github/workflows/awstest.yml
  • multiqc_config - multiqc_config

✅ Tests passed:

Run details

  • nf-core/tools version 2.13.1
  • Run at 2024-03-20 22:31:14

@apetkau apetkau marked this pull request as ready for review March 20, 2024 22:42
@apetkau apetkau requested review from mattheww95 and emarinier March 21, 2024 14:02
Copy link
Member

@emarinier emarinier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@apetkau apetkau merged commit a1800f3 into dev Mar 21, 2024
4 checks passed
@apetkau apetkau deleted the fix/customdumpsoftwareversions branch March 21, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants