modules lint: a meta.yml lock_file path that does not exist should fail, not warn
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start in nf_core/modules/lint/module_containers.py at containers_conda_lock_exists and inspect how it handles a configured lock_file whose path is missing. Run nf-core modules lint eautils/gtf2bed or the relevant lint tests to see the current warning. Make a set-but-missing path fail while a missing lock_file remains a warning.
Written by the indexing model from the issue text.
Description
Description of the bug
containers_conda_lock_exists in nf_core/modules/lint/module_containers.py emits only a warning when a meta.yml lock_file path points at a file that does not exist, so a stale path passes CI.
This happened with eautils/gtf2bed in nf-core/modules: after the rename from ea-utils/gtf2bed, the lock_file entries still pointed at modules/nf-core/ea-utils/gtf2bed/.conda-lock/... (fixed in nf-core/modules#13697). Pipelines that generate their conda_lock_files configs from meta.yml inherit the dead path (seen in nf-core/rnaseq#1996). As more modules move to this structure, renames are likely to hit it again.
Suggestion: make "lock_file is set but the file does not exist" a failure. "lock_file missing" can stay a warning.
Command used and terminal output
$ nf-core modules lint eautils/gtf2bed # nf-core/modules before #13697
[✔] 69 Tests Passed
[!] 2 Test Warnings # containers_conda_lock_exists: Conda lock_file not found for linux/amd64 and linux/arm64
[✗] 0 Tests Failed
System information
nf-core/tools 4.1.0 (the check is unchanged on dev)
- Dominant language
- Python
- Stars
- 333
- Forks
- 273
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 51
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nf-core/tools
-
bug schema
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
GitHub handle should allow underscoresPossibly taken @PrakarshSrivastav claimed this 20 days ago. Openbug good-first-issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nf-core/tools#4581 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
`modules containers create`: Wave ignores `basePackages`, because the request puts it at the top levelMay be free again A pull request for this issue was closed without being merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nf-core/tools#4542 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Incorrect if-statement logic in nf-core modules test outputPossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
nf-core/tools#4327 · 4 comments ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
UKGovernmentBEIS/inspect_ai#6733 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ProyectoRespira/respira-webapp#334 ·
Maintainers usually reply within 1 day
-
bug security-alert
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
spectrayan/carefold#391 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Jakeschincariol/instagram-agent-skill#83 ·
Maintainers usually reply within 10 days
-
Difficulty 1/5 Under an hour Newbie friendliness 64/100