Skip to content

promote: run a stage's op wave for products with no components #5427

Closed

Description

@lex00

A product whose stages run op waves and declare no components, as INTENTIUS/sql-yodeler#394 does with sql-migrate, cannot move a release past its first stage. chant components promote stops before it applies anything, for three reasons:

where why it stops
loadProject and planPromotion they discover *.component.ts declarations, and a yodel project has none, so the answer is "nothing to promote"
stepReleaseRequests with opWaveReleaseNames with no spec.release.component, the release record is named after the environment (dev), not a name every stage shares
the sql lexicon's run it applies only an op wave's decided plan with spec, which the promote's driver never passes

Everything components promote reads before the apply works as built; the apply itself is what never happens. The full trace is in the comment below.

Acceptance criteria

  • After the stage gate passes, chant runs that stage's op wave (stageWavesSpec(spec, to) of the pipeline folded at the default branch). The gate's decision binds the release digest, so sql-migrate plans with spec and applies under the engine's lock.
  • The step's spec file is the stage's rendered spec (pipelineStageSpecFile).
  • An op-waves stage records its release under a component name the pipeline fixes.
  • PipelinePromoteStageInputs can ask for the forge's OIDC token on a stage job without a cloud trade.
  • Tests promote a sql-migrate release into staging in a temp repo with a fake engine; skipping a stage or lacking the gate's approval applies nothing.
  • Core exports a *_FLOOR constant, and the floor table is regenerated.

Activity

  1. lex00 commented on Nov 20, 2026

    @lex00
    ContributorAuthor

    Trace from INTENTIUS/sql-yodeler#394, read against chant's integration of the open epic pull requests. A yodel project applies dev through op waves with a sql-migrate step whose spec is yodel-waves.json. It then cuts a release, and each later stage's job runs yodel chant components promote --to <stage> --release <release>.

    runComponentsPromote loads the project with resolveComponentTargets(projectPath, "all"), which finds no component. opWaveReleaseNames uses run.target as the component when the spec names none. lexicons/sql/src/capability-plugin.ts refuses unless DeployContext.plans[env] is a sql-migrate artifact with wavePlan and spec, and yodel-waves.json holds only the first stage's waves, so the engine's own check of the wave decision would fail too.

  2. added 2 commits that reference this issue on Nov 20, 2026
    80c31b9
    970cd1d
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