smoke: pack a build of src (and guard src↔dist drift) #24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The smoke suite cannot validate a PR's
src.smoke/run.shpacks the repo withnpm pack, andpackage.json.filesships onlydist/**/*. Becausedist/is committed only at release (ratified in session 100),npm packpacks whateverdisthappens to be in the working tree — so the smokesuite exercises stale artifacts, not the change under review.
Concretely: PR #15 migrates the headless runner from CSS-class selectors to
data-*hooks. Its smoke guards (
42d7d2e) assert the packed headless containsdata-testrunner-statusand no old class selectors — but the committeddist/headlessis still the old class-based build, so those guards cannot passuntil the separate release dist commit lands. A hook/selector regression, or any
src↔distdrift, is invisible until release.Proposal
smoke/run.sh, so the tarball reflectssrc. Notes/distis not CI-safe today:s/cleanruns an interactivegit clean -i— soeither split that out or invoke the individual
esbuild/vitesteps.git diff --exit-code -- distand fail if the committed artifacts differ from a build of the current
src.prepackbuild and untrackdist/entirely.Filed from session 101 while reviewing PR #15.
data-*structural hooks + visual-refresh options (#5) #15