• 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: main
CHANGE BRANCH
x
Reset
  • main
  • bugfix_job_database.iterate_jobs
  • chore/defer_slkearn_import
  • copilot/fix-slurmise-record-issue
  • feat/hatch_to_uv
  • feat/knn_regressor
  • fix/SLURM_STEPID
  • fix/raw_predict
  • fix/release
  • fix/slurmise-record-no-slurmid
  • gp/expand_raw_commands
  • gp/fix_memory
  • gp/fix_workflows
  • gp/refactor_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
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
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
25214554667 main Patch snakefile function (#46) * wip: patch snakefile function * wip: snakemake estimates, starting threads * wip: lint and format * wip: pass tests * docs: readme for snakemake patching * wip: snakemake integration tests * test: added run ... push 01 May 2026 12:39PM UTC web-flow github
87.47
23301901537 main fix: more general model selection (#69) * fix: more general model selection * feat: adding a few more tests push 19 Mar 2026 03:13PM UTC web-flow github
93.19
22362900574 main Migration to uv (#63) * feat:Transfer to uv * fix: ruff will not check about * fix: coverage report * fix: coverage * fix: coverage * fix: coverage * chore: Try to skip uv python install w/ sync flag * chore: avoid GHA uv python install w/... push 24 Feb 2026 05:43PM UTC web-flow github
93.11
21257183666 main Merge pull request #58 from PrincetonUniversity/bugfix_job_database.iterate_jobs Bugfix job database.iterate jobs push 22 Jan 2026 04:57PM UTC web-flow github
94.42
20074151533 main chore: unify numeric and category names (#60) * chore: unify numeric and category names * feat: add pre-commit check for categorical/numerical * Update src/slurmise/utils.py Co-authored-by: Ioannis Paraskevakos <iparask@princeton.edu> -------... push 09 Dec 2025 06:24PM UTC web-flow github
93.14
19574264862 main Feat/knn regressor (#53) * feat: adding knn regressor * tests: adding knn test * fix: a few comments * fix: lint * fix: addressing Troy's comments * feat: abstracting duplicate code * feat: a bit more generalization * feat: a bit more gene... push 21 Nov 2025 02:54PM UTC web-flow github
93.15
19339125758 main fix: better errors with missing file parsers (#54) push 13 Nov 2025 04:51PM UTC web-flow github
93.08
See All Builds (82)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc