Close ServiceTalk captured context scope in test - #12500
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
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. |
There was a problem hiding this comment.
More details
The change removes the duplicate context attachment. The try-with-resources attachment still sets the parent context for the child span.
🤖 Datadog Autotest · Commit baa89f6 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest
This comment has been minimized.
This comment has been minimized.
🟡 Java Benchmark SLOs — Performance SLO warning (near threshold)
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
Build pipeline has failing jobs for fd1dc11: What to do next?
DetailsSince those jobs are not marked as being allowed to fail, the pipeline will most likely fail. |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
Build pipeline has failing jobs for bc6c40e: What to do next?
DetailsSince those jobs are not marked as being allowed to fail, the pipeline will most likely fail. |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
fa0cc80
into
master
Close ServiceTalk captured context scope in test Co-authored-by: andrea.marziali <[email protected]>
What Does This Do
Removes a redundant
attachContext()call from the ServiceTalk context-preservation test.The test attached the captured parent context twice:
The first attachment was unnecessary and produced a genuine unclosed scope in the continuation diagnostics.
flowchart LR subgraph Before A1[Attach parent context] --> B1[Discard returned scope] B1 --> C1[Attach parent context again] C1 --> D1[Run child span] D1 --> E1[Close second scope] B1 --> F1[First scope remains open] end subgraph After A2[Attach parent context once] --> B2[Run child span] B2 --> C2[Close scope automatically] endMotivation
The test should model the intended scope lifecycle rather than relying on an abandoned context attachment. The duplicate attachment did not contribute to the behavior being tested and could leave thread-local tracing state behind.
Additional Notes
Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]