Commit graph

479 commits

Author SHA1 Message Date
Matthias Krüger
c007d0af6a
Rollup merge of #138051 - Kobzol:download-ci-gcc, r=onur-ozkan
Add support for downloading GCC from CI

This PR adds a new bootstrap config section called `gcc` and implements a single config `download-ci-gcc`. Its behavior is similar to `download-ci-llvm`. Since https://github.com/rust-lang/rust/pull/137667, we distribute a CI component that contains the prebuilt `libgccjit.so` library on x64 Linux. With `download-ci-gcc`, this component is downloaded from CI to avoid building GCC locally.

This is an MVP of this functionality, designed for local usage. This PR does not enable this functionality on the LLVM 18 PR CI job which builds `cg_gcc`, and does not implement more complex detection logic. It simply uses `false` (build locally) or `true` (download from CI if you're on the right target, if CI download fails, then bootstrap fails).

The original LLVM CI download functionality has a lot of features and complexity, which we don't need for GCC (yet). I don't like how the LLVM CI stuff is threaded through multiple parts of bootstrap, so with GCC I would like to take a more centralized approach, where the `build::Gcc` step handles download from CI internally. This means that:
- For the rest of bootstrap, it should be transparent whether GCC was built locally or downloaded from CI.
- GCC is not downloaded eagerly unless you actually requested GCC (either you requested `x build gcc` or you asked to build/test the GCC backend).

This approach will require some modifications once we extend this feature, but so far I like this approach much more than putting this stuff into `Config[::parse]`, which already does a ton of stuff that it arguably shouldn't (but it's super difficult to extract its logic out).

This PR is an alternative to https://github.com/rust-lang/rust/pull/130749, which did a more 1:1 copy of the `download-ci-llvm` logic.

r? ``@onur-ozkan``
2025-03-11 19:35:29 +01:00
Jakub Beránek
dcc2b307dc Add triagebot entry for GCC modifications 2025-03-10 12:26:02 +01:00
Alona Enraght-Moony
eecf17e803
triagebot.toml: Don't label test/rustdoc-json as A-rustdoc-search (again) 2025-03-09 20:20:52 +00:00
Matthias Krüger
cdd97bae84
Rollup merge of #137885 - klensy:tidy-triagebot, r=jieyouxu
tidy: add triagebot checks

Validates triagebot.toml to have existing paths:

`[mentions."*"]` sections, i.e.
```toml
[mentions."compiler/rustc_const_eval/src/"]
```
or
```toml
[assign.owners]
"/.github/workflows" = ["infra-ci"]
```
or

```toml
trigger_files = [
 "src/librustdoc/html/static/js/search.js",
 "tests/rustdoc-js",
 "tests/rustdoc-js-std",
 ]
```
Looked at #137876 and implemented check.
2025-03-09 10:34:48 +01:00
Thalia Archibald
06eecca264 Allow anyone to relabel CI-spurious-* 2025-03-07 12:36:33 -08:00
Michael Goulet
9891f55e6e
Rollup merge of #138108 - WaffleLapkin:rustc_codegen_ssa_mentions, r=compiler-errors
Mention me (WaffleLapkin) when changes to `rustc_codegen_ssa` occur

My employer is writing a rustc backend and it's my job to resolve conflicts with upstream so I'd like to know when `rustc_codegen_ssa` is being changed =)
2025-03-06 15:40:10 -05:00
Michael Goulet
5804b52a32
Rollup merge of #138061 - jieyouxu:target-reviewers, r=wesleywiser
triagebot: add a `compiler_leads` ad-hoc group

