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

PrincetonUniversity / slurmise / 33889246435
91%

Build:
DEFAULT BRANCH: main
Ran 04 Sep 2026 03:24PM UTC
Jobs 1
Files 26
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

04 Sep 2026 03:23PM UTC coverage: 90.624% (+0.07%) from 90.554%
33889246435

push

github

web-flow
feat: record known usage without querying sacct (#107)

* feat: accept known usage on raw-record instead of querying sacct

raw-record always asked sacct for max RSS and elapsed time, so a record could
only be written on a machine with a working scheduler. Add --memory and
--runtime to supply both directly; when both are given the record is treated as
already processed and sacct is not consulted.

This lets a database be populated where no scheduler is present, which is what
makes an offline walkthrough of slurmise possible. Supplying only one of the
two still defers to sacct for both, as before.

Assisted-by: Claude Code:claude-opus-5

* fix: reject half-specified usage on raw-record

Passing only --memory or only --runtime fell through to sacct, which then
overwrote the value with its own. Refuse the pair outright rather than
silently discarding what the caller measured.

Decide this at the CLI rather than in raw_record, so the API no longer
overrides a caller that explicitly passed processed_data=False.

Add a no_sacct fixture for tests whose contract is that the scheduler is
never consulted. Leaving sacct unmocked is not equivalent: on a cluster it
answers with live accounting data rather than failing.

Assisted-by: Claude Code:claude-opus-5

* refactor: rename flags, validate in API not CLI

Rename --memory/--runtime to --used-mbs/--used-seconds which is
arguably a bad idea. Mixture of minutes/seconds in slurmise currently.

Infer whether sacct is needed from the job object rather than using
`processed_data` flag. Raise when only time or mem are supplied to API.

Assisted-by: Claude Code:claude-opus-5

* remove processed_data

* fix: Cleanup main merge into PR issue

- Also remove remaining processed_data flag

* chore: Use minutes instead of seconds after PR 112

---------

Co-authored-by: Troy Comi <troycomi@gmail.com>

293 of 334 branches covered (87.72%)

Branch coverage included in aggregate %.

34 of 36 new or added lines in 4 files covered. (94.44%)

2191 of 2407 relevant lines covered (91.03%)

0.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.4
-2.6% tests/conftest.py
Jobs
ID Job ID Ran Files Coverage
1 33889246435.1 04 Sep 2026 03:24PM UTC 26
90.62
GitHub Action Run
Source Files on build 33889246435
  • Tree
  • List 26
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • e7f80cc5 on github
  • Prev Build on main (#33797120324)
  • Next Build on main (#34258646177)
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