repo2graph: persist lab workspace in a named volume - #739
Merged
Conversation
The lab vein workspace defaulted to ./lab-workspace in the container's writable layer (VEIN_LAB_WORKSPACE was never set), so run history/outputs and UI-edited steps/workflows were lost on container recreation. Set the env var and back it with a named volume, matching the existing sessions/artifacts/reqs/cache pattern. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
The lab vein workspace resolves to
VEIN_LAB_WORKSPACEor./lab-workspace(stakgraphcreateLabVein.ts), and sphinx-swarm never set the env var — so on prod it lived at/usr/src/app/lab-workspacein the container's writable layer and was wiped on container recreation (auto-updater image pulls, config changes).This sets
VEIN_LAB_WORKSPACE=/usr/src/app/lab-workspaceand backs it with arepo2graph-lab-workspacenamed volume, matching the existing sessions/artifacts/reqs/cache pattern. Step/workflow templates are re-seeded on boot either way; what this preserves is run history, run outputs, and steps/workflows edited through the vein UI/API.Includes a test asserting both the env var and the bind, following
test_cache_vol_and_env_are_emitted.🤖 Generated with Claude Code