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

PrincetonUniversity / slurmise / 28182266059
89%

Build:
DEFAULT BRANCH: main
Ran 25 Jun 2026 03:44PM UTC
Jobs 2
Files 27
Run time 1min
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

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

Jobs
ID Job ID Ran Files Coverage
1 28182266059.1 25 Jun 2026 03:44PM UTC 27
88.73
GitHub Action Run
2 28182266059.2 25 Jun 2026 03:44PM UTC 27
88.73
GitHub Action Run
Source Files on build 28182266059
  • Tree
  • List 27
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 317a7371 on github
  • Prev Build on main (#26786692441)
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