fix(cli): harden legacy flow lock migration from #9555#9557
Draft
hugocasa wants to merge 1 commit into
Draft
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Deploying windmill with
|
| Latest commit: |
1ab4f6c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4c613abf.windmill.pages.dev |
| Branch Preview URL: | https://cli-flow-lock-migration-hard.windmill.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #9555 addressing the two P2 nits from its automated review, hardening the one-time migration that renames legacy flow inline lock files (
*.inline_script.deno.lock) to the canonical name (*.inline_script.lock).Changes
xwhose legacy lockx.deno.lockequals the canonical lock of a step summarized "x.deno") is never deleted.Test plan
bun testextractor/inline-script unit suite passes (34 tests)generateFlowLockInternal: legacy repo migrates in one run (canonical lock written, legacy removed, flow.yaml updated) with the new ordering🤖 Generated with Claude Code
Summary by cubic
Hardens the one-time migration that renames legacy inline lock files by rewriting
flow.yamlbefore cleanup and guarding against path collisions. Prevents stale lock references and accidental deletion during migration.flow.yamlrewrite to avoid broken references on interruption.Written for commit 1ab4f6c. Summary will update on new commits.