Skip to content

ci.promotion: a wave with gate never gives a stage with no policy, and the promote into it waits for approval #409

Closed

Description

@lex00

The pipeline claim's promote into staging waits for an approval, though the claim's staging wave declares gate never.

I ran the claim against a local pack of chant's wave/followups-2 at commit bff150f77, which is chant 0.124.114, and the release cut works there, so the merge applies dev and cuts release 0.1.1 and #406 and chant#5474 are settled. The claim then fails in its stages part at the first promote after the cut, where yodel promote --to pipeline-staging --release 0.1.1 stops with yodel-apply pipeline-staging waits for an approval of jcs1-sha256:d511a01e36fa4d5b32b194c7006f23162e4ce46d311a73ab2434b2c6e150c5af [pipeline-gate-waiting] and exits 3, as lines 272 to 282 of the log pipeline-wave-run3-pg-plain.log show.

The wave's gate (waves: [{ env, gate: "never" }] in yodel.config.ts) sits on the wave, while a promote reads the stage's gate in .chant/pipeline.ts. The call to pipelineFromConfig in src/ci/pipeline.ts passes no gate for a stage, neither environments.<env>.gate nor the pipeline-wide gate. The stage then has no policy, and a promote into it waits for an approval. chant's promote passes a stage without waiting only when stage.gate.policy === "never" (pipelinePromoteGates in packages/core/src/pipeline/promote.ts).

The fix on yodel's side is to pass each stage's wave gate as the stage's gate. A wave with gate never then gives a stage with policy never, and the prod stage keeps its approvalRules and its gate always. No earlier run of the claim reached this step, so it has no recorded pass.

Activity

  1. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    The stage gate fix (8253a32 on wave/followups-2) works. Against the local chant at bff150f77 (0.124.114), yodel promote --to pipeline-staging --release 0.1.1 now says the stage's gate never waits, applies the release and exits 0 (pipeline-wave-run4.log, pg plain run).

    The claim still fails one step later, in its stages part, at the first promote into prod (lines 327 to 330 of scenarios/claims/pipeline.ts). That promote exits 3 as the claim expects and prints this:

    error: yodel-apply pipeline-prod waits for an approval of jcs1-sha256:49a37950311fe8066746a660980c989bc46a02f44d882052d1a1cf29029cb6a4 [pipeline-gate-waiting]
      Approve it with: yodel approve pipeline-prod --plan jcs1-sha256:49a37950311fe8066746a660980c989bc46a02f44d882052d1a1cf29029cb6a4
    

    The claim reads that line with approveLine, whose pattern is (?:yodel )?chant approve \S+ \S+(?: --env \S+)? --plan \S+. The pattern wants the word chant and an op name before the environment. The line is in yodel's words (yodel approve {target} --plan {digest}, src/ci-words.ts line 65), so nothing matches and the claim reports prod's stage gate does not wait on the release digest ...: undefined. The promote waits on the right digest. The check at line 330 also looks for --env <prod>, which this line does not carry.

    The break run is caught with the same message, so it is not yet caught for its intended reason. The next change is for the claim to read the approve line in yodel's words and run it as yodel approve. The grant has no pipeline runs left, so the next run needs a new grant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions