fix(#7059): preserve provider cancellation errors - #7060
Conversation
Return the context error when cancellation kills provider creation. Do not expose the wrapped process error. Wait for provider creation before cancelling in the regression test. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Shai Revivo <srevivo@redhat.com>
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
PR Summary by QodoPreserve provider cancellation errors during creation
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can show, collapse, or hide each part of a finding: code, evidence, and all |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
Return the parent context error when cancellation kills an in-flight provider
creation command, instead of leaking the wrapped
signal: killedprocess error.Make the regression test wait for provider creation before cancelling.
Related Issue
Fixes #7059
Changes
ctx.Err()after a failed provider creation attemptTesting
make lintpasses (stage changes first, then run)go test -race ./internal/sandbox/... -count=1ensureProviderArgscoverage: 84.6% (threshold: 80%)Checklist