summary refs log tree commit diff
path: root/src/ci
AgeCommit message (Collapse)AuthorLines
2024-04-09Update ninja on WindowsNilstrieb-1/+1
Errors started showing up, and I read somewhere that this might be because of old ninja versions. This ninja version is indeed *ancient*. ``` multiple outputs aren't (yet?) supported by depslog; bring this up on the mailing list if it affects you ```
2024-03-17Switch channel to stableMark Rousskov-1/+1
2024-02-14Require that SELECT_XCODE is set.Eric Huss-3/+1
Allowing the Xcode version to "float" based on whatever default GitHub selects creates an unreliable environment. When GitHub changes the default, we can have multiple jobs in the same run using different versions as it rolls out across machines. It can also cause oscillation between runs as different machines are used. It also causes unpredictable timing when the updates happen. This change helps ensure that the version that is used is pinned. The downside is that it requires manually bumping the version, and the risk that if we take too long, older Xcodes will be removed and that will break the build. (cherry picked from commit 4ce1f1cffc7c63928cac447afe8010e6daaa42d6)
2024-02-14Downgrade Xcode from the default (15.0) to 14.3.1.Eric Huss-3/+4
This seems to fix two sporadic errors that have been appearing in CI. One is an issue with cmake being unable to verify that cmake is able to build a simple test program. The other is a `invalid r_symbolnum` linking error when trying to build one of cranelift's tests. This is intended as a temporary fix until we can figure out how to resolve those issues. (cherry picked from commit 4fd3cf96a1db7771ef4f332b9eb1ad17fa0fd091)
2024-02-13CI: Use ninja on apple buildersEric Huss-4/+5
(cherry picked from commit 2aebe6c302088dcd75ae18f40b40f6860c505450)
2024-02-03Bump channel to betaMark Rousskov-1/+1
2024-01-31Auto merge of #120358 - tmandry:bump-fuchsia-8c-tests, r=Mark-Simulacrumbors-5/+11
Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught https://github.com/rust-lang/rust-clippy/issues/11952 and #119593. See prior discussion on #119400 about building on 8 cores instead of 16. This PR combines changes from that and #119399, plus clean up. r? `@Mark-Simulacrum`
2024-01-28Print image input file and Docker versionJakub Beránek-0/+5
2024-01-26Bump Fuchsia (includes building tests)Tyler Mandry-1/+2
This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder.
2024-01-26Skip building cranelift for FuchsiaTyler Mandry-3/+8
This refactors run.sh to never override an explicit $CODEGEN_BACKENDS if set in the build.
2024-01-26Build Fuchsia on 8 cores instead of 16Tyler Mandry-1/+1
2024-01-22Cache CI Docker images in ghcr registryJakub Beránek-57/+54
2024-01-10Add debug info for macOS CI actionsEric Huss-0/+16
2024-01-07Auto merge of #119556 - onur-ozkan:optimized-compiler-builtins, r=onur-ozkanbors-0/+12
Reland optimized-compiler-builtins config Copy of #102579 PR. From #102579: > No concerns on my side. Currently, Jyn isn't actively working on the project. I will close this PR; open another one to cherry-pick the commits, resolve conflicts, and then r+ it. > Fixes https://github.com/rust-lang/rust/issues/102560. Fixes https://github.com/rust-lang/rust/issues/101172. Helps with https://github.com/rust-lang/rust/issues/105065 (although there's some weirdness there - it's still broken when optimized-compiler-builtins is set to true). Fixes https://github.com/rust-lang/rust/issues/102560. Fixes https://github.com/rust-lang/rust/issues/101172. Helps with https://github.com/rust-lang/rust/issues/105065 r? ghost
2024-01-07add a new `optimized_compiler_builtins` optionjyn-0/+12
in particular, this makes the `c` feature for compiler-builtins an explicit opt-in, rather than silently detected by whether `llvm-project` is checked out on disk. exposing this is necessary because the `cc` crate doesn't support cross-compiling to MSVC, and we want people to be able to run `x check --target foo` regardless of whether they have a c toolchain available. this also uses the new option in CI, where we *do* want to optimize compiler_builtins. the new option is off by default for the `dev` channel and on otherwise.
2024-01-06Run Miri and mir-opt tests without a target linkerBen Kimock-2/+0
2024-01-03Auto merge of #119549 - fmease:rollup-jxvbfes, r=fmeasebors-1/+6
Rollup of 21 pull requests Successful merges: - #119086 (Query panic!() to useful diagnostic) - #119239 (Remove unnecessary arm in `check_expr_yield`) - #119298 (suppress change-tracker warnings in CI containers) - #119319 (Document that File does not buffer reads/writes) - #119434 (rc: Take *const T in is_dangling) - #119444 (Rename `TyCtxt::is_closure` to `TyCtxt::is_closure_or_coroutine`) - #119474 (Update tracking issue of naked_functions) - #119476 (Pretty-print always-const trait predicates correctly) - #119477 (rustdoc ui: adjust tooltip z-index to be above sidebar) - #119479 (Remove two unused feature gates from rustc_query_impl) - #119487 (Minor improvements in comment on `freshen.rs`) - #119492 (Update books) - #119494 (Deny defaults for higher-ranked generic parameters) - #119498 (Update deadlinks of `strict_provenance` lints) - #119505 (Don't synthesize host effect params for trait associated functions marked const) - #119510 (Report I/O errors from rmeta encoding with emit_fatal) - #119512 (Mark myself as back from leave) - #119514 (coverage: Avoid a query stability hazard in `function_coverage_map`) - #119523 (llvm: Allow `noundef` in codegen tests) - #119534 (Update `thread_local` examples to use `local_key_cell_methods`) - #119544 (Fix: Properly set vendor in i686-win7-windows-msvc target) r? `@ghost` `@rustbot` modify labels: rollup
2024-01-03Rollup merge of #119298 - onur-ozkan:silence-change-tracker-warning-for-ci, ↵León Orell Valerian Liehr-1/+6
r=Mark-Simulacrum suppress change-tracker warnings in CI containers Fixes #119296
2024-01-03Temporarily disable M1 runners on GitHub ActionsJan David-22/+14
This commit temporarily reverts the addition of M1 runners on GitHub Actions to work around a billing issue related to their beta. It also removes the `aarch64-apple` job, which was only added after the addition of M1 runners. Since it has never been tested on the prior hardware, we are skipping the tests to reduce the risk of build failures.
2023-12-29Auto merge of #119373 - Kobzol:missing-tools-bootstrap, r=onur-ozkanbors-4/+0
Remove usage of deprecated `missing-tools` bootstrap flag This PR removes the usage of `--enable-missing-tools` in CI, as this config option is no longer used. It also removes `dist.missing-tools` config completely. Let me know which commits should I remove (if any). Fixes: https://github.com/rust-lang/rust/issues/79249 r? `@onur-ozkan`
2023-12-29Enable profiler in dist-powerpc-linuxQiu Chaofan-1/+1
2023-12-29suppress change-tracker warnings in containersonur-ozkan-1/+6
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-28Remove `--enable-missing-tools` usage in CIJakub Beránek-4/+0
2023-12-25Auto merge of #119283 - GuillaumeGomez:warning-block-pos, r=notriddlebors-1/+1
Fix display of warning block if it is first element of the top doc block It fixes the display of the warning block "i" element in case it is the first element: ![Screenshot from 2023-12-23 11-15-48](https://github.com/rust-lang/rust/assets/3050060/99b6796e-2a09-4053-813e-84288ce76c4c) It now looks like this: ![image](https://github.com/rust-lang/rust/assets/3050060/306b4cf1-3a7d-4681-b0cf-3e721186bfe8) The update for the `browser-ui-test` framework is because it didn't detect correctly pseudo elements if they ended with a digit or a dash. r? `@notriddle`
2023-12-24Update browser-ui-test version to 0.16.11Guillaume Gomez-1/+1
2023-12-24Rollup merge of #119165 - onur-ozkan:update-container-entrypoint, r=KobzolMatthias Krüger-4/+21
improve container runner script First commit fixes #118930 Second commit is mostly for development purposes. In read-only mode submodules cannot be initialized due to access limitations (see the log below), which means that tools cannot be built. ```sh Updating submodule src/tools/cargo error: could not lock config file .git/config: Read-only file system error: could not lock config file .git/config: Read-only file system fatal: Failed to register url for submodule path 'src/tools/cargo' error: could not lock config file .git/config: Read-only file system error: could not lock config file .git/config: Read-only file system fatal: Failed to register url for submodule path 'src/tools/cargo' Build completed unsuccessfully in 0:00:00 ```
2023-12-24allow devs to turn-off read-only modeonur-ozkan-1/+9
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-21run fuchsia tests only on nightlyPietro Albini-0/+5
2023-12-20if source is git, make /checkout dir safe for gitonur-ozkan-3/+12
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-18ci: docker: dist-various-1: Include RISC-V C compilersAlistair Francis-8/+30
The compiler-builtins for RISC-V are missing some key functions, such as __bswapsi2 [1]. We can't just pull in the LLVM compiler-rt builtins as the rust-lang/rust distribution container doesn't have a C compiler [2]. This patch adds RISC-V C compilers to the CI Dockerfile as the first step towards enabling LLVM compiler-rt builtins for RISC-V Rust. 1: https://github.com/rust-lang/compiler-builtins/issues/350 2: https://github.com/rust-lang/compiler-builtins/commit/e4f46b91ca843297fc065e20f1591e4971ae608c Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2023-12-16test `x clippy --stage 0` in ciJoshua Nelson-0/+6
2023-12-12Rollup merge of #118445 - ferrocene:jp-support-reuse-in-submodules, ↵Matthias Krüger-1/+1
r=Mark-Simulacrum Let `reuse` look inside git submodules Changes `collect-license-metadata` and `generate-copyright` so they can now look at the git submodules. Unfortunately `reuse` chokes on the LLVM submodule - it finds the word "Copyright" or the unicode copyright symbol in all kinds of places, including UTF-8 test cases. The `reuse` tool expressly won't let you ignore folders, so we let it scan everything and then strip out the LLVM sub-folder in post. Instead, we add in a hand-curated list of copyright information gleaned by reading the LLVM codebase carefully, which is stored in `.reuse/dep5` in Debian format where `reuse` can find and use it. The `.reuse/dep5` continues to track copyright info for files in the tree that do not have SPDX metadata in them (i.e. all of them)
2023-12-07Build Fuchsia in CITyler Mandry-10/+140
2023-12-07Auto merge of #118463 - cuviper:restore-cg_gcc-ci, r=cuviper,GuillaumeGomezbors-7/+16
Re-enable `rustc_codegen_gcc` tests in CI When #117947 dropped llvm-15 from CI, we neglected to copy #117313's changes to enable `rustc_codegen_gcc` testing to the new base llvm-16. This is now restored, as well as copying the setup to llvm-17 as well so we hopefully won't miss it next time. In addition, due to case mismatch in `$extra_env` updates in `docker/run.sh`, I think it wasn't actually getting enabled before, but this should now be fixed. I also avoided the linker hack for `libgccjit.so` that was present before, because that's not needed if the version matches the base `gcc` used for linking. r? GuillaumeGomez
2023-12-05Add riscv32 imafc bare metal targetScott Mabin-0/+1
- riscv32imac-unknown-none-elf - Add platform support docs for rv32
2023-11-30Fix cg_gcc CI runGuillaume Gomez-7/+8
2023-11-29Re-enable `rustc_codegen_gcc` tests in CIJosh Stone-3/+11
2023-11-27Auto merge of #117947 - Dirbaio:drop-llvm-15, r=cuviperbors-67/+3
Update the minimum external LLVM to 16. With this change, we'll have stable support for LLVM 16 and 17. For reference, the previous increase to LLVM 15 was #114148 [Relevant zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/riscv.20forced-atomics)
2023-11-27Update reuse command to include submodules.Jonathan Pallant (Ferrous Systems)-1/+1
2023-11-22Rollup merge of #118100 - ecnelises:ppc64_profiler, r=KobzolMichael Goulet-1/+1
Enable profiler in dist-powerpc64-linux
2023-11-21Update the minimum external LLVM to 16.Dario Nieuwenhuis-67/+3
2023-11-21Rollup merge of #118091 - psumbera:solaris-target, r=compiler-errorsNilstrieb-6/+0
Remove now deprecated target x86_64-sun-solaris.
2023-11-21Rollup merge of #118029 - saethlin:allocid-gc, r=RalfJungNilstrieb-1/+10
Expand Miri's BorTag GC to a Provenance GC As suggested in https://github.com/rust-lang/miri/issues/3080#issuecomment-1732505573 We previously solved memory growth issues associated with the Stacked Borrows and Tree Borrows runtimes with a GC. But of course we also have state accumulation associated with whole allocations elsewhere in the interpreter, and this PR starts tackling those. To do this, we expand the visitor for the GC so that it can visit a BorTag or an AllocId. Instead of collecting all live AllocIds into a single HashSet, we just collect from the Machine itself then go through an accessor `InterpCx::is_alloc_live` which checks a number of allocation data structures in the core interpreter. This avoids the overhead of all the inserts that collecting their keys would require. r? ``@RalfJung``
2023-11-21Enable profiler in dist-powerpc64-linuxQiu Chaofan-1/+1
2023-11-20Test with -Zmiri-provenance-gc=1 on LinuxBen Kimock-1/+10
2023-11-20Remove now deprecated target x86_64-sun-solaris.Petr Sumbera-6/+0
2023-11-18Auto merge of #117813 - onur-ozkan:simplify-download-ci-llvm-option, ↵bors-2/+2
r=Mark-Simulacrum deprecate `if-available` value of `download-ci-llvm` This PR deprecates the use of the `if-available` value for `download-ci-llvm` since `if-unchanged` serves the same purpose when no changes are detected. In cases where changes are present, it is assumed that compiling LLVM is acceptable (otherwise, why make changes there?). This was probably missing in the #110087 issue before. cc `@RalfJung`
2023-11-17Rollup merge of #117338 - workingjubilee:asmjs-meets-thanatos, r=b-naberMatthias Krüger-45/+1
Remove asmjs Fulfills [MCP 668](https://github.com/rust-lang/compiler-team/issues/668). `asmjs-unknown-emscripten` does not work as-specified, and lacks essential upstream support for generating asm.js, so it should not exist at all.
2023-11-11merge `if-available` and `if-unchanged` for `download-ci-llvm`onur-ozkan-2/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-11Auto merge of #117799 - erickt:fuchsia, r=tmandrybors-7/+41
Switch `fuchsia-test-runner.py` to `ffx product` The subcommand `ffx product-bundle` has been removed, and replaced with the subcommand `ffx product`. This changes `fuchsia-test-runner.py` to use it to download the SDK and product bundle for the latest release of Fuchsia.