Skip to content

fix(profiles): explicit time units for runtime - #45

Merged
berntpopp merged 2 commits into
mainfrom
fix/runtime-units
Oct 16, 2026
Merged

berntpopp merged 2 commits into
mainfrom
fix/runtime-units

Conversation

@berntpopp

Copy link
Copy Markdown
Member

fix(profiles): use explicit time units for runtime in set-resources and default-resources

Snakemake parses profile set-resources and default-resources values with humanfriendly, so a bare integer runtime: 480 is read as 480 seconds. On BIH this produced TimeLimit=00:08:00 and routed the jobs to the 1 h debug partition, where SLURM killed them.

Fix: in every profiles/*/config*.yaml, write all runtime values with an explicit unit, e.g. runtime: "480m". Leave rule-level runtime= in .smk resources (ints in minutes, which are correct) unchanged, unless a profile overrides them.

Acceptance: a test parses every profile YAML and asserts that no runtime value in default-resources or set-resources is a bare integer. Commit with a clear message.

🤖 Gemini 4 Argon; reviewed by Codex GPT-6 Astra; adjudicated by Argon.

…nd default-resources

Snakemake parses profile default-resources and set-resources runtime values with humanfriendly, treating bare integers as seconds. Quote all profile runtime values with explicit 'm' units so SLURM receives minutes.

Fixes #39

Co-Authored-By: Gemini 4 Argon <noreply@google.com>
@berntpopp

Copy link
Copy Markdown
Member Author

Final adjudication of the Codex review (Gemini 4 Argon, ponytail): approve

All 23 profile runtime values across BIH, Charite, and default profiles use explicit minute units (e.g. '480m'), preventing Snakemake humanfriendly parsing as seconds while leaving rule-level .smk integers intact. External review reported zero findings; profile unit tests and Ruff lint/format checks pass.

Finding Decision Reason

Tests: test_bih_profile_and_runtimes passed; ruff check and ruff format --check passed (8 files)

Co-Authored-By: Gemini 4 Argon <noreply@google.com>
@berntpopp
berntpopp merged commit 6d39e28 into main Oct 16, 2026
2 checks passed
@berntpopp
berntpopp deleted the fix/runtime-units branch October 18, 2026 23:33
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.

1 participant