Skip to content

chore(release): merge dev into release/1.4.0 to unfreeze workflow-model - #1215

Merged
c-vigo merged 16 commits into
release/1.4.0from
feature/1205-unfreeze-140
Jul 20, 2026
Merged

c-vigo merged 16 commits into
release/1.4.0from
feature/1205-unfreeze-140

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Unfreezes release/1.4.0 by merging dev into it, deliberately pulling epic #1205 (per-consumer DEVKIT_WORKFLOW gitflow/trunk model, merged to dev via #1212) and the renovate github-backup 0.64.0→0.64.2 bump (#1213) into the 1.4.0 release. This deviates from the epic's documented 1.5.0 target — accepted trade-off: an rc5 was required anyway (the branch is five fixes past rc4), and gitflow consumers get a provable byte-for-byte no-op.

Gates cleared before this merge

Merge composition

Two real conflicts, composed to preserve both sides:

CHANGELOG surgery: dev's two Unreleased entries moved into the [1.4.0] section (Added/Changed), ## Unreleased restored to the empty skeleton (#590 invariant); assets/workspace/.devcontainer/CHANGELOG.md re-synced byte-identical (sync-manifest hook green). All seven release-branch hardening fixes (#1190 #1193 #1199 #1200 #1201 #1202 #1204) survive.

Verification

  • Targeted suites: 66 passed (test_workflow_model, test_install_script, test_workflow_prepare_extension, test_workflow_sync_checkout)
  • Full pytest: 1098 passed, 28 skipped; 3 failures all environmental/pre-existing (2× vig-utils TestFindRepoRoot env, 1× test_manifest_files stale local image — CI rebuilds)
  • bats: 331 ok, 0 not ok (init-workspace.bats, install.bats)
  • pre-commit run --all-files: fully green
  • Containment: git log HEAD..origin/dev empty; diff vs dev = release fixes + changelog structure only

After merge

Cut rc5 (required regardless of this PR) and extend rc validation with the trunk-render suites + a gitflow-consumer scaffold byte-identity check.

Refs: #1205

