-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extend detect_src_and_out
test
#109162
extend detect_src_and_out
test
#109162
Conversation
This change looks good to me, but I'm somewhat confused by the PR description? I only see tests for Anyway, r=me on this change, but please remove "fixes" from the PR description if you want to merge it before I take another look. |
This already covers first 4 topics you mentioned. I performed all the scenarios and test passed without any trouble.
You mean I will take another look and see if I can extend it even more. |
7e6d1f3
to
5f01f7b
Compare
These should already be covered because we check build artifacts and environments that are being applied from bootstrap. So executing bootstrap from any directory or with any
We have test for that @jyn514 I am not sure how far this test can be extended, I guess you have so more ideas. Feel free to remove out of context: I extended testing |
@rustbot ready |
This is what makes me nervous - the test relies on being run in the scenarios I've mentioned to be effective (i.e. after your change
This is definitely not being tested, |
@rustbot author |
5f01f7b
to
bcf5647
Compare
This comment has been minimized.
This comment has been minimized.
bcf5647
to
38b1741
Compare
I currently have several Rust tasks assigned to me that take priority. As this version of the test is significantly better than the previous one, I would like to merge it to main and avoid blocking it from other tasks of mine. I have added a FIXME tag with my name on it, and I will return to improving this test at a later time, once I have finished the other tasks assigned to me.
Updated it. @bors r=jyn514 rollup |
…t_test, r=jyn514 extend `detect_src_and_out` test > I was thinking about the following cases when I wrote the comment in rust-lang#109055 > > 1. Running bootstrap from the source root. > 2. Running from a subdirectory of the source root. > 3. Running from outside the source root. > 4. Running on a different machine from where bootstrap was compiled (which will be important > for rust-lang#107812). You can mostly replicate this by renaming the source root so it no longer exists on disk. > 5. Running with `--build-dir`. > 6. Running with `$RUST_BOOTSTRAP_CONFIG` set in the environment and `build-dir` set in the file. Tested all the topics mentioned above. All worked fine. The test is now also covers if build dir is manually specified in config. r? `@jyn514` helps rust-lang#109120 partially
…t_test, r=jyn514 extend `detect_src_and_out` test > I was thinking about the following cases when I wrote the comment in rust-lang#109055 > > 1. Running bootstrap from the source root. > 2. Running from a subdirectory of the source root. > 3. Running from outside the source root. > 4. Running on a different machine from where bootstrap was compiled (which will be important > for rust-lang#107812). You can mostly replicate this by renaming the source root so it no longer exists on disk. > 5. Running with `--build-dir`. > 6. Running with `$RUST_BOOTSTRAP_CONFIG` set in the environment and `build-dir` set in the file. Tested all the topics mentioned above. All worked fine. The test is now also covers if build dir is manually specified in config. r? ``@jyn514`` helps rust-lang#109120 partially
Signed-off-by: ozkanonur <work@onurozkan.dev>
38b1741
to
925a304
Compare
@bors r=jyn514 rollup |
@bors rollup=iffy |
☀️ Test successful - checks-actions |
Finished benchmarking commit (28a2928): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
Tested all the topics mentioned above. All worked fine. The test is now also covers if build dir is manually specified in config.
r? @jyn514
helps #109120 partially