Repository navigation
fix(cli): isolate update test working directory and restore codeint.json schema - #145
Merged
Merged
Conversation
4 tasks done
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.
Summary
Isolate
crates/cli/tests/update.rsby runningrun_exeinside the temporary binary directory so thev9.9.9self-update test never mutates the repository's owncodeint.json, and restorecodeint.json's$schemaURL tov0.3.0.Tier
Tier 1 from the tier check: test isolation fix in
crates/cli/tests/update.rsand restoringcodeint.json$schema.Task
Fix root cause of
codeint.jsonbeing rewritten tov9.9.9duringcargo test --test update:current_dirincrates/cli/tests/update.rs::run_exeto the temporary install foldercodeint.json$schematov0.3.0cargo test --locked --package codeint-cli --test updateleavescodeint.jsonuntouchedFail-first test
cargo test --locked --package codeint-cli --test updatefollowed bygit diff codeint.jsonupdate_verifies_checksum_and_replaces_standalone_binary_in_placemutated the repository'scodeint.json$schematov9.9.9update.rspass andgit diff codeint.jsonis empty.Checks
cargo test --locked --package codeint-cli --test updatecodeint.jsonunchanged)lefthookpre-commit hooksSafety proof
Not applicable: Tier 0 or 1.
Runtime evidence
Not applicable: no user-visible change.
Gaps