Repository navigation
feat(sessions-pipeline): optional rearmSweeper.image override, backport onto prod infra_ref bb41fe6f (HOLD) - #566
Conversation
…rt onto bb41fe6) rearmSweeper.image {repository, digest, pullPolicy} lets the sweeper CronJob run a newer services image without rolling the ingest-edge Deployment. Each unset field falls back to ingestEdge.image, so {} (the default) renders byte-identically. INGEST_REARM_IMAGE_DIGEST follows the sweeper image. A malformed digest is refused. New test test_sweeper_image_override. No chart version bump (unreleased backport for the agentrelay-prod infra_ref). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ✅ CompletedThis 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.
Devin Review found 1 potential issue.
3 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| {{- $digest := required "ingestEdge.image.digest requires a qualified SERVICE=session-ingest image" $c.image.digest -}} | ||
| {{- /* rearmSweeper.image: optional override; each field falls back to ingestEdge.image, so unset renders as before. */ -}} | ||
| {{- $si := $s.image | default dict -}} | ||
| {{- if and $si.digest (not (regexMatch "^sha256:[0-9a-f]{64}$" (toString $si.digest))) }}{{ fail "rearmSweeper.image.digest must be sha256:<64 hex>" }}{{ end -}} |
There was a problem hiding this comment.
🟡 Malformed digest silently selects ingest version
When rearmSweeper.image.digest is false or 0, validation skips the supplied value. Helm then uses the ingest digest, so the sweeper runs without the intended update.
| {{- if and $si.digest (not (regexMatch "^sha256:[0-9a-f]{64}$" (toString $si.digest))) }}{{ fail "rearmSweeper.image.digest must be sha256:<64 hex>" }}{{ end -}} | |
| {{- if and (not (kindIs "invalid" $si.digest)) (not (regexMatch "^sha256:[0-9a-f]{64}$" (toString $si.digest))) }}{{ fail "rearmSweeper.image.digest must be sha256:<64 hex>" }}{{ end -}} |
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
@khaliqgant, linking your fix and test receipt for malformed digests at f664be3 to this open thread: #566 (comment) . Please verify the finding against that head and mark it resolved if covered. Keep the existing backport base and hold.
[Medium impact] The reviewed changes appear safe to merge; the previous shared-digest bypass is fixed.
|
- Validate whenever rearmSweeper.image has a digest key (hasKey), so false, 0, empty or null fail instead of silently falling back to ingestEdge.image. - Under releaseContract.unifiedServicesDigest=true, rearmSweeper.image.digest must equal worker.image.digest (the single services digest). - Tests: falsy digests refused; new test_sweeper_image_override_unified_contract; the override tests use a digest distinct from the fixture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review findings addressed in
🤖 Generated with Claude Code |
…ns-pipeline 0.8.64, agent-relay 0.7.89) (HOLD) (#567) * feat(sessions-pipeline): optional rearmSweeper.image override (sessions-pipeline 0.8.64, agent-relay 0.7.89) rearmSweeper.image {repository, digest, pullPolicy} lets the sweeper CronJob run a newer services image without rolling the ingest-edge Deployment. Each unset field falls back to ingestEdge.image, so {} (the default) renders unchanged. INGEST_REARM_IMAGE_DIGEST follows the sweeper image; a malformed digest is refused. Same change as the agentrelay-prod backport (#566). New test test_sweeper_image_override; release-matrix rows and docs updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(sessions-pipeline): rearmSweeper.image review findings - Validate whenever rearmSweeper.image has a digest key (hasKey), so false, 0, empty or null fail instead of silently falling back to ingestEdge.image. - Under releaseContract.unifiedServicesDigest=true, rearmSweeper.image.digest must equal worker.image.digest (the single services digest). - Tests: falsy digests refused; new test_sweeper_image_override_unified_contract; the override tests use a digest distinct from the fixture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
@khaliqgant, one additional open thread on the existing backport handoff needs a disposition: r4716417189 on malformed digest handling in rearm-sweeper.yaml. Please reply there with the fixing head/test or the reason to decline. The chart-version check and pinned-base hold remain on the existing #575 handoff. |
What
Backport onto
bb41fe6f(agentrelay-prod's currentinfra_ref), into base branchbackport/agentrelay-prod-bb41fe6f. Route (B), "sweeper-only", of #owner-decisions 251927619257282560 item 2 (cleared by infragrok).An optional
rearmSweeper.image(repository,digest,pullPolicy) for the rearm-sweeper CronJob only. Each unset field falls back toingestEdge.image, so the default{}renders exactly as before.INGEST_REARM_IMAGE_DIGESTfollows the sweeper's image. A digest that is notsha256:<64 hex>is refused.Why: the sweeper needs the services image with the pass-receipt code (relayhistory-pipeline
fde1fe24,96bulls-services@sha256:fe310fc3…, publish run 45951595065). Until now its image was hard-wired toingestEdge.image, so bumping it would also roll the live ingest-edge Deployment. That is route (A), not approved.Proof (
helm template, this branch, agentrelay-prod values:values-eks.yaml+ EOsessions-pipeline)diff -ragainstbb41fe6fis empty (byte-identical render).rearmSweeper.image.digest = sha256:fe310fc3…: the only diff isrearm-sweeper.yaml.ingest-edge.yamlis byte-identical (Deployment unchanged).Tests: new
test_sweeper_image_override(default, override, ingest-edge Deployment unchanged, bad digest refused).ci/sessions-pipeline-s3-ledger/test_chart.pypasses locally: 19 tests OK.No chart version bump: this is an unreleased backport, kept consistent with #564. The "Chart version bumped" step will be red by design. The versioned change is the main PR.
merge-train:hold. Prod pins this branch's head directly via an EOinfra_refPR; plan and apply are cleared separately.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Adds an optional
rearmSweeper.imageoverride so the sweeper CronJob can use a different image without rolling the ingest-edge Deployment.ingestEdge.image, so the default{}renders byte-identically;INGEST_REARM_IMAGE_DIGESTfollows the sweeper image.releaseContract.unifiedServicesDigestenabled, the sweeper digest must matchworker.image.digest.Written for commit f664be3. Summary will update on new commits.