Skip to content

fix(workspace): stop the smoke deploy from deleting consumer-owned files - #1468

Merged
c-vigo merged 4 commits into
release/1.8.0from
bugfix/1466-smoke-deploy-preserve-files
Aug 12, 2026
Merged

c-vigo merged 4 commits into
release/1.8.0from
bugfix/1466-smoke-deploy-preserve-files

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

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 --delete from the smoke-mode scaffold copy.

assets/init-workspace.sh smoke mode was the only copy branch carrying rsync --delete, so it removed every tracked path the template does not ship — consumer payload included. That was invisible while commit-action built the deploy tree additively; #1443 then started publishing git 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/ and docs/pull-requests/ excludes go with --delete — they existed only to shield sync-issues output from it. The /CHANGELOG.md exclude stays: it is overwrite protection (#1403), not delete protection.

Second-order effect this clears: with pyproject.toml gone from the branch, the gate's re-scaffold no longer detected a Python repo, so it rendered language: ['actions'] for CodeQL and stripped the 166-line Python block from .gitignore.

Changes

  • assets/init-workspace.sh — smoke-mode rsync drops --delete and the two docs excludes
  • tests/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 --delete behaviour replaced by one that pins its absence
  • CHANGELOG.md — Fixed entry under 1.8.0

Verification

Suite Result
bats tests/bats/init-workspace.bats 252/252 pass
bats tests/bats/install.bats tests/bats/just.bats 140 pass, exit 0
pytest tests/ (excluding container suites) 608 passed, 1 skipped
prek run --all-files exit 0

Both 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-test main needs no redeploy — its git ls-files --deleted step now sees only genuine retirements.

Live proof is the next candidate's smoke chain.

Closes #1466

c-vigo added 4 commits August 12, 2026 13:45
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
@c-vigo
c-vigo merged commit eaa2fb9 into release/1.8.0 Aug 12, 2026
12 checks passed
@c-vigo
c-vigo deleted the bugfix/1466-smoke-deploy-preserve-files branch August 12, 2026 12:17
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
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