-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
run-make-support: add wrapper for fs
operations
#125736
Conversation
This comment has been minimized.
This comment has been minimized.
05c396f
to
ef50eda
Compare
This comment has been minimized.
This comment has been minimized.
6d89045
to
5405489
Compare
This comment has been minimized.
This comment has been minimized.
5405489
to
285ddae
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #125744) made this pull request unmergeable. Please resolve the merge conflicts. |
285ddae
to
413d8b1
Compare
6940dae
to
249fd58
Compare
This comment has been minimized.
This comment has been minimized.
249fd58
to
2c0f892
Compare
This comment has been minimized.
This comment has been minimized.
2c0f892
to
14ea2a5
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good changes, I think tests are less busy to read without all the .unwrap()
s.
14ea2a5
to
e551456
Compare
This comment has been minimized.
This comment has been minimized.
e551456
to
9404d9e
Compare
This comment has been minimized.
This comment has been minimized.
9404d9e
to
1094107
Compare
#125752 was merged, so this needs a rebase. |
@rustbot author (no longer blocked) |
7503379
to
5995c7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small problem with an intra-doc link, r=me after fixing that because it might fail in CI when ./x doc src/tools/run-make-support
and after PR CI is green.
5995c7f
to
c84afee
Compare
The current rollup contains some rmake.rs that uses |
@bors r+ rollup=never p=1 (some other run-make PRs are blocked on this) |
☀️ Test successful - checks-actions |
Finished benchmarking commit (3ea5e23): 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)Results (primary 3.3%)This 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. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 679.328s -> 676.994s (-0.34%) |
Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Guaranteed to fail CI until rust-lang#125736 gets merged. Will require addition of `fs_wrapper::set_permissions` in the associated module. try-job: x86_64-msvc
Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Guaranteed to fail CI until rust-lang#125736 gets merged. Will require addition of `fs_wrapper::set_permissions` in the associated module. try-job: x86_64-msvc
…youxu Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Guaranteed to fail CI until rust-lang#125736 gets merged. Will require addition of `fs_wrapper::set_permissions` in the associated module. try-job: x86_64-msvc
…youxu Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Guaranteed to fail CI until rust-lang#125736 gets merged. Will require addition of `fs_wrapper::set_permissions` in the associated module. try-job: x86_64-msvc
…youxu Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Guaranteed to fail CI until rust-lang#125736 gets merged. Will require addition of `fs_wrapper::set_permissions` in the associated module. try-job: x86_64-msvc
…youxu Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Guaranteed to fail CI until rust-lang#125736 gets merged. Will require addition of `fs_wrapper::set_permissions` in the associated module. try-job: x86_64-msvc
Rollup merge of rust-lang#126095 - Oneirical:final-testination, r=jieyouxu Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Guaranteed to fail CI until rust-lang#125736 gets merged. Will require addition of `fs_wrapper::set_permissions` in the associated module. try-job: x86_64-msvc
Suggested by #125728.
The point of this wrapper is to stop silent fails caused by forgetting to
unwrap
fs
functions. However, functions likefs::read
which return something and get stored in a variable should cause a failure on their own if they are not unwrapped (as theResult
will be stored in the variable, and something will be done on thatResult
that should have been done to its contents). Is it still pertinent to wrapfs::read_to_string
,fs::metadata
and so on?Closes: #125728
try-job: x86_64-msvc
try-job: i686-mingw