Skip to content

fix(ci): a deploy-workflow change is a dev platform release too - #505

Merged
athvin merged 1 commit into
mainfrom
bm/deploy-yml-triggers-release
Nov 5, 2026
Merged

athvin merged 1 commit into
mainfrom
bm/deploy-yml-triggers-release

Conversation

@athvin

@athvin athvin commented Nov 5, 2026

Copy link
Copy Markdown
Owner

images.yml's path filter already treats a chart change as a release even when no image moves — "a change to either IS a dev platform release (§14.2)". The same argument covers deploy.yml, because that file carries the helm upgrade flags, and the executor allowlist lives in one of them (--set executor.dagKinds=…).

It was missing, and the miss had a consequence.

What happened

#498 flipped the pipeline kinds on. It merged green. It changed nothing on the cluster.

The commit touched only .github/workflows/deploy.yml, no path in the filter matched, no images run started, and so no deploy fired. Checked against the live cluster rather than assumed:

$ kubectl --context er-dev -n ci get deploy er-dispatcher -o jsonpath=...
ER_EXECUTOR_DAG_KINDS=lake_maintain,lake_migrate     # the OLD pair, post-merge
ER_EXECUTOR_IN_FLIGHT_CAP=3                          # live, because it came via chart values

The contrast in those two lines is the whole bug. inFlightCap reached the cluster because it lives in infra/k8s/ — a filtered path. dagKinds did not, because it lives in a --set flag in a file nothing watched.

It did land eventually, but by luck: an unrelated commit touching rust/** started a run, and a workflow_run deploy executes the default branch's workflow file, so it picked up the new flags on the way past. Absent that coincidence the change would have sat unapplied indefinitely, with a green PR and a merged commit both saying otherwise.

Why this is the same bug as the one in the header

deploy.yml's own header documents, at length, how "'Merged' did not mean 'deployed'" — four merges in an hour producing three cancelled deploys, obs_up.sh never running despite its PR having merged, and "five defects in those unexecuted values survived review as a direct result".

This is that failure arriving through a different door: a path filter rather than a cancelled run. Same symptom, same cost, and the same reason nobody notices — nothing reports a deploy that was never attempted.

Cost

None when no image moved. The image jobs skip and deploy-dev reuses the digests already in the registry — exactly what the infra/k8s/** entry above already relies on.

Note: this touches .github/workflows/, so the merge bus will skip it (GITHUB_TOKEN may not push workflow changes) and it needs merging by hand.

🤖 Generated with Claude Code

`images.yml`'s path filter already treats a chart change as a release even when
no image moves — "a change to either IS a dev platform release (§14.2)". The
same argument covers `deploy.yml`, because that file carries the `helm upgrade`
flags, and the executor allowlist lives in one of them
(`--set executor.dagKinds=…`).

It was missing, and the miss had a consequence. #498 flipped the pipeline kinds
on, merged green, and changed NOTHING on the cluster: the commit touched only
`.github/workflows/deploy.yml`, no path matched, no images run started, so no
deploy fired. The live dispatcher still read `lake_maintain,lake_migrate`
afterwards — checked, not assumed.

It did land eventually, but by luck: an unrelated commit touching `rust/**`
started a run, and a `workflow_run` deploy executes the DEFAULT BRANCH's
workflow file, so it picked up the new flags on the way past. Absent that
coincidence the change would have sat unapplied indefinitely, with a green PR
and a merged commit saying otherwise.

That is the "'Merged' did not mean 'deployed'" failure this workflow's own
header documents at length, arriving through a different door — a path filter
rather than a cancelled run.

Adding the path costs nothing when no image moved: the image jobs skip and
`deploy-dev` reuses the digests already in the registry, which is exactly what
the `infra/k8s/**` entry above relies on.

Co-Authored-By: Claude Fable 5 <[email protected]>
@athvin
athvin merged commit ed3a22a into main Nov 5, 2026
44 checks passed
@athvin
athvin deleted the bm/deploy-yml-triggers-release branch November 5, 2026 14:17
athvin added a commit that referenced this pull request Nov 6, 2026
Completes Phase 3's rollout: all eleven kinds run as per-attempt Kubernetes
Jobs in the ci namespace. The value stays an explicit list for one more release
so a revert is one line; Phase 4 deletes `executor.dagKinds` and the legacy arm
together.

## Why the last seven arrive at once

The previous comment said they would go on one at a time "as each is observed"
on a cluster. That was the wrong unit of evidence.

What a cluster run adds is not per-kind. It adds real scheduling, real
projected-token verification, real EFS and a real image — properties of the
PLATFORM, already proven live by `lake_maintain` (Phase 2, a real runner node)
and by `run_all_full` as seven pods with seven distinct pod uids and a ledgered
lake. Running `train` on a cluster would re-prove that platform, not `train`.

The per-kind risk is the body and the work order, and the integration tier
covers both for every kind — `pg_run_all_dag.rs` and `pg_run_all_pipeline.rs`
stand up the REAL control plane (`er_server::app(AppState::with_pg(..))`)
against a real DuckLake and run the real `exec-task` binary, so a mis-assembled
order for any kind fails there rather than in the namespace.

## DAG_KINDS is set in two places

The blue/green deploy sets it for the install AND for the cut-over. Both move
here, and the comment now says they must agree: changing only the install would
have had the cut-over quietly revert the allowlist it just widened — the same
shape as the #505 bug, where a merged config change never reached the cluster.
Caught by asserting the match count rather than by replacing blind.

Verified: both lines are byte-identical, the escaping renders as ONE value
(`helm template` shows all eleven in a single `ER_EXECUTOR_DAG_KINDS`), the
workflow parses as YAML, and no "stay OFF" claim survives anywhere in the file.

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants