Repository navigation
Commit a dependency fix's build output with the archive's modes - #963
Merged
Merged
Conversation
The dependency fix's probe builds now carry which of their manifests and lockfiles the build left executable, and both of its commits of that output (a verified bump set, and a single bump before its call sites are fixed) go through batch_write_from with git_mode::archive_sources. The xl case names every caller of run_codegen with how many commits of build output it makes, each passing the archive's sources, and fails on a caller it doesn't name.
Contributor
|
💚 Post-merge health check passed: the deploy of
|
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
Follows #959. A dependency fix's sandbox builds now commit their output with the archive's executable bits, the same as the codegen tool and the generators already do. A source check now covers every pass that runs a build, so a new one can't commit build output without them.
Changes
dep_fix: a probe now records which of its manifests and lockfiles the build left executable. Both commits of that output go throughbatch_write_fromwithgit_mode::archive_sources: a verified bump set, and a single bump before its call sites are fixed. A new file the build left executable is committed executable; a file already on the branch keeps its mode.xl_file_modes_keptnames every caller ofrun_codegenand how many commits of build output it makes. Each of those commits must pass the archive's sources. The test walks the worker's source and fails on any caller it doesn't name.Verification
cargo fmt --all --check,rustfmt --checkon the incident files, and clippy with-D warningsall pass.cargo test -p common -p worker -p gatewaypasses, including all ninexl_file_modes_kepttests.