Repository navigation
fix(flow-driver): isolate build artifacts per run invocation (#817) - #893
Merged
Merged
Conversation
flow run emitted every executable to the repo-global build/<basename>, so two projects both entered at src/main.flow raced through the same build/main artifact and one run could launch the other's binary. Thread a FLOW_BUILD_ROOT override through the compile and runtime-generation paths, and give each run invocation a mktemp build root that is cleaned up on exit or interrupt. flow compile keeps its persistent build output. Adds tests/integration/test_run_build_isolation.py, which runs two same-basename projects concurrently and asserts each executes its own program. Verified: 0 cross-executions over repeated concurrent pairs. Co-Authored-By: Claude <[email protected]>
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.
Closes #817.
flow runemitted every executable to the repo-globalbuild/<basename>, so two projects both entered atsrc/main.flowraced through the samebuild/mainartifact and one run could launch the other's binary. This threads aFLOW_BUILD_ROOToverride through the compile and runtime-generation paths and gives eachflow runamktempbuild root, cleaned up on exit or interrupt.flow compilekeeps its persistent build output. Addstests/integration/test_run_build_isolation.py(two same-basename projects run concurrently, each must execute its own program). Verified locally: 0 cross-executions over repeated concurrent pairs, and single runs clean up their build dir.