• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PrincetonUniversity / slurmise
89%

Build:
DEFAULT BRANCH: main
Repo Added 16 Jun 2025 04:26PM UTC
Files 27
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • bugfix_job_database.iterate_jobs
  • chore/defer_slkearn_import
  • copilot/fix-slurmise-record-issue
  • feat/hatch_to_uv
  • feat/knn_regressor
  • fix/raw_predict
  • fix/release
  • fix/slurmise-record-no-slurmid
  • gp/expand_raw_commands
  • gp/fix_memory
  • gp/fix_workflows
  • gp/refactor_main
  • main
  • print-no-toml
  • tc/better-file-errors
  • tc/consistent-names
  • tc/dry-parse
  • tc/error-report
  • tc/job_data_from_dict
  • tc/patch-snakemake
  • tc/resource-minima
  • tc/update-config

25 Jun 2026 03:43PM UTC coverage: 88.733% (+1.1%) from 87.601%
28182266059

push

github

web-flow
fix: centralize slurm job id resolution in slurm.py (#82)

* wip: Req'd slurmid for slurm.get_slurm_job_sacct

* refactor(slurm): centralize job id resolution in slurm.py

Add get_current_job_id, resolve_job_id and split_job_id so all SLURM
specifics (env var names, id formats, sacct) live in slurm.py. Rename
the step_name parameter of parse_slurm_job_metadata to step_id to match
the CLI and the rest of the codebase. Drop the SLURM_JOBID env check in
get_slurm_job_sacct so post-mortem recording with an explicit job id
works outside of a SLURM job.

* fix: resolve slurm job id from environment before combining with step id

Closes #79. Passing --step-id without --slurm-id produced the literal
job id "None.<step>" and ran 'sacct -j None'. All call sites now use
slurm.resolve_job_id, which falls back to SLURM_JOB_ID/SLURM_JOBID
before appending the step id, and slurm.split_job_id instead of ad-hoc
string splitting. api.py no longer reads the environment directly.

Also fixes a latent TypeError in JobDatabase.update_missing_data, which
called parse_slurm_job_metadata with a step_id keyword that did not
exist; tests now mock get_slurm_job_sacct (the subprocess boundary)
instead of parse_slurm_job_metadata so id resolution and sacct parsing
are exercised for real.

* chore: Generalize tests

280 of 330 branches covered (84.85%)

Branch coverage included in aggregate %.

153 of 153 new or added lines in 9 files covered. (100.0%)

1996 of 2235 relevant lines covered (89.31%)

1.79 hits per line

Relevant lines Covered
Build:
Build:
2235 RELEVANT LINES 1996 COVERED LINES
1.79 HITS PER LINE
Source Files on main
  • Tree
  • List 27
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28182266059 main fix: centralize slurm job id resolution in slurm.py (#82) * wip: Req'd slurmid for slurm.get_slurm_job_sacct * refactor(slurm): centralize job id resolution in slurm.py Add get_current_job_id, resolve_job_id and split_job_id so all SLURM specif... push 25 Jun 2026 03:44PM UTC web-flow github
88.73
28182110484 fix/slurmise-record-no-slurmid Merge 54efabcf5 into 62cf5c099 Pull #82 25 Jun 2026 03:41PM UTC web-flow github
88.73
27376802800 fix/slurmise-record-no-slurmid Merge f11c7f0ac into 62cf5c099 Pull #82 11 Jun 2026 08:55PM UTC web-flow github
88.73
26786692441 main Fix TypeError in `raw_record` when `--slurm-id` is omitted (#80) * Initial plan * Fix: fall back to SLURM_JOB_ID env var when slurm_id is None in raw_record * Fix: raise descriptive ValueError when both slurm_id and SLURM_JOB_ID are missing * ... push 01 Jun 2026 10:48PM UTC web-flow github
87.6
26786622226 print-no-toml Merge 257d16ee3 into c0673020d Pull #81 01 Jun 2026 10:46PM UTC web-flow github
87.65
26601369001 print-no-toml Merge 274eee02f into c0673020d Pull #81 28 May 2026 08:49PM UTC web-flow github
87.7
26598486555 copilot/fix-slurmise-record-issue Merge f965d2ba1 into c0673020d Pull #80 28 May 2026 07:59PM UTC web-flow github
87.6
25925465036 main chore: Only import slurmise.fit when necessary (#73) - Noticing that `slurmise --help` would take a second or two, which isn't bad but felt a little sluggish - I've tested defering slurmise.fit import to only occur when it's needed and the `... push 15 May 2026 03:13PM UTC web-flow github
87.47
25883034661 chore/defer_slkearn_import Merge 496426090 into 161fe4b0b Pull #73 14 May 2026 08:12PM UTC web-flow github
87.47
25225703240 tc/update-config Merge 1dd9585b8 into 161fe4b0b Pull #71 01 May 2026 05:49PM UTC web-flow github
87.18
See All Builds (79)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc