mix sigra.fixture.rebless_golden (Sigra v0.2.5)

Copy Markdown View Source

Regenerates the test/fixtures/install_golden/ baseline driven by the Sigra.Test.InstallFixture harness, then prints a structured delta report grouped by top-level directory so the operator can review what changed without eyeballing a 20+ file raw diff.

This automates the manual iex-driven runbook in .planning/phases/24-repair-phase-16-17-organizations-generator-templates/24-01-repair-phase-16-17-org-templates-PLAN.md:953-1025 and the older runbook in .planning/phases/11-generator-feature-system/11-01-SUMMARY.md.

Usage

MIX_ENV=test mix sigra.fixture.rebless_golden
MIX_ENV=test mix sigra.fixture.rebless_golden --check

--check writes to a tmp dir and diffs against the committed fixture without modifying test/fixtures/install_golden/. Exits 2 if drift is detected. This mode is suitable for a CI drift-detector job.

The task does NOT stage, commit, or amend. After a normal (non-check) run, review git diff test/fixtures/install_golden/ before committing.