You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
workspace: declare the promotion order of environments, used by promote, gates and the trunk lane #4030
area:lifecycleplan/diff/apply/observe/drift/prune/search --livearea:workspacechant workspace epic (#2525)enhancementNew feature or requestphase:0behold#678 rollout: phase 0 (parallel within a phase)
components promote takes --from and --to each time, and behold guesses environment order from yodel-waves.json. The flow promotes a release environment by environment, so the order has to be declared once.
Environments are declared per member, in the environments array of the member's chant.config.ts, and per component through component.schema.json:64 (ws-095). Both are read by workspace/environments.ts. A release belongs to one member (#4028 question 4), so the member owns its promotion order.
Requirements
The order of the member's environments array in chant.config.ts is its promotion order, with an optional canary per step. A component's environments entries (component.schema.json:64) say where its release is hosted in each environment; they don't set the order.
components promote --to <env> defaults --from to the previous environment, and refuses a promotion that skips one unless asked.
The order is in the read contract, so behold's lane reads it instead of guessing.
Acceptance
The ordering rule and canary field, with schema and docs.
Promote uses it, with a test that skipping an environment is refused.
area:lifecycleplan/diff/apply/observe/drift/prune/search --livearea:workspacechant workspace epic (#2525)enhancementNew feature or requestphase:0behold#678 rollout: phase 0 (parallel within a phase)
Activity
workspace: declare the promotion order of environments, used by promo…