Repository navigation
fix(init): warn when mirror mode has no release fold-back - #1809
Merged
Merged
Conversation
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.
Description
DEVKIT_SYNC_TARGETmirror mode only folds back into the trunk through the release train (#1424), which is rendered intorelease-core.yml. WithreleaseinDEVKIT_FEATURES_DISABLED, that file is pruned. The fold render's-fguard then skipped it without any output, so the mirror was never merged back and the trunk'sdocs/issues/+docs/pull-requests/froze at the switch with no marker (hit in tessera#362).The scaffold now prints a notice for this combination. It does not abort: a release-less consumer can choose this as a deliberate interim setup, which matches the #1284 / #1431 notice precedent.
The docs also claimed that "each sync run regenerates full state", which made the permanent divergence look self-healing. The sync is incremental (it uses a watermark), and only a
force-updatedispatch rebuilds from scratch. See the issue comment and #1757.Type of Change
fix-- Bug fixModifiers
!) -- This change breaks backward compatibilityChanges Made
assets/init-workspace.sh: composition notice next to the feat(workspace): manifest-driven scaffold feature opt-outs (release, sync-issues, scanning, skills, worktree) #1284 sync-issues notice. It fires only when the release group is disabled, sync-issues is enabled andDEVKIT_SYNC_TARGETis set. The stale "regenerates full state" wording in therender_sync_settingscomment is fixed.assets/workspace/.vig-os: theDEVKIT_SYNC_TARGETcomment now describes the incremental sync and the release-train fold-back. TheDEVKIT_FEATURES_DISABLEDcomment now says that disablingreleaseremoves that fold-back.docs/MIGRATION.md: "self-healing archive" is gone. There is a new paragraph on the release dependency in the mirror section, and the coupling is noted on thereleasefeature-group entry.tests/bats/init-workspace.bats: one test checks that the notice fires. Another checks that it stays quiet when release is enabled, and when sync-issues is disabled too (there only the feat(workspace): manifest-driven scaffold feature opt-outs (release, sync-issues, scanning, skills, worktree) #1284 notice applies).Changelog Entry
Fixed
(#1758)
DEVKIT_SYNC_TARGETmirror's only fold-back is the release train, sowith
releaseinDEVKIT_FEATURES_DISABLEDit was never merged back andthe trunk's
docs/issues/stopped updating, with no output. The scaffoldnow prints a notice for that combination (it still proceeds)
.vig-osand migration docs no longer claim each sync regenerates fullstate: the sync is incremental, and only
force-updaterebuildsTesting
just test)Manual Testing Details
TDD: the notice test was committed failing first (f36da62) and passes after the fix. Full BATS suite: 648/648 ok.
prek run --all-filesis green.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Out of scope: a fold-back that does not depend on releases (option 2 in the issue). It brings back the protected-branch problem that mirror mode exists to avoid. It should get its own issue if a release-less consumer needs one.
Refs: #1758