Skip to content

ci: deploy the frontend on push to main again - #337

Merged
NateIsern merged 1 commit into
mainfrom
t3/goway-deploy-frontend-condition
Dec 4, 2026
Merged

NateIsern merged 1 commit into
mainfrom
t3/goway-deploy-frontend-condition

Conversation

@NateIsern

Copy link
Copy Markdown
Member

Problem

Every push to main since #328 (d1d5a9d) has skipped Deploy frontend, with CI green. goway.to has only been updated by hand since, so #335 is merged but not live.

deploy-frontend's if had no status function, so GitHub applied the implicit success(). That also looks at ancestors, and a push always has skipped ones: race, the -hosted twins and the -rescue jobs.

Change

The if now uses !cancelled() and requires that no job in needs ended failure, cancelled or skipped. Using needs.*.result means a job added to needs later is covered without editing the condition. Push-to-main and OXY_1519_ROLLOUT_HOLD are as before.

The backend Deploy job is not changed. It has the same if shape and is still skipped on push. Fixing it ships backend code, so it is a separate decision.

Merging this deploys the web app from main.

Verification

The expression read from the parsed ci.yml was evaluated locally: true when every job in needs succeeded (as in the b7df04e push run); false for each of the 21 failure, cancelled or skipped cases, a cancelled run, a rollout hold, a pull request and a workflow_dispatch. This is a stand-in evaluator, not GitHub's: the real check is the push run after merge.

test:gates and validate:agents-md pass.

🤖 Generated with Claude Code

Every push to main since #328 skipped "Deploy frontend". Its `if` relied on
the implicit success(), which also looks at ancestors, and a push always has
skipped ones: the Seldon race, the hosted twins and the rescues. It now
requires each job in its own `needs` to have succeeded.

The backend "Deploy" job is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@NateIsern
NateIsern enabled auto-merge (squash) December 4, 2026 08:00
@NateIsern
NateIsern merged commit 672a1e6 into main Dec 4, 2026
35 checks passed
@NateIsern
NateIsern deleted the t3/goway-deploy-frontend-condition branch December 4, 2026 08:12
NateIsern added a commit that referenced this pull request Dec 4, 2026
#337 did not work. In a job's `if`, `needs.*.result` also holds skipped
ancestors, so `!contains(needs.*.result, 'skipped')` is false on every push
(reproduced on GitHub, run 47297480733). The condition now names each job in
`needs`, and a test fails when the two lists differ.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

1 participant