Repository navigation
Preserve mixed COS read failures and bound reader cancellation logs - #32947
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
This pull request is merged. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: c72a481f786e87a8ae95649b1998a8f7e2ef4087
Assessment: approve
The COS adapter preserves joined storage failures while still recognizing ordinary request cancellation. Reader logs use separate rate limits for matching cancellations and failures. The pipeline retains authority over the query outcome.
Model: gpt-6.2-sol / xhigh
Session: 01a1f0a0-5126-78f3-9ab8-ef4e87f2f119 · slot 0 · generation 3
Validation:
-
The joined-error regression passed on this head. The merge-base adapter returned only context.Canceled for the same injected error.
-
The in-flight COS cancellation test passed 100 times under race. Focused fileservice and pipeline tests and the full readutil and logutil packages also passed under race.
-
A reader probe verified returned error identity, cleanup, and separate DEBUG and ERROR log budgets. Isolation preflight, the native build, and git diff --check passed. Logs and receipts are indexed in validation-reconciliation.json.
Limitations:
-
The aggregate was injected at the adapter boundary. The archived 4.2-dev nightly logs leave its original error type and cause unconfirmed.
-
Build and test jobs were pending in the frozen CI snapshot.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #32389 and the 4.2-dev fix #32945.
What this PR does / why we need it:
Main already restores ordinary COS read cancellation identity through #28070. The read-only adapter's singleton retry wrapper check can also match a cancellation nested inside an aggregate and discard a sibling storage failure. Walk the single-error unwrap chain to preserve pure wrapped cancellations and retain aggregate errors.
Route matching reader context cancellations through the existing bounded DEBUG event contract. Real reader failures use a bounded ERROR event carrying the concrete error type and the reader context status. Derived fields are formatted after log-level and rate checks.
The existing in-flight HTTP tests pass on main. The new wrapped aggregate regression fails with main's original adapter and passes with this change. The 4.2-dev nightly reproduction is related context. It has no logged concrete Go error type and does not establish that the aggregate occurred there.
Local race validation passed on fileservice and readutil with Go 1.27.1.
The repository SCA selector chose the full scan. Molint and golangci-lint passed.