Repository navigation
Isolate shared disposal span capture by parent activity - #7492
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@codex review |
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. |
ReviewThis is a test-only change. It replaces the Why the fix works
Minor, non-blocking
I haven't run the tests. The PR notes Ubuntu net8.0 concurrent validation is left to CI, so check that result before merging. LGTM. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
[Low impact] The PR appears safe to merge; the previous test failure is fixed and no new issues were found. SummaryThe PR isolates disposal-span capture by each test’s parent activities instead of relying on the current async flow.
Reviews (3) · Last reviewed commit: "Remove reporter dependency from span reg..." · Reviewed by Greptile |
|
Checked the blocker of #7471 under this PR’s lock. Current head 72494fb has a positive Claude verdict and no inline comments or review threads. The two Claude suggestions are explicitly nonblocking: CreateContext always initializes the activities, and existing parent assertions cover the accepted parent IDs. No fix is needed for promotion. Codex review is running for this exact head; its request at 10:54:42 UTC is still within the 15-minute window and has only an eyes reaction, so approval cannot yet be inferred or requested again. CodeQL run 41623113033 is also running. Keep this PR draft until Codex completes positively, then promote, read the new ready-for-review Claude verdict, and arm auto-merge. After this merges, rebase #7471 onto main for fresh CI. Resolve routes checked: this is the existing closing PR for #7435, not an already-shipped or superseded change; there is no finished parent or stale acceptance scope to close, and no external or human decision to park behind. The remaining gates complete asynchronously; no on-hold label or unchanged-head rerun is appropriate. |
|
Rechecked from assigned #7471 under the #7492 lock. Current head ae3979c has positive Claude and Codex verdicts; all review surfaces were read and all threads are resolved. All .NET jobs and Ubuntu/Windows AOT jobs passed. The macOS engine job has now passed too. The sole remaining job is AOT (macos-latest), actively executing Run Pipeline in run 41626176380. Assert-PrGreen.ps1 -ForAutoMerge passes; squash auto-merge remains armed. Resolve routes checked: main still has a different disposal-span test implementation; #7492 remains the open closing PR for #7435 and its body has Closes #7435. The issue remains open with no native children or prerequisite dependencies, and its acceptance criteria match this fix. Timeline links show no replacement. There is no finished parent, stale remaining scope, outstanding review fix, failed current-head job, or reversible decision to implement. No human, upstream, credentials, or ownership blocker applies. Rebasing this reviewed fix or restarting passed checks would not resolve the actively executing hosted job. No on-hold label is appropriate. Remaining wait: run 41626176380. After #7492 merges, rebase #7471 onto fresh main and push for fresh CI. |
ReviewThe change looks correct and I found no blocking issues.
Minor, non-blocking: The Ubuntu net8.0 concurrent run in CI is the remaining confirmation. |
|
Pushed review fix 0cdc0c8 and resolved the CodeRabbit thread with the commit and validation evidence. All 6 targeted SharedObjectDisposeSpanTests pass in Release net10.0 on macOS arm64. New head is confirmed on GitHub. Auto-merge was disabled before pushing; fresh Claude review and CI are queued. Recheck all review surfaces and current-head verdicts before rearming via Enable-AutoMerge.ps1. After this merges, #7471 can rebase onto main for fresh CI. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0cdc0c8593
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
ReviewTest-only change, and it looks sound. Keying capture on each context's unique class and assembly span IDs, instead of ambient Minor, non-blocking notes:
No blocking issues. LGTM. |
|
Fixed in ae3979c. The regression now creates an explicit unrelated parent through CreateStoppedActivity, removing its dependency on the runner activity. With TUNIT_DISABLE_HTML_REPORTER=1, the isolated regression passes (1/1) and all SharedObjectDisposeSpanTests pass (6/6), Release net10.0 on macOS arm64. git diff --check passes. All three duplicate findings are fixed and their threads resolved. Fresh current-head reviews and CI must complete before rearming auto-merge. After merge, rebase #7471 onto main for fresh CI. |
ReviewThe change is sound. It fixes the flakiness at its cause. The old What I checked
Minor, non-blocking
No blocking issues. The Ubuntu net8.0 concurrent run in CI is the remaining validation, as the PR notes. |
Shared-object disposal span tests intermittently capture duplicate or missing spans in concurrent Ubuntu net8.0 runs, including the Ubuntu failure blocking #7471. Capture spans by each test context’s unique class and assembly parent IDs, so global listener callbacks do not depend on ambient AsyncLocal state. Keep the existing single-span, parent, scope and error assertions.
Add a regression with overlapping listeners and disposal on a task without execution-context flow. It captures exactly one span for each independent parent.
Closes #7435
Validation:
Summary by CodeRabbit
Review follow-up (ae3979c): use an explicit unrelated parent in the parent-independent capture regression so HTML reporting can be disabled. Validation with TUNIT_DISABLE_HTML_REPORTER=1: isolated regression 1 passed; all 6 SharedObjectDisposeSpanTests passed in Release net10.0 on macOS arm64; git diff --check passed.