Repository navigation
fix(workspace): stop the smoke deploy from deleting consumer-owned files - #1468
Merged
Merged
Conversation
The smoke-mode rsync carried --delete, which removes every tracked path the template does not ship — including the smoke repo's own pyproject.toml, uv.lock, src/ and tests/. That stayed invisible while commit-action built the deploy tree additively; once #1443 began publishing `git ls-files --deleted`, the 1.8.0-rc3 deploy committed those deletions, the drift gate saw a repo with no pyproject.toml (so it rendered CodeQL and .gitignore language-neutral), and the whole smoke orchestration aborted. Retirement is the #1348 manifest's job, and the drift gate re-scaffolds in normal mode, which never deletes — so dropping --delete makes gate and deploy agree by construction. The docs/issues/ and docs/pull-requests/ excludes go with it: they existed only to shield sync-issues output from --delete. Refs: #1466
This was referenced Aug 12, 2026
c-vigo
added a commit
that referenced
this pull request
Aug 12, 2026
… release workflows (#1472) ## Summary #1467 replaced the scaffolded orchestrator's rollback (`git reset --hard` + force-push under a configured git identity) with the guarded Git Data API revert — the last consumer of the `git_user_name` / `git_user_email` values threaded through the release workflows. This removes the dead plumbing everywhere, caller and callee in lockstep. The set turned out larger than #1467's "three workflows" note: **four workflows × two copies**: - scaffold `release.yml`: `workflow_dispatch` inputs + the forward into the `release-core` call - scaffold `release-core.yml`: `workflow_call` declarations (zero use sites in the file) - `prepare-release.yml` (devkit's own + scaffold): dispatch inputs + the forward into the extension call - `prepare-release-extension.yml` (devkit's own + scaffold): seam template declarations (the default no-op never reads them) Plus the contract docs (`docs/DOWNSTREAM_RELEASE.md` + scaffold copy). Devkit's own `release.yml` was already clean (bespoke, zero hits) and is untouched. Historical archives and released changelog entries deliberately kept. ## Consumer safety This is a `workflow_call`/seam interface change, hence the `semver:minor` label and the `### Removed` changelog entry under 1.8.0. Orchestrator and core ship together via the scaffold, so caller and callee change in lockstep — no consumer action beyond the normal upgrade. All six reachable consumers' **preserved** `prepare-release-extension.yml` copies (commit-action, sync-issues-action, org-config, devkit-smoke-test, vault, exo-fleet) were checked: they declare the pair but have zero use sites, and since the inputs are optional with declared defaults, a stale preserved copy stays valid against the upgraded caller. The one genuine surface change: the (never-exercised) dispatch knob for a custom release-commit identity is gone — all release writes are App-identity API commits. ## Tests TDD: `test(ci)` commit landed RED first (5 failed / 32 passed — exactly the new absence assertions). `test_scaffold_orchestrator_keeps_the_dispatch_identity_inputs` rewritten to `..._drops_...` (also pins the release-core declarations and the core-call `with:`, keeps the App-token rollback assertions); the pair dropped from `REQUIRED_INPUTS` in `test_workflow_prepare_extension.py` plus two absence tests parametrized over both extension copies. Verification (direct exit codes): workflow suites 66 passed; broad `pytest tests/` (excl. image/integration/flake) 534 passed; `actionlint` on the two touched devkit workflows clean; rendered-tree actionlint bats 6/6; after merging in the updated `release/1.8.0` (#1468 landed mid-flight; clean auto-merge, changelog union verified, mirror byte-identical): full `init-workspace.bats` 252/252 ok and full `prek run --all-files` exit 0. Closes #1470
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
The 1.8.0-rc3 smoke deploy committed the deletion of devkit-smoke-test's own Python project (
pyproject.toml,uv.lock,src/,tests/), which failed the scaffold-drift gate and aborted the release gate. This drops--deletefrom the smoke-mode scaffold copy.assets/init-workspace.shsmoke mode was the only copy branch carryingrsync --delete, so it removed every tracked path the template does not ship — consumer payload included. That was invisible whilecommit-actionbuilt the deploy tree additively; #1443 then started publishinggit ls-files --deleted, and the deletions reached the branch.The drift gate re-scaffolds in normal mode, which never deletes and prunes retirement via the #1348 manifest. Smoke mode now does the same, so gate and deploy agree by construction. The
docs/issues/anddocs/pull-requests/excludes go with--delete— they existed only to shield sync-issues output from it. The/CHANGELOG.mdexclude stays: it is overwrite protection (#1403), not delete protection.Second-order effect this clears: with
pyproject.tomlgone from the branch, the gate's re-scaffold no longer detected a Python repo, so it renderedlanguage: ['actions']for CodeQL and stripped the 166-line Python block from.gitignore.Changes
assets/init-workspace.sh— smoke-mode rsync drops--deleteand the two docs excludestests/bats/init-workspace.bats— two new end-to-end regression tests (consumer payload survives; retired paths are still pruned); the two tests that asserted the--deletebehaviour replaced by one that pins its absenceCHANGELOG.md— Fixed entry under 1.8.0Verification
bats tests/bats/init-workspace.batsbats tests/bats/install.bats tests/bats/just.batspytest tests/(excluding container suites)prek run --all-filesBoth new tests were confirmed RED before the fix: the payload test failed on the deleted
pyproject.toml/uv.lock, the retirement test passed throughout (pinning that the #1348 prune, not--delete, is what removes retired paths).Notes
No change to
assets/smoke-test/.github/workflows/repository-dispatch.yml, so the listener already deployed to devkit-smoke-testmainneeds no redeploy — itsgit ls-files --deletedstep now sees only genuine retirements.Live proof is the next candidate's smoke chain.
Closes #1466