Repository navigation
test: expect the tests gate's cancelled-run message for a cancelled preflight - #16173
austinywang wants to merge 1 commit into
Conversation
…reflight #16150 made the ci.yml tests gate report any cancelled need as "cancelled: <job>" and exit before it reads the routing verdict. It still fails the gate, but test_linux_failure_still_blocks_tests_after_macos_succeeds kept expecting "linux preflight did not pass: cancelled" for a cancelled linux-preflight. So the canonical CI guard profile failed on every pull request that routes it, and ci.yml's macOS admission gate then declined that pull request's macOS jobs (seen on #16164). The test still requires a non-zero exit for failure, cancelled and skipped preflights. For cancelled it now checks the gate's cancelled-run message and that no routing verdict is printed. Refs #15488 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe Linux preflight test now checks cancellation separately from other unsuccessful outcomes. It expects the cancellation message first and retains the outcome-specific failure message for other outcomes. ChangesLinux preflight test
Priority: ⬆️ High Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Other Merge Risk: ⚪ Minimal · up to This change updates a CI test to match the existing gate behavior. No merge-blocking risk is established. 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches 💡 3📝 Generate docstrings 💡
⚔️ Resolve merge conflicts 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing as a duplicate of #16168, which opened nine minutes earlier and makes the same fix to |
Since #16150, the canonical CI guard profile fails on every pull request that routes it, and ci.yml's macOS admission gate then declines that pull request's macOS jobs. It hit #16164 (guard job):
Part of #15488.
Why
#16150 made the tests gate report any cancelled need as
cancelled: <job>and exit before it reads the routing verdict. It still fails the gate. The test kept expectinglinux preflight did not pass: cancelledfor a cancelledlinux-preflight. The gate's actual output:linux preflight did not pass: failurecancelled: linux-preflight/this run was stopped before it reported a test verdict; …linux preflight did not pass: skippedChange
The test still requires a non-zero exit for all three outcomes. For
cancelledit checks the cancelled-run message and that no routing verdict is printed. The other two keep their exact message check.Verification
python3 tests/test_ci_change_areas.py: all 271 tests pass. The unchanged test failed as above.python3 tests/test_ci_linux_guard_routing.py: 35 tests OK.python3 scripts/verify-local.py: 15 of 16 selected checks passed.Changelog
none
🤖 Generated with Claude Code
Summary by cubic
Updates
test_linux_failure_still_blocks_tests_after_macos_succeedsso a cancelledlinux-preflightexpects the gate'scancelled: linux-preflightmessage instead oflinux preflight did not pass: cancelled. Since #16150 the gate reports any cancelled need ascancelled: <job>and exits before reading the routing verdict, so the old assertion broke and made the canonical CI guard profile fail on every pull request that routes it.Written for commit 219c894. Summary will update on new commits.
Summary by CodeRabbit