Skip to content

test(orchestration): add DagScheduler tests for inject_tasks caps and LevelBarrier dispatch#2260

Merged
bug-ops merged 1 commit intomainfrom
test-orchestration-add-dagsche
Mar 27, 2026
Merged

test(orchestration): add DagScheduler tests for inject_tasks caps and LevelBarrier dispatch#2260
bug-ops merged 1 commit intomainfrom
test-orchestration-add-dagsche

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 27, 2026

Summary

All tests are inline #[cfg(test)] in crates/zeph-orchestration/src/scheduler.rs. 249 tests in the crate pass (was 242).

Test plan

  • cargo nextest run -p zeph-orchestration --lib — 249 passed
  • cargo +nightly fmt --check — clean
  • cargo clippy -p zeph-orchestration --all-features -- -D warnings — clean
  • cargo nextest run --workspace --lib --bins — 6253 passed

Closes #2241, closes #2242

… LevelBarrier dispatch

Adds 7 inline #[cfg(test)] tests to scheduler.rs covering the two missing
test areas identified in #2241 and #2242:

inject_tasks replan caps (#2241):
- per-task cap: second inject for same task_id is a silent no-op
- global cap: second inject after max_replans exhausted is a silent no-op
- topology_dirty flag is set by inject_tasks and cleared by the next tick()
- cycle detection: self-referencing injected task returns VerificationFailed

LevelBarrier dispatch (#2242):
- level advance: current_level increments when all tasks at that level are terminal
- transitive failure propagation: Skip strategy BFS-marks all descendants Skipped
- current_level reset: tick() resets current_level down via .min() after inject_tasks
  adds a task at depth < current_level

Closes #2241, closes #2242
@github-actions github-actions bot added documentation Improvements or additions to documentation rust Rust code changes labels Mar 27, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 27, 2026 12:21
@github-actions github-actions bot added tests Test-related changes size/L Large PR (201-500 lines) labels Mar 27, 2026
@bug-ops bug-ops merged commit 471c0d7 into main Mar 27, 2026
25 checks passed
@bug-ops bug-ops deleted the test-orchestration-add-dagsche branch March 27, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation rust Rust code changes size/L Large PR (201-500 lines) tests Test-related changes

Projects

None yet

1 participant