Skip to content

fix: preserve tracked files during smoke cleanup - #306

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/smoke-preserve-tracked
Oct 17, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/smoke-preserve-tracked

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Smoke cleanup currently removes tracked output sentinels, leaving unrelated workspace deletions after a green run. This change consults the git index before deletion, preserves indexed files and ancestor directories, and never follows symlinks.

Scripts Changed

  • heart/smoke.py: index-aware output cleanup; git failure stops before deleting anything.
  • tests/test_smoke.py: real git index, nested and newline paths, external symlink and failed-index regressions.

Validation

32 focused smoke tests and all 1,259 Heart tests passed on Python 3.12. Audited smoke.py: it has no test-results wipe; release-integrate's deliberately separate stale-result purge is unchanged.

Heart published 2026-10-17 09:00 UTC: STALE — release validation stale: source moved since rehearsal (PyAutoFit, PyAutoGalaxy, PyAutoLens). Development only; no release-readiness claim. Human /prm; no auto-merge.

Closes #302

@Jammy2211
Jammy2211 merged commit 6d12d05 into main Oct 17, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/smoke-preserve-tracked branch October 17, 2026 18:48
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.

fix: preserve tracked files during smoke cleanup

1 participant