Repository navigation
feat(sessions-pipeline): rearm-sweeper pass-receipt env, backport onto prod infra_ref c2aef4a1 (HOLD) - #564
Conversation
…ackport onto c2aef4a) The rearm-sweeper CronJob container gains the provenance env that relayhistory-pipeline src/session-ingest/rearm-sweeper-receipt.ts (799f3925) reads: INGEST_REARM_CRONJOB_NAME (literal), INGEST_REARM_IMAGE_DIGEST, and downward-API INGEST_REARM_JOB_NAME, _JOB_UID, _POD_NAME, _POD_UID and _POD_NAMESPACE. Harmless until the receipt code is deployed. Backport for the agentrelay-prod infra_ref; no chart version bump (unreleased branch; chart labels stay identical so the prod plan shows only this env). 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
|
There was a problem hiding this comment.
Devin Review found 1 potential issue.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
| - { name: INGEST_REARM_CRONJOB_NAME, value: {{ $name | quote }} } | ||
| - { name: INGEST_REARM_IMAGE_DIGEST, value: {{ $digest | quote }} } |
There was a problem hiding this comment.
🟡 Unchanged chart version fails CI
The new INGEST_REARM_CRONJOB_NAME and receipt fields change the rendered chart without a version bump. The chart version check rejects this backport against its base.
Learn more
The contribution guide requires a chart version bump for template changes. The Lint Charts workflow runs the version check on pull requests without filtering by base branch. The check sees the changed template and compares the chart version with the version on the PR base.
Example: Running bash scripts/ci/version-bump.sh c2aef4a1 at the PR head reports that sessions-pipeline changed but its version is still 0.8.56, then exits with status 1.
Recommended fix: Coordinate an approved backport exception if the deployment must preserve existing chart labels. Otherwise, bump to an unused chart version, align release metadata, and update the expected deployment plan.
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
@khaliqgant, linking your existing backport disposition to this open thread: #564 (comment) . Please mark the thread resolved if that disposition covers it. Keep the backport open on its existing base and hold.
[Low impact] No blocking code issues remain; the stated rollout hold still applies.
|
…uirements registry Add INGEST_REARM_CRONJOB_NAME, _IMAGE_DIGEST, _JOB_NAME, _JOB_UID, _POD_NAME, _POD_UID and _POD_NAMESPACE to the rearm-sweeper entry and re-render docs/self-hosted-requirements.md (registry.mjs render; check OK). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eipt env test_sweeper_cronjob_shape expects INGEST_REARM_CRONJOB_NAME and INGEST_REARM_IMAGE_DIGEST plus the five downward-API entries, and asserts their exact fieldRefs. test_sweeper_pod_identity still forbids credentials from a Secret or ConfigMap under Pod Identity, but allows downward-API fieldRefs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review findings addressed:
🤖 Generated with Claude Code |
…essions-pipeline 0.8.63, agent-relay 0.7.88) (HOLD) (#565) * feat(sessions-pipeline): rearm-sweeper pass-receipt provenance env (sessions-pipeline 0.8.63, agent-relay 0.7.88) The rearm-sweeper CronJob container gains the provenance env that relayhistory-pipeline src/session-ingest/rearm-sweeper-receipt.ts (799f3925) reads: INGEST_REARM_CRONJOB_NAME (literal), INGEST_REARM_IMAGE_DIGEST, and downward-API INGEST_REARM_JOB_NAME, _JOB_UID, _POD_NAME, _POD_UID and _POD_NAMESPACE. All optional; harmless before the receipt code is deployed. Same change as the agentrelay-prod backport (#564), so main does not fall behind prod. Registry entry, release matrix rows and docs updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(sessions-pipeline): rearm-sweeper chart tests cover the pass-receipt env test_sweeper_cronjob_shape expects INGEST_REARM_CRONJOB_NAME and INGEST_REARM_IMAGE_DIGEST plus the five downward-API entries, and asserts their exact fieldRefs. test_sweeper_pod_identity still forbids credentials from a Secret or ConfigMap under Pod Identity, but allows downward-API fieldRefs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
What
Backport onto
c2aef4a1(agentrelay-prod'sinfra_ref), into base branchbackport/agentrelay-prod-c2aef4a1. Item (3) of the "Sweeper infra batch", #owner-decisions 251927619257282560 (Khaliq; route A confirmed by claude-cloud-cloud-b1).charts/sessions-pipeline/templates/rearm-sweeper.yaml: the rearm-sweeper container gains the provenance env that relayhistory-pipelinesrc/session-ingest/rearm-sweeper-receipt.ts(799f3925, review PASS) reads:INGEST_REARM_CRONJOB_NAME$name(<release>-rearm-sweeper); the downward API has no owner refsINGEST_REARM_IMAGE_DIGEST$digestthe CronJob already runs (ingestEdge.image.digest)INGEST_REARM_JOB_NAMEmetadata.labels['batch.kubernetes.io/job-name']INGEST_REARM_JOB_UIDmetadata.labels['batch.kubernetes.io/controller-uid'](the workload identity)INGEST_REARM_POD_NAMEmetadata.nameINGEST_REARM_POD_UIDmetadata.uidINGEST_REARM_POD_NAMESPACEmetadata.namespaceAll seven are optional in the receipt code (missing → field omitted), so this is harmless before that code is deployed.
POD_NAMEandPOD_UIDare beyond the five originally requested; the receipt code documents and reads them.Why a backport, and no version bump
Prod pins
infra_refc2aef4a1. infra main is 37 commits ahead (sessions-pipeline 0.8.56 → 0.8.62, agent-relay 0.7.76 → 0.7.87), so moving prod to main would ship far more than this. This branch isc2aef4a1+ this one commit. Chart versions are deliberately not bumped: the branch is unreleased, and identicalhelm.sh/chartlabels keep the prod plan to exactly this env change.Follow-up: the same template change still needs a normal, versioned PR to
main, so the next prodinfra_refmove does not drop it.rearm-sweeper.yamlis unchanged on main sincec2aef4a1, so it applies cleanly.Rollout (held)
backport/agentrelay-prod-c2aef4a1.environments/agentrelay-prod/deploy/ci.jsoninfra_ref→ the merged commit. Its push plan must show onlyCronJob/agent-relay-prod/agent-relay-rearm-sweeperenv (+7), no Jobs.agentrelay-deploy mode=apply(pg_dump control snapshot first), then verify the next sweeper Job completes and carries the env.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Backports pass-receipt provenance env to the rearm-sweeper CronJob on prod's pinned
infra_refc2aef4a1, so its receipt records can identify the run. Registers the new env in the self-hosted requirements registry, re-renders the docs, and adds chart tests covering the env and its exact fieldRefs.Rollout (held)
environments/agentrelay-prod/deploy/ci.jsoninfra_refat the merged commit; the push plan must show only the rearm-sweeper CronJob env change.mainso the next prodinfra_refmove keeps it.Written for commit bb41fe6. Summary will update on new commits.