Skip to content

fix(tests): sync stale hourly-cron assertion with #1828's daily sweep schedule - #1832

Merged
seonghobae merged 1 commit into
mainfrom
fix/queue-cancellation-scheduler-daily-cron-oracle
Sep 4, 2026
Merged

fix(tests): sync stale hourly-cron assertion with #1828's daily sweep schedule#1832
seonghobae merged 1 commit into
mainfrom
fix/queue-cancellation-scheduler-daily-cron-oracle

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Summary

#1828 ("reduce organization sweep polling") intentionally moved the scheduler's missed-event recovery and org-wide sweep from hourly ("30 * * * *" / "0 * * * *") to daily ("47 3 * * *" / "17 3 * * *"), but left test_reconciled_scheduler_preserves_current_main_control_plane_fixes asserting the old hourly cron string. This broke the required test suite (backend check) for every .github PR regardless of that PR's own diff.

Found while investigating [peer 1]'s report that #1826/#1823 each left a stale test assertion (fixed in #1829, already merged). After merging #1829 and re-running the suite on fresh main, one additional failure remained — this one, from #1828, a third and independent instance of the same "PR changes behavior, sibling test not updated" class, from the same rapid merge burst.

Fix

Updated the assertion to check for the current daily cron values instead of the stale hourly one. The existing regression guard (assert '*/15 * * * *' not in workflow, preventing a return to the even older quarter-hourly cadence) is unchanged.

Verification

  • Reproduced on fresh main (post-#1829): 1 failed, 2804 passed, 1 skipped, 21 subtests passed.
  • After fix: 2805 passed, 1 skipped, 21 subtests passed.
  • coverage report --fail-under=100: 100%.
  • interrogate: 100%.

Developer experience

Restores real signal to the required test suite for every .github PR — before this fix, no PR's own required checks could pass regardless of its actual diff.

User experience

None (test-infrastructure-only change).

🤖 Generated with Claude Code

… schedule

#1828 ("reduce organization sweep polling") intentionally moved the
scheduler's missed-event recovery and org-wide sweep from hourly
("30 * * * *" / "0 * * * *") to daily ("47 3 * * *" / "17 3 * * *"),
but left test_reconciled_scheduler_preserves_current_main_control_plane_fixes
asserting the old hourly cron -- breaking the required test suite for
every .github PR regardless of diff, independently of the #1826/#1823
staleness #1829 just fixed. Reproduced on fresh main (1 failed, 2804
passed) after merging #1829; fixed and reverified (2805 passed,
coverage 100%, interrogate 100%).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: a59cc996-bceb-4452-96d2-12065c60ed5b

📥 Commits

Reviewing files that changed from the base of the PR and between 9db155a and 43e3a91.

📒 Files selected for processing (1)
  • tests/test_queue_cancellation_scheduler_contract.py

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@seonghobae
seonghobae merged commit 135264d into main Sep 4, 2026
6 of 19 checks passed
@seonghobae
seonghobae deleted the fix/queue-cancellation-scheduler-daily-cron-oracle branch September 4, 2026 05:28
seonghobae added a commit that referenced this pull request Sep 4, 2026
…g after merging main

Merging origin/main (now including #1832/#1835) surfaced a failure in
test_transport_failure_reports_requested_model_and_not_literal_connecting:
expected phase=awaiting_response, got phase=response_error.

Not a base-branch bug -- ruled out by testing fresh main alone (passes
cleanly) and by a peer session's independent clean run. This is a
silent merge-combination bug specific to this branch: this branch's
own unreleased DNS-pinning/TOCTOU hardening also built a careful
connecting-vs-awaiting_response phase distinction (three prior PRs:
bebd7c7, e7b29f2, 5c9d30e) via a `reported_phase` ternary gated on
`active_phase == "connecting"`. Main's #1831 separately added
`active_phase = "response_error"` for the HTTPError case (to also
extract served_model from HTTP error bodies) on a non-overlapping
line, so the merge produced zero conflict markers -- but by the time
this branch's ternary runs, active_phase has already been overwritten,
silently defeating the phase distinction for exactly the HTTPError
case.

Verified "response_error" is not a regression: it is strictly more
specific than the old "awaiting_response" fallback (an HTTPError
proves a real response arrived, unlike a genuinely ambiguous timeout),
and still satisfies the test's real safety property (never mislabel a
real HTTP-error response as "connecting"). The two sibling tests
covering the non-HTTPError paths are untouched, confirming the fix
scope is exactly this one test's stale string expectation, not a
deeper production-code issue. Updated the assertion and docstring; no
production code change needed.

Full verification after fix: 2811 passed, coverage 100%, interrogate
100%.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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