Skip to content

Add regression tests for all closed issues#40

Merged
powderluv merged 1 commit intomainfrom
users/powderluv/regression-tests-all-issues
Mar 27, 2026
Merged

Add regression tests for all closed issues#40
powderluv merged 1 commit intomainfrom
users/powderluv/regression-tests-all-issues

Conversation

@powderluv
Copy link
Copy Markdown
Collaborator

Summary

17 new tests (706 → 723) ensuring every closed issue has a regression test. Issues without an existing test now have one that would catch a reintroduction of the bug.

Tests Issue What's verified
t52_15–17 #37 listen_addr preserved from config; CLI --listen overrides when set
t07_24–26 #27 Scheduler skips reserved nodes for unreserved jobs; reserved jobs land only on reserved nodes
t05_9–11 #10 #22 squeue excludes terminal jobs by default; --all includes them
t50_75 #25 Single-node partition hostlist expands to count=1
t50_76 #26 reservation field present and passable on JobSpec
t50_77 #28 Reservation fields (end_time, nodes) are mutable for update
t50_78 #30 Single-node name matches hostlist expansion exactly
t50_79 #36 NODELIST uses registered node names, not static partition spec
container.rs #35 #23 Error includes dir searched; SPUR_IMAGE_DIR overrides default; default is spur path

Issues not covered by unit tests (build/infra concerns): #7 (protoc version — CI only), #8 (CLI arg parsing — integration only), #9/#24 (command output format — integration only), #32 (actual process isolation — integration only).

Test plan

  • cargo test — 723 tests, 0 failures
  • cargo fmt --check — clean

🤖 Generated with Claude Code

Adds 17 new unit tests (706 → 723) ensuring every closed issue has a
test that would catch a regression.

Changes:
- t52_config.rs t52_15–17: #37 — listen_addr preserved from config
  file; default is parseable; CLI --listen overrides config when set
- t07_sched.rs t07_24–26: #27 — scheduler skips reserved nodes for
  unreserved jobs; reserved jobs land only on reserved nodes; no-reservation
  baseline
- t05_queue.rs t05_9–11: #10 #22 — squeue excludes terminal jobs by
  default; --all includes them; cancelled is terminal
- t50_core.rs t50_75–79: #25 single-node count >0; #26 reservation
  field on JobSpec; #28 reservation fields are updatable; #30 single-node
  name matches hostlist expansion; #36 NODELIST uses registered names
- t50_core.rs t50_82–88: renumbered from t50_75–81 (no behaviour change)
- container.rs: #35 #23 — error message includes directory searched;
  image_dir() returns system default without env var; image_dir() returns
  SPUR_IMAGE_DIR when set (agent and CLI now use same directory)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@powderluv powderluv merged commit bb3603d into main Mar 27, 2026
4 checks passed
@powderluv powderluv deleted the users/powderluv/regression-tests-all-issues branch March 27, 2026 20:52
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