Repository navigation
Report 0.3.0 everywhere the version is carried - #3
Merged
Merged
Conversation
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.
The 0.3.0 release shipped with the version carried in one place and reported in another.
package.jsonsays0.3.0andCHANGELOG.mdrecords the 0.3.0 release, butbin/until.mjshard-codedconst VERSION = "0.2.0", sonode bin/until.mjs --versionprinted0.2.0. The same string was written into the proof bundle byscripts/proof.mjs(summary.version), into the benchmark byscripts/bench.mjs(version), and asserted literally in the benchmark CLI startup check, which rejects the sample unless the CLI prints exactly the expected version.CITATION.cff,package-lock.json,app/package.jsonandapp/package-lock.jsoncarried it too.The copies now agree at 0.3.0, but they are still copies: a release still has to edit each of them by hand, and nothing fails when one is missed. No test covers this, so the next release drifts the same way.
What done means:
node bin/until.mjs --versionprints theversionfield ofpackage.json.package.jsononly; nothing else carries a second copy of the string.scripts/bench.mjsno longer compares the CLI output against a literal version. It compares it against the version the tool reports.scripts/proof.mjswrites the same version into the proof bundle that it reports insummary.version.versionfield ofpackage.json, so a future drift fails the suite instead of the release.CITATION.cff,package-lock.json,app/package.jsonandapp/package-lock.jsoncarry the same value automatically.npm run checkpasses.npm run proofandnpm run benchpass.app/public/proof.jsonchanges as a result, it is regenerated withnpm run proofand committed, and the published-evidence integrity test still passes.Boundary
npm run proof. Do not hand-editapp/public/proof.json.README.mdother than the version string itself.