c-vigo and others added 16 commits July 17, 2026 22:43
De-risk the DEVKIT_WORKFLOW knob (gitflow | trunk) for epic #1205: a
local git simulation proves the trunk release topology (cut release/X.Y.Z
from main, merge back, tag; no dev branch) with the #617 advance guard and
#590 Unreleased preservation intact; a render_workflow_model() prototype
performs the anchored dev->main rewrite + sync-main-to-dev copy-exclude and
is verified actionlint-clean with zero residual heads/dev and the #991
invariants preserved. No production wiring (that is #1207/#1208).

Refs: #1206
Skeleton mirroring test_ci_runner.py's executed-bash style: 9 green tests
drive the spike render_workflow_model() prototype against a copied scaffold
tree and assert the full trunk shape (no sync-main-to-dev.yml; prepare-release
forks from main with zero residual heads/dev; ci/codeql PR filters exclude dev;
sync-issues default main; SKILL base main; pre-commit drops (?!dev$)) plus a
gitflow byte-identical guard. Two xfail(strict) tests name the production seams
so they auto-flip when wired: #1207 (DEVKIT_WORKFLOW manifest key) and #1208
(render wiring in init-workspace.sh).

Refs: #1206
Add the `--workflow gitflow|trunk` flag to both install.sh and
init-workspace.sh (parse, enum validation, and forwarding from install.sh
to init-workspace via CMD), and gate the gitflow `dev` branch on it: the
new-repo `git branch dev`, the missing-dev warning, and the push hint drop
`dev` in trunk. `git init -b main` is unchanged. Resolution/render wiring
lands in the follow-up commits.

Refs: #1209
Ship the opt-in `DEVKIT_WORKFLOW=` key in the scaffold `.vig-os` (empty =>
gitflow default) and resolve it in init-workspace.sh and install.sh:
flag > persisted manifest > gitflow. Mirror the DEVKIT_MODE guards — a loud
enum guard on a corrupt persisted value and a contradiction guard that
refuses an explicit --workflow differing from the persisted model outside
--preview/--smoke-test. The resolved value is written back only for trunk,
so a gitflow consumer's .vig-os stays byte-identical (no new non-empty line).

Refs: #1207
Port render_workflow_model() into init-workspace.sh as a sibling of
render_codeql_matrix() and invoke it after the rsync copy: in trunk it
retargets the copied release workflows dev -> main (prepare-release, ci,
codeql, sync-issues), the branch-naming skill and the pre-commit branch
guard via anchored sed, and scrubs the inert dev step-names/comments in
prepare-release so a trunk repo carries no dev cruft (/dev/null and the
dev_sha/DEV_SHA variable names are preserved). sync-main-to-dev.yml is
copy-excluded and pruned on a gitflow->trunk upgrade, and the --force
preview mirrors both. gitflow is a byte-for-byte no-op. The now-redundant
spike prototype scripts are removed (SSoT); FINDINGS.md is kept as the record.

Refs: #1208
…W knob

Rewrite test_workflow_model.py to scaffold real gitflow/trunk workspaces via
init-workspace.sh (executed-bash style, mirroring test_ci_runner.py) instead
of the removed spike prototype, flipping the two xfail seams (#1207 manifest
key, #1208 render wiring) to real passing tests. Cover the full trunk shape
with zero residual heads/dev, the gitflow default-path byte-identical guard,
the enum and contradiction guards, the conditional writeback, and the
sync-main-to-dev exclude + gitflow->trunk prune. Record the feature in the
changelog Unreleased section.

Refs: #1205
…w model

Parametrize the suites that assumed the gitflow (long-lived dev) shape so they
also cover DEVKIT_WORKFLOW=trunk, without weakening the gitflow assertions:

- extract the init-workspace scaffold invocation into a shared
  tests/workflow_scaffold.py (SSoT reused by test_workflow_model.py and the
  trunk-parametrized suites below)
- test_install_script.py: add a trunk integration fixture + case asserting a
  trunk install creates main only (no dev); gitflow still creates both
- tests/bats/install.bats: assert the dev-branch creation + push hint are gated
  on the workflow model, and --workflow is forwarded (dry-run)
- test_workflow_sync_checkout.py: scope to gitflow and positively assert a trunk
  scaffold omits sync-main-to-dev.yml
- test_scaffold_lint.py: scope the sync-main-to-dev ref: dev fixture to gitflow
- test_workflow_prepare_extension.py: assert the release base is main under
  trunk (dev under gitflow) and the hook DAG survives the render
- tests/bats/init-workspace.bats: new trunk coverage (omits sync-main-to-dev,
  #991 invariants on the rendered prepare-release, gitflow->trunk DELETIONS
  preview, contradiction guard both directions); #991 TEMPLATE_DIR assertions
  left untouched

release-core is dev-free and untouched by the trunk render, so
test_release_core_sync_dispatch.py needs no change.

Refs: #1210
…t-in) (#1212)

Implements epic #1205 — a per-consumer `DEVKIT_WORKFLOW` knob selecting
the branching/release model. **gitflow stays the unchanged default;
trunk is opt-in.**

## What it does
- `DEVKIT_WORKFLOW=gitflow|trunk`, **empty ⇒ gitflow** (existing
consumers' `.vig-os` stays byte-identical).
- **gitflow (default):** unchanged — `dev` integration branch, cut
`release/X.Y.Z` from `dev`, RC train, finalize→`main`+tag,
`sync-main-to-dev` back-merge.
- **trunk:** `feature|bugfix|chore` straight to `main`; releases STILL
happen but cut `release/X.Y.Z` **from `main`**, RC on it, merge back
**into `main`** + tag. Only the `dev` branch and `sync-main-to-dev.yml`
disappear; the whole downstream tag/build/publish/promote chain is
unchanged (already `release/* → main`).

## How (design)
Realized **entirely at scaffold time** (mirrors `DEVKIT_MODE`) — an
anchored `dev→main` render of the scaffolded workflows/skill/pre-commit
plus a `sync-main-to-dev.yml` copy-exclude; NO resolve-toolchain runtime
wiring, NO workflow twin. Enabled by the verified fact that every `dev`
reference in `prepare-release.yml` is a plain branch literal (incl. the
#617 read-after-write guard). ADR: `docs/rfcs/ADR-workflow-model.md`.

## Sub-issues delivered (spike #1206 + #1207–#1211)
- **#1207** manifest key + resolution + enum/contradiction guards +
conditional writeback (trunk only).
- **#1208** `render_workflow_model()` in init-workspace.sh +
sync-main-to-dev exclude/prune + `--force` preview mirror.
- **#1209** `--workflow` flag on install.sh/init-workspace.sh +
dev-branch creation gating.
- **#1210** trunk coverage across the dev-assuming suites + new bats;
`test_workflow_model.py` (19) end-to-end.
- **#1211** docs (`RELEASE_CYCLE`/`DOWNSTREAM_RELEASE`/`MIGRATION`
"Workflow models", README/CLAUDE), ADR, plan doc.

## Verification
- Full hook suite green.
- **1094 pytest passed** incl. the new `test_workflow_model.py` and the
trunk-extended suites; the **gitflow scaffold is byte-identical to
today** (default-path regression guard). bats: install 99 ok,
init-workspace 229 ok (#991 template invariants intact).
- 2 failures remain (`vig-utils` `TestFindRepoRoot`) — **pre-existing +
environmental**, in a package this PR does not touch.

## Notes
- The three code sub-issues (#1207–#1209) share
`init-workspace.sh`/`install.sh`, so they're consolidated into this one
PR (per-sub-issue commits kept for traceability) rather than
conflict-prone parallel PRs.
- Switching an existing repo between models is refused by a
contradiction guard (destructive; a gitflow→trunk switch leaves an
orphan remote `dev` — documented cleanup in MIGRATION).
- Scope: devkit capability only. Targets 1.5.0; independent of the
in-flight 1.4.0 promote.

Refs: #1205, #1206, #1207, #1208, #1209, #1210, #1211
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[github-backup](https://redirect.github.com/josegonzalez/python-github-backup)
| `==0.64.0` → `==0.64.2` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/github-backup/0.64.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/github-backup/0.64.0/0.64.2?slim=true)
|

---

### Release Notes

<details>
<summary>josegonzalez/python-github-backup (github-backup)</summary>

###
[`v0.64.2`](https://redirect.github.com/josegonzalez/python-github-backup/blob/HEAD/CHANGES.rst#0642-2026-07-18)

[Compare
Source](https://redirect.github.com/josegonzalez/python-github-backup/compare/0.64.1...0.64.2)

***

- Add tests. \[Duncan Ogilvie]
- Skip fetching gists that have not been updated. \[Duncan Ogilvie]
- Skip retrieving repositories when not necessary. \[Duncan Ogilvie]

###
[`v0.64.1`](https://redirect.github.com/josegonzalez/python-github-backup/blob/HEAD/CHANGES.rst#0641-2026-07-17)

[Compare
Source](https://redirect.github.com/josegonzalez/python-github-backup/compare/0.64.0...0.64.1)

- Fix exception when DMCA'd/empty gists were backed up. \[Duncan
Ogilvie]

</details>

---

### Configuration

📅 **Schedule**: (in timezone Etc/UTC)

- Branch creation
  - "before 9am on monday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/vig-os/devkit).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjUuMSIsInVwZGF0ZWRJblZlciI6IjQzLjI2NS4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbXX0=-->
This deliberately pulls epic #1205 (the per-consumer DEVKIT_WORKFLOW
gitflow/trunk model), which was originally targeted at 1.5.0, into the
1.4.0 release, together with the renovate github-backup 0.64.0->0.64.2
bump (#1213). All seven release-branch hardening fixes are preserved and
the complete workflow-model feature is composed on top of them.

Refs: #1205
@c-vigo
c-vigo merged commit 5851a6a into release/1.4.0 Jul 20, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1205-unfreeze-140 branch July 20, 2026 08:51
c-vigo added a commit that referenced this pull request Jul 30, 2026
…1307)

## Summary

Restart of the 1.5.0 finalization (maintainer-approved): the first live
`devkit-upgrade` dispatch exposed #1305 (runtime auto-detection picks
the runner's broken podman → `crun: unknown version specified` at the
install step). Since nothing consumed the final (draft release deleted,
tag deleted, `latest`/`main`/promote untouched), the fix ships **within
1.5.0** instead of a same-day 1.5.1.

- Merge `dev` (PR #1306: docker-first daemon-probed detection +
`--docker` in the upgrade template) into `release/1.5.0` — clean merge,
App-era template keeps all #1302/#1304 content plus the new flag.
- `prepare-changelog reset-version` restores the `- TBD` heading
(finalize will re-stamp).
- #1305 changelog entry added to the frozen 1.5.0 section (was missed in
#1306 — dev's Unreleased stays empty since the fix ships here).

Precedent: 1.4.0 unfreeze (PR #1215). After merge: rc3, focused
revalidation (delta is #1305 only), re-approve, re-finalize.

Refs: #1305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant