feat(release): embed workspace_version in config/general.yaml#70
Merged
Conversation
This was referenced Apr 30, 2026
Merged
Merged
Merged
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
Update the release pipeline to embed the workspace version inside
config/general.yaml(underversion.workspace_version) in addition toversion.txt, so the new config-awareautoconf.workspace.check_version(PyAutoLabs/PyAutoConf#100) finds a source on every workspace clone. Updateverify_workspace_versions.shto mirror the new precedence (general.yaml → version.txt) and fail if the two sources disagree on a checked-out workspace.API Changes
None — internal CI/CD and pre-build tooling.
Test Plan
pytest tests/stays greenbash verify_workspace_versions.shdry-run passes against the local checkout (6 workspaces ok, euclid_pipeline SKIP — same as pre-change baseline)version.workspace_versioninto each workspace'sconfig/general.yamlcorrectly (verify by inspecting the resulting commit)Full API Changes (for automation & release notes)
Changed Behaviour
release.yml"Write workspace version" step (was "Write workspace version.txt") — now writes bothversion.txtandconfig/general.yaml'sversion.workspace_versionkey. The general.yaml edit is a Python shim (regex-based, comment-preserving); sed-based YAML edits are too fragile.verify_workspace_versions.sh— resolves the workspace version fromconfig/general.yaml'sversion.workspace_versionfirst, falls back toversion.txt. Fails if both exist and disagree on a workspace.CLAUDE.md— documents the new precedence and that the runtime check now fires on every library import.Migration
🤖 Generated with Claude Code