Skip to content

ci: name each needed job in the frontend deploy condition - #338

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

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

Conversation

@NateIsern

Copy link
Copy Markdown
Member

#337 did not work

Its push run (47295529154) was green and skipped Deploy frontend again, with all seven jobs in needs successful. I had checked the expression with a local stand-in that assumed needs.*.result holds only direct needs. That was wrong.

Cause, reproduced on GitHub

A throwaway workflow on a scratch branch (no secrets, no deploy; branch deleted) copied the job graph: run 47297480733.

  • A job conditioned on contains(needs.*.result, 'skipped') ran, although both its direct needs succeeded: in a job's if, needs.*.result also holds skipped ancestors.
  • The ci: deploy the frontend on push to main again #337 condition was skipped.
  • Naming each need (needs.x.result == 'success') ran, including the called workflow's job and its github.ref condition.

A step's toJSON(needs) in the same run showed direct needs only.

Change

deploy-frontend names each job in needs, the shape Homiio already deploys with. Because a forgotten name would let a failed job deploy, deployGate.test.js fails when the two lists differ.

The backend Deploy job is unchanged. Merging this deploys the web app from main, including #335.

Verification

The probe above; the new test passes, and fails when a job is added to needs without its line; test:gates passes. The probe did not include a matrix job (city3d), so the push run after merge is the final check.

🤖 Generated with Claude Code

#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>
@NateIsern
NateIsern enabled auto-merge (squash) December 4, 2026 08:27
@NateIsern
NateIsern merged commit b9a0747 into main Dec 4, 2026
35 checks passed
@NateIsern
NateIsern deleted the t3/goway-deploy-frontend-by-name branch December 4, 2026 08:37
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