Repository navigation
refactor(docker): share image version parsing - #148243
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 11:29 PM ET / September 15, 2026, 03:29 UTC (Revision 2). ClawSweeper reviewWhat this changesShares Docker image-version label parsing between channel promotion and Vercel registry publication, with caller tests preserving accepted labels and contextual errors. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, behavior-preserving cleanup absent from current main. No actionable correctness or security defect was found; the member-authored PR is also protected from automated closure. Priority: P3 Review scores
Verification
How this fits togetherDocker release scripts inspect image metadata before copying images or advancing release tags. The shared parser extracts each platform’s version label; callers retain version comparisons, attestation checks, rollback protection, and registry writes. flowchart TD
A[Requested release and image references] --> B[Docker image inspection]
B --> C[Shared version label parser]
C --> D[Caller release and platform checks]
C --> E[Contextual parsing error]
D --> F[Verified registry publication]
D --> G[Reject before writes]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +122, Other -1. Total +121 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one shared label parser while preserving caller-owned subprocess handling and publication safeguards. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes behavior-preserving refactoring, not a bug fix; source comparison supports equivalence, and tests were not executed during this review. Is this the best way to solve the issue? Yes: extracting only the identical parsing operation into the existing release-policy owner removes duplication without combining the callers’ distinct execution and publication responsibilities. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a4a3e5670573. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* commit 'd8e50a38fd1c4df6dd69bcbc155697c464e1be45': (23 commits) fix(cron): release queued reservations when activation fails (#141008) fix(gateway): reduce CPU work in session lists and searches (#148713) feat(gateway): add admin CPU profile diagnostics (#148004) fix(gateway): cap device-required probe cache to prevent unbounded growth (#147708) fix(ci): align Gateway E2E expectations (#148653) refactor(ai): remove unused overflow wrapper (#148719) feat: stage selected chat text as editable comments (#148649) fix(ci): admit reachable release refs with large histories (#148161) fix(agents): allow authorized email CLI actions (#148521) improve(agents): trim large tool results with less CPU (#148718) refactor(docker): share image version parsing (#148243) fix(ci): retain passing hosted checks after skipped duplicates (#148722) fix(update): report configuration failures during repair (#144819) refactor(imessage): share handle classification (#148229) fix(ui): keep the selected agent across Settings pages (#148667) test(telegram): reuse deferred fixture helper (#148501) fix(media): resize images before understanding (#122431) fix: preserve unfinished work during completed PR cleanup (#148704) refactor(migrate-hermes): reuse canonical config record coercion (#148645) perf(channels): reduce history worker metadata footprint (#148711) ...
What Problem This Solves
Docker channel promotion and Vercel registry publication separately interpret the same image-version label.
User Impact
No user-visible behavior change. Accepted labels, contextual errors, platform ordering, rollback checks and publication safeguards remain unchanged.
Why This Change Was Made
Share only the JSON and label parsing in the existing Docker release-policy owner. Each caller retains its own subprocess handling and parses the label before updating its platform map. Any nonempty label remains valid at this boundary, including labels that the caller subsequently rejects as a requested-version mismatch.
Evidence
SyntaxErrorcause, null/missing/non-string/blank labels, second-platform failure before writes, andcustom-buildreaching the requested-version comparison. Existing attestation, rollback and digest checks remain covered.7551b0b94df22255aadf8dd96031fcd37689c129. The earlier queue recovery and subsequent checkout-timeout failure remain recorded; attempt 3 retried only the failed core-types job and its dependent gate. No required gate was disabled or bypassed.