test(logging): start blocking concurrency workers independently - #5131
Conversation
|
Warning Review limit reachedNext included review available in 7 minutes. View limit detailsLimit details: You’ve used all 4 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
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 |
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. |
Greptile SummaryThis PR makes two logging concurrency tests independent of ThreadPool worker availability by starting their blocking workers as long-running tasks on the default scheduler.
Confidence Score: 5/5The PR appears safe to merge; the scheduling changes preserve the tests’ execution-context, synchronization, exception-observation, and cleanup semantics. The changed delegates are synchronous, the nested worker continues to inherit the outer ambient secret-emission scope, and both tests release their blocking gates before awaiting worker completion. No actionable regression was identified.
|
| Filename | Overview |
|---|---|
| test/ModularPipelines.UnitTests/Logging/SecretMaskingPatternTests.cs | Replaces ThreadPool-dependent test workers with dedicated long-running tasks while preserving execution-context flow and cleanup. |
Reviews (1): Last reviewed commit: "test(logging): isolate blocking workers ..." | Re-trigger Greptile
ReviewChange: In Correctness: This is a sound fix for the described flakiness. These workers block synchronously on The pattern also matches the file's own precedent: Non-blocking suggestion: The same "block on a gate right after starting" shape appears in many other No other issues found. The description's validation notes (Release build, all |
|
@coderabbitai review |
Two logging concurrency tests failed in Linux CI while waiting for Task.Run workers to start. Start their blocking workers with TaskCreationOptions.LongRunning and TaskScheduler.Default, matching the dedicated second writer already used by the serialization test. The nested child still inherits ExecutionContext, so the test continues to exercise inherited secret-emission scopes.
The serialization, nested-emission, masking, and timeout assertions remain intact. This removes ThreadPool scheduling from worker startup; a fresh full Linux run is still required to confirm the original CI blocker is resolved.
Validation:
Closes #5129
Refs #5100