Repository navigation
fix(workspace): retarget renovate preset baseBranchPatterns to main in trunk - #1339
Merged
Merged
Conversation
RED: the trunk scaffold leaves baseBranchPatterns ["dev"] in .github/renovate-default.json, so Renovate has no branch to operate on in a trunk consumer. Also extend the gitflow byte-identical guard to the preset (placeholder-free render target). Refs: #1336
…n trunk Renovate restricted to a base-branch pattern matching no existing branch has nothing to operate on, so trunk consumers (no dev branch) ran no updates at all. render_workflow_model now rewrites the anchored preset line dev -> main; existing trunk repos self-heal on their next devkit-upgrade. Verified inert live on exo-pet/vault and vig-os/org-config before the fix. Refs: #1336
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
Trunk-model consumers (
DEVKIT_WORKFLOW=trunk) keep the gitflow-shapedbaseBranchPatterns: ["dev"]in their scaffolded.github/renovate-default.json— but have nodevbranch, so Renovate has nothing to operate on and runs no updates at all (verified live onexo-pet/vaultandvig-os/org-config). The trunk render now retargets the preset to["main"], mirroring the existing dev→main retarget for workflows.Type of Change
fix-- Bug fixChanges Made
assets/init-workspace.sh(render_workflow_model): new anchored sed rewrites"baseBranchPatterns": ["dev"]→["main"]in the scaffolded.github/renovate-default.jsonunder trunk; gitflow remains a byte-for-byte no-op. The consumer-owned rootrenovate.jsonis preserved and untouched.tests/test_workflow_model.py: newtest_trunk_renovate_preset_targets_main(drives the realinit-workspace.shend-to-end, like the rest of the suite), and.github/renovate-default.jsonadded toNO_PLACEHOLDER_RENDER_FILESso the gitflow byte-identical guard covers the new render target.CHANGELOG.md+.devcontainermirror.Changelog Entry
Fixed
main(#1336)render_workflow_model) retargetsbaseBranchPatternsfrom["dev"]to["main"]in the scaffolded.github/renovate-default.json. Previously aDEVKIT_WORKFLOW=trunkconsumer kept["dev"]while having nodevbranch, leaving Renovate with nothing to operate on — effectively inert. Existing trunk repos self-heal on their nextdevkit-upgrade.Testing
just test)Manual Testing Details
["dev"]), GREEN after the render change.tests/test_workflow_model.py: 23 passed (includes the gitflow no-op guards — gitflow output stays byte-identical to the template).bats tests/bats/init-workspace.bats: 278 ok, exit 0.prek run --all-files: green, exit 0.Checklist
CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Rollout: the preset is a managed file, so vault, org-config, and exo-fleet self-heal on their next
devkit-upgradeafter this ships — no manual consumer action. Their first Renovate run after that upgrade will open the accumulated update PRs (including the #1332 managed-file exclusion taking effect for the first time on trunk repos, since Renovate was inert there until now).Closes #1336
Refs: #1336