Repository navigation
review: post.py device makes its root absolute, and the review context reads the workspace on stable - #105
Merged
Conversation
…t reads the workspace on stable The workflow passes --root base, and device_dirs ran base/tools/recipes.py with cwd=base, so Python could not open base/base/tools/recipes.py and Build the review context ended with 70. Every review that reaches that step hits it since 517e0a7 let the fork head checkout through; before that the checkout failed first. Once recipes.py runs, its cargo metadata would install the pinned nightly and its components on every review, so the step sets RUSTUP_TOOLCHAIN=stable, as the offline metadata read needs nothing more. The self-test calls device_dirs with a relative root from the directory above a tree.
Owner
|
감사합니다! |
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.
What and why
Since
ef641faf(card labels), every Shingler run that reaches "Build the review context" ends there with exitcode 70, before a review starts. The workflow calls
post.py device --root base, anddevice_dirsrunsbase/tools/recipes.pywithcwd=base, so Python looks forbase/base/tools/recipes.py. This makes the rootabsolute first. The reviews of #94, #95, #96, #98, #99 and #100 all stopped at that step or at the checkout before it
(which
517e0a74fixed).Once
recipes.pyruns, itscargo metadatawould install the pinned nightly and its components (about a gigabyte)on every review, because the review job sets up no toolchain. The step now sets
RUSTUP_TOOLCHAIN=stable: theoffline metadata read needs nothing more.
From the run on #100:
Code shape
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up. No Rust changed.Duplication found or removed (
path:line), or "none": noneWhat I ran
The workflow's call, from the directory above a checkout of
517e0a74, then the same with this change:The self-test passed with the bug because it never called
device_dirs. It now calls it with a relative root fromthe directory above a small tree (a stub
tools/recipes.pyand one crate, no cargo); without theabspathline itfails with the same
base/basepath. The workflow itself runs from the default branch, so this pull request's ownreview hits the same exit 70; the first review that runs this code is the next one after the merge.
Hardware (if the change is for a machine)
Not for a machine. Run on an arm64 Mac.
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.