test: avoid a forced thread-pool hop in cache concurrency checks - #5171
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe cache concurrency test now uses inline continuation for the held lookup. It also verifies that execution remains incomplete before the first lookup is released. ChangesDistributed cache concurrency test
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The test synchronization change preserves the concurrency and cleanup checks, so the PR is mergeable. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The change addresses
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Git: CodeRabbit could not clone the repository, so clone-backed analysis was skipped and this review may be incomplete. Verify repository clone access, such as SSH credentials, before requesting another full review. If clone access is intentionally unavailable, use 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. A rabbit holds the cache gate tight Comment |
|
Linux validation for the cache-release fix now passes on #5170 at 716cec4: https://github.com/thomhurst/ModularPipelines/actions/runs/35072807013/job/104719889014. All 254 distributed tests passed with coverage in 19.481 seconds, including all 50 cache concurrency repetitions; the entire Linux pipeline passed. This contrasts with two post-release timeouts on the prior head under the same workflow. #5171's own Linux/macOS checks are still running. CodeRabbit review disposition: the named test and adjacent two-line synchronization comment document this existing test change; no library API or documentation warning was introduced. Its repository-clone limitation remains external to this diff (local checkout, build, and tests succeeded). Codex completed review of 45e5185 with no findings. Claude's workflow completed without publishing a review; all inline/review surfaces have no findings. |
|
Merged as 6c1341e after all 17 checks passed on 45e5185. This branch's Linux pipeline passed all 254 distributed tests with coverage in 26.743 seconds: https://github.com/thomhurst/ModularPipelines/actions/runs/35072756973/job/104718960749. The same test fix also passed all 254 tests and the complete Linux pipeline in #5170. No unresolved review threads or findings remain. All branch workflow runs are complete. |
Problem and change
The Linux pipeline on #5170 timed out two repetitions of
Cache_Lookups_For_Ready_Modules_Run_Concurrently. Its trace shows both lookups started and the release signal was sent within 0.5 seconds, but the first lookup never resumed before the five-second deadline. The same post-release stall is recorded in #5101.Allow the test's release gate to resume its held lookup inline, removing the unnecessary forced thread-pool hop. Assert that execution remains incomplete after both lookup starts have been observed. Keep all 50 repetitions, the five-second timeout, and cancellation cleanup. This preserves the requirement that independent ready-module cache lookups overlap; it makes no production scheduling change.
Validation
Fixes #5101.
Failure evidence: https://github.com/thomhurst/ModularPipelines/actions/runs/35070619377/job/104712855730
Summary by CodeRabbit