Skip to content

fix(ci): backend deploys fail to load — a composite action cannot read vars - #15348

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/deploy-backend-stack-vars-context
Sep 21, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/deploy-backend-stack-vars-context

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Unbreaks every backend deploy from main. #15334 (mine, merged 2026-09-21T05:28Z as f2320d8762) referenced ${{ vars.DEV_FREE_TIER_LOCAL_PROCESSING_COHORT }} inside the composite action .github/actions/deploy-backend-stack. A composite action cannot read the vars context, so GitHub rejects the action at load time:

action.yml (Line: 543, Col: 44): Unrecognized named-value: 'vars'
Failed to load ./.github/actions/deploy-backend-stack/action.yml

Observed on "Auto Deploy Backend to Development" run 35565085049 for 8169b2eb88. The same action is used by gcp_backend.yml, so a production backend deploy from main would fail the same way. It fails closed — nothing wrong was deployed — but nothing can be deployed either.

Fix

The cohort becomes an action input (dev_free_tier_local_processing_cohort, default empty). Only the calling workflows read the variable: gcp_backend_auto_dev.yml passes it; gcp_backend.yml passes it only when the dispatch is for development, so a production run never carries it. The prod overlay still renders a literal empty regardless.

Why it got through

The file is valid YAML; the wiring test asserted the exact vars.… string it should never have contained; an independent model review checked scope fallback and injection but not context availability; and nothing in preflight executes or context-checks a composite action. New test test_no_composite_action_reads_a_context_it_cannot_access scans every composite action's expressions for vars./secrets.. Verified red against origin/main (3 offenders, lines 543/568/960) and green here.

Also verified: every job that reads the variable declares environment:, which an environment-scoped variable requires in order to resolve at all.

Product invariants affected

  • INV-DATA-1 — touched by path only (deploy workflow + composite action). No routing, endpoint, or data-plane selection changes.

Failure-Class: new

New class FC-composite-action-reads-unavailable-context, defined in this PR.

Verification

Layer: repository checks and unit tests. Not yet verified by a live deploy — the first "Auto Deploy Backend to Development" run after merge is the real proof, and I will report its result on this PR.

  • actionlint on both calling workflows — clean.
  • test_free_tier_basic_gates.py — 138 passed, including the new context test and the updated caller-wiring assertions.
  • scripts/pr-preflight --pr-body-file … — passed, 42 checks.

🤖 Generated with Claude Code

Review in cubic

…er cohort as an input

#15334 referenced vars.DEV_FREE_TIER_LOCAL_PROCESSING_COHORT inside the
deploy-backend-stack composite action. GitHub rejects such an action at load
time, so every backend deploy from main, dev and prod, failed before its first
step. Take the value as an input; only the calling workflows read the variable,
and the manual workflow only for a development dispatch. Adds a test that scans
every composite action for vars./secrets. references, verified red on main.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 1528d52 into main Sep 21, 2026
64 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/deploy-backend-stack-vars-context branch September 21, 2026 05:59
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