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
Commit 2866322
Browse filesBrowse the repository at this point in the historyBrowse files
fix(state): move state only under a commit step seen to stage state/
The guard that holds the move back looked for one known-bad pattern: a
"git add" line naming .vapi-state. with none naming state. A commit step
it couldn't read (a helper script, a commit action with a file pattern, a
pipeline outside GitHub Actions) passed as safe. A command on a person's
machine then moved state, and every later promotion run passed while
state/<org>/state.json was never committed, so resources were created
again as duplicates.
The move now fails closed. State moves by itself only when a workflow is
seen to stage state/, or when nothing in the repository commits state
after a run: no workflow that can write to the repository, and no root
promotion.yml. A CI run stops before any request when it would write
state in a place its commit step isn't seen to stage. In GitHub Actions
it reads the workflow that is running it.
npm run migrate, where nothing is seen to stage state/, prints the two
paths the commit step has to stage and moves nothing. A person who has
updated their step says so with --commit-step-stages-state, which is
recorded in state/commit-step.json. The engine can't check that word.
Docs: what counts as seen, the limit of the flag, what a customer sees
after upgrading, and how to go back to an older engine without creating
duplicates.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
0 commit comments