Intended for e.g. rolling reviewers for [adding new targets](https://forge.rust-lang.org/compiler/proposals-and-stabilization.html#targets).

rust-lang/rust-forge side doc update: https://github.com/rust-lang/rust-forge/pull/815

r? ghost (for testing)

cc ``@davidtwco`` or ``@wesleywiser``
2025-03-06 15:40:03 -05:00
waffle
5143638e51
Mention me (WaffleLapkin) when changes to rustc_codegen_ssa occur 2025-03-06 19:21:56 +01:00
许杰友 Jieyou Xu (Joe)
9c75ed2fa2 triagebot: add compiler_leads ad-hoc group
Intended for e.g. rolling reviewers for adding new targets.
2025-03-05 22:18:53 +08:00
许杰友 Jieyou Xu (Joe)
65da1ffe41
Rollup merge of #136581 - jieyouxu:makefile-be-gone, r=Kobzol
Retire the legacy `Makefile`-based `run-make` test infra

The final piece of [porting run-make tests to use Rust #121876](https://github.com/rust-lang/rust/issues/121876).
Closes #121876.
Closes #40713.
Closes #81791 (no longer using `wc`).
Closes #56475 (no longer a problem in current form of that test; we don't ignore the test on `aarch64-unknown-linux-gnu`).

### Summary

This PR removes the legacy `Makefile`-based `run-make` test infra which has served us well over the years. The legacy infra is no longer needed since we ported all of `Makefile`-based `run-make` tests to the new `rmake.rs` infra.

Additionally, this PR:

- Removes `tests/run-make/tools.mk` since no more `Makefile`-based tests remain.
- Updates `tests/run-make/README.md` and rustc-dev-guide docs to remove mention about `Makefile`-based `run-make` tests
- Update test suite requirements in rustc-dev-guide on Windows to no longer need MSYS2 (they should also now run successfully on native Windows MSVC).
- Update `triagebot.toml` to stop backlinking to #121876.

**Thanks to everyone who helped in this effort to modernize the `run-make` test infra and test suite!**

r? bootstrap
2025-03-05 21:46:32 +08:00
klensy
aa72de9330 fix triagebot.toml 2025-03-05 12:30:03 +03:00
Alona Enraght-Moony
f0de899001
triagebot.toml: Don't label test/rustdoc-json as A-rustdoc-search
This happened because `test/rustdoc-js` is a prefix of `test/rustdoc-json`, and triagebot works on prefixes.

Maybe this should be fixed in triagebot, but this works now.
2025-03-03 19:28:57 +00:00
Matthias Krüger
d031bb3375
Rollup merge of #137876 - Zalathar:triagebot-matches, r=jieyouxu
Adjust triagebot.toml entries for `rustc_mir_build/src/builder/`

I only just noticed that these paths were silently broken by the renaming of `build` to `builder` in #134365.

This is *possibly* OK to just self-approve, but I would prefer to get a second set of eyes on it just in case.
2025-03-02 22:44:27 +01:00
Zalathar
60798272d6 Adjust triagebot.toml entries for rustc_mir_build/src/builder/ 2025-03-02 14:27:53 +11:00
许杰友 Jieyou Xu (Joe)
95b030f671 triagebot: stop backlinking to the test porting tracking issue
No longer needed.
2025-03-02 05:56:56 +08:00
Deadbeef
340a24910f triagebot: only ping me for constck
Per the [Zulip thread](https://rust-lang.zulipchat.com/#narrow/channel/146212-t-compiler.2Fconst-eval/topic/rustbot.20pings).
2025-03-01 12:53:46 +08:00
Jubilee Young
f0ced81439 jubilee cleared out the review queue 2025-02-21 21:12:39 -08:00
Matthias Krüger
b3d5a770f6
Rollup merge of #137076 - aDotInTheVoid:pingme-pingme-pingme, r=jieyouxu
triagebot.toml: ping me on changes to `tests/rustdoc-json`
2025-02-15 20:15:03 +01:00
Alona Enraght-Moony
f065a5588e triagebot.toml: ping me on changes to tests/rustdoc-json 2025-02-15 13:07:44 +00:00
binarycat
cc74ed08d5 triagebot: automatically add more rustdoc related labels 2025-02-13 12:16:31 -06:00
Jacob Pratt
d16b067f8c
Rollup merge of #136947 - nnethercote:reinstate-nnethercote, r=nnethercote
Reinstate nnethercote in the review rotation.

I'm back from vacation.

r? ``@nnethercote``
2025-02-12 20:10:03 -05:00
Nicholas Nethercote
8ccc33f181 Reinstate nnethercote in the review rotation.
I'm back from vacation.
2025-02-13 08:42:36 +11:00
Jakub Beránek
2e2afff50c
Put kobzol back to review rotation 2025-02-12 09:51:14 +01:00
MarcoIeni
1dc575ca2b
assign marcoieni and jdno to infra-ci PRs 2025-02-10 16:28:57 +01:00
bors
a26e97be88 Auto merge of #136754 - Urgau:rollup-qlkhjqr, r=Urgau
Rollup of 5 pull requests

Successful merges:

 - #134679 (Windows: remove readonly files)
 - #136213 (Allow Rust to use a number of libc filesystem calls)
 - #136530 (Implement `x perf` directly in bootstrap)
 - #136601 (Detect (non-raw) borrows of null ZST pointers in CheckNull)
 - #136659 (Pick the max DWARF version when LTO'ing modules with different versions )

r? `@ghost`
`@rustbot` modify labels: rollup
2025-02-09 12:54:26 +00:00
Urgau
d024cef057
Rollup merge of #136530 - Kobzol:x-perf, r=onur-ozkan
Implement `x perf` directly in bootstrap

Discussed [here](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Turning.20.60x.20perf.60.20into.20a.20first.20class.20command).

Implementing the command directly in bootstrap let's us correctly build the compiler toolchain based on input arguments (such as include rustdoc in the toolchain [only] when needed), and it also makes the CLI interface nicer.

r? ``@onur-ozkan``
2025-02-09 00:37:27 +01:00
yukang
597143b7b6 Have a break from review rotation 2025-02-08 09:53:58 +08:00
Jonathan Dönszelmann
14fb5efb2b
ping me for attribute-related changes 2025-02-06 14:31:41 +01:00
Jakub Beránek
c73ed895c7 Remove the rustc-perf-wrapper tool 2025-02-05 15:33:40 +01:00
许杰友 Jieyou Xu (Joe)
780cd71d2f triagebot: remove myself from vacation 2025-01-31 14:46:13 +08:00
Stuart Cook
068f32235a
Rollup merge of #136252 - spastorino:remove-spastorino-on-vacations, r=jieyouxu
spastorino back from vacations
2025-01-30 14:25:06 +11:00
Santiago Pastorino
2f276b36e2
spastorino back from vacations 2025-01-29 13:27:41 -03:00
许杰友 Jieyou Xu (Joe)
504d574bc1 triagebot: set myself on vacation 2025-01-27 02:28:35 +08:00
Jakub Beránek
51af4d6d22
Add Kobzol on vacation 2025-01-21 10:23:14 +01:00
onur-ozkan
375165259c auto label A-bootstrap-stamp
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12 08:43:34 +03:00
Matthias Krüger
b87a00488f
Rollup merge of #135194 - jieyouxu:update-tidy-label, r=onur-ozkan
triagebot: mark tidy changes with a more specific `A-tidy` label

r? `@onur-ozkan`
2025-01-08 18:21:00 +01:00
Jacob Pratt
a00bd69652
Rollup merge of #135032 - jieyouxu:relnotes-interest-group, r=cuviper
triagebot: register `relnotes-interest-group` ping group

Part of #133334.
https://github.com/rust-lang/team/pull/1613 merged.
cc T-release discussions in https://rust-lang.zulipchat.com/#narrow/channel/241545-t-release/topic/Please.20CC.20lang

r? release
2025-01-08 00:52:47 -05:00
许杰友 Jieyou Xu (Joe)
7b801a8454 triagebot: adjust some test suite tool autolabels 2025-01-07 20:24:56 +08:00
Celina G. Val
5172364b67
Update triagebot.toml: celinval vacation is over
I'm also removing myself from the MIR syntax changes notifications.
2025-01-06 10:50:58 -08:00
Matthias Krüger
69e7b12b6b
Rollup merge of #135132 - BoxyUwU:rdg_ping_group, r=jieyouxu
dev guide ping group and set adhoc reviewers to compiler

r? ``@jieyouxu`` ``@Kobzol``

I added you both to the `cc` list since you're both also on the list of owners for `src/doc/rustc-dev-guide`
2025-01-06 08:09:05 +01:00
Boxy
2cc114c6da rustc-dev-guide changes ping group 2025-01-05 18:40:08 +00:00
许杰友 Jieyou Xu (Joe)
5871867808 triagebot: label src/doc/rustc-dev-guide changes with A-rustc-dev-guide 2025-01-06 01:27:47 +08:00
许杰友 Jieyou Xu (Joe)
3af8dc4744 triagebot: register relnotes-interest-group ping group 2025-01-02 23:42:45 +08:00
许杰友 Jieyou Xu (Joe)
44d2740a8d Ping me for rustc-dev-guide changes on r-l/r 2025-01-02 15:55:04 +08:00
Jakub Beránek
1820e612d3 Modify rustc-dev-guide triagebot ping list 2025-01-01 17:06:27 +01:00
Matthias Krüger
6385e65d16
Rollup merge of #134828 - clubby789:ununreview, r=lqd
Add clubby789 back to bootstrap review rotation
2024-12-27 19:47:12 +01:00
clubby789
df189f6b36 Add clubby789 to bootstrap review rotation 2024-12-27 18:23:49 +00:00
Santiago Pastorino
6039eab641
Add spastorino to users_on_vacation 2024-12-27 14:43:24 -03:00
Jubilee Young
98cc5a77bd Belay new reviews for workingjubilee
My queue is at-capacity, effectively.
2024-12-23 11:22:43 -08:00
Nicholas Nethercote
007586966c Add nnethercote to the triagebot.toml vacation list. 2024-12-19 07:41:00 +11:00