about summary refs log tree commit diff
path: root/src/ci
AgeCommit message (Collapse)AuthorLines
2021-08-20Add support for including non-backport commits.Mukund Lakshman-4/+24
2021-08-19CI: Verify commits in beta & stable are in upstream branches.Mukund Lakshman-0/+134
Closes #74721
2021-08-15Auto merge of #87792 - GuillaumeGomez:ci-fetch, r=pietroalbinibors-4/+6
Remove git fetch from CI https://github.com/rust-lang/rust/pull/86623 added a call to `git fetch`, which is problematic for releases. r? `@pietroalbini`
2021-08-13Update browser-ui-test package versionGuillaume Gomez-1/+1
2021-08-05Remove git fetch command callGuillaume Gomez-4/+6
2021-08-01Auto merge of #85782 - badboy:build-ios-sim-target, r=Mark-Simulacrumbors-1/+1
Build aarch64-apple-ios-sim as part of the full macOS build Part of the [MCP 428](https://github.com/rust-lang/compiler-team/issues/428) to promote this target to Tier 2. This adds the aarch64-apple-ios-sim target as a tier 2 target, currently cross-compiled from our x86_64 apple builders. The compiler team has approved the addition per the MCP noted above, and the infrastructure team has not raised concerns with this addition at this time (as the CI time impact is expected to be minimal; this is only building std).
2021-07-28add CI_ONLY_WHEN_CHANNEL and run x86_64-gnu-stable only on nightlyPietro Albini-25/+41
2021-07-14Rollup merge of #87130 - GuillaumeGomez:update-browser-ui-test, ↵Guillaume Gomez-1/+1
r=Mark-Simulacrum Update browser-ui-test package version It adds a check to prevent to have empty CSS values in `assert-css` command. r? `@Mark-Simulacrum`
2021-07-14Update browser-ui-test package versionGuillaume Gomez-1/+1
2021-07-10Use nproc instead of hardcoded 10 for build parallelismNikita Popov-7/+7
2021-07-10Update binutils versionNikita Popov-3/+5
This is needed to handle R_X86_64_REX_GOTPCRELX relocations.
2021-07-10Use clang 12.0.1 on dist-x86_64/i686-linuxNikita Popov-8/+4
The LLD + ThinLTO __morestack bug has been fixed in 12.0.1, so we can now update our clang version. This also means that we no longer need to build Python 2.
2021-07-08Build aarch64-apple-ios-sim as part of the full macOS buildJan-Erik Rediger-1/+1
2021-07-07Clean up rustdoc static filesGuillaume Gomez-2/+2
2021-07-06migrate cpu-usage-over-time.py to python 3Pietro Albini-3/+6
The only change here is a fix for `sys.platform` on Linux. Python 3.3 changed the API to return "linux" instead of "linux2"/"linux3", so this commit uses `.startswith("python")` to make the code work on Python 3 without breaking Python 2.
2021-07-03Only run error code explanation removal check if on CIGuillaume Gomez-4/+13
2021-07-02Add check to ensure error code explanations are not removed anymore even if ↵Guillaume Gomez-0/+22
not emitted
2021-07-01Update container browser-ui-test@0.4.1Stefan Schindler-1/+1
2021-06-29Auto merge of #86697 - jackh726:pgo, r=Mark-Simulacrumbors-3/+5
Add inflate to pgo
2021-06-28Add inflate to pgojackh726-3/+5
2021-06-28Install tidy on x86_64-gnu-aux target to run html checkGuillaume Gomez-1/+2
2021-06-28Add new tool to check HTML:Guillaume Gomez-1/+2
* Make html-checker run by default on rust compiler docs as well * Ensure html-checker is run on CI * Lazify tidy binary presence check
2021-06-26Auto merge of #86586 - Smittyvb:https-everywhere, r=petrochenkovbors-5/+6
Use HTTPS links where possible While looking at #86583, I wondered how many other (insecure) HTTP links were in `rustc`. This changes most other `http` links to `https`. While most of the links are in comments or documentation, there are a few other HTTP links that are used by CI that are changed to HTTPS. Notes: - I didn't change any to or in licences - Some links don't support HTTPS :( - Some `http` links were dead, in those cases I upgraded them to their new places (all of which used HTTPS)
2021-06-25Download the GCC sources insecurelySmitty-1/+2
This is needed as they are built on a long-outdated Debian version. :(
2021-06-25Fetch expat from github because the project switchedStefan Schindler-1/+2
2021-06-25Use https for sourceforge during CIStefan Schindler-6/+6
2021-06-23Use HTTPS links where possibleSmitty-6/+6
2021-06-23Bump expat to 2.4.1Mark Rousskov-1/+1
2021-06-23Rollup merge of #86542 - GuillaumeGomez:line-numbers-aligned-with-content, ↵Dylan DPC-1/+1
r=jyn514 Line numbers aligned with content We had the issue a few times in the past where the source code pages' content wasn't aligned with the line numbers but completely below. This test will prevent this change to go unnoticed. The first commit comes from https://github.com/rust-lang/rust/pull/86541 so it needs it to be merged first. r? `@jsha`
2021-06-22Update browser-ui-test versionGuillaume Gomez-1/+1
2021-06-22Rollup merge of #86472 - Mark-Simulacrum:fix-ci-beta, r=pietroalbiniYuki Okushi-6/+10
Fix CI to fetch master on beta channel This forward-ports a fix from the beta channel (landing in #86413, hopefully) to master so that we don't need to apply it on each round of backports. This bug also demonstrates that our channel-checking is a bit insufficient -- stable is checked, but beta has some of its own peculiarities currently and isn't checked. But this does not attempt to adjust for that; we likely can't afford to run both beta and stable channels by CI and the current state here seems OK for now. r? `@pietroalbini`
2021-06-20Fix CI to fetch master on beta channelMark Rousskov-6/+10
2021-06-19Update browser-ui-test versionGuillaume Gomez-1/+1
2021-06-13Update browser-ui-test versionGuillaume Gomez-1/+1
2021-06-07add the x86_64-gnu-stable job to test with stable channelPietro Albini-1/+17
During the 1.52 release process we had to deal with some commits that passed the test suite on the nightly branch but failed on the beta or stable branch. In that case it was due to some UI tests including the channel name in the output, but other changes might also be dependent on the channel. This commit adds a new CI job that runs the Linux x86_64 test suite with the stable branch, ensuring nightly changes also work as stable.
2021-05-31Auto merge of #85395 - 12101111:build-crt, r=petrochenkovbors-1/+5
Build crtbegin.o/crtend.o from source code Build crtbengin.o/crtend.o from source code instead of copying from gcc. The crtbegin and crtend implementation from llvm don't need `crtbeginS.o` for PIC. `crtbegin{,S,T}.o` is unified into one generic `crtbegin.o`. See the comments in https://reviews.llvm.org/D28791#1419436 and https://reviews.llvm.org/D28791#1420914 fix: https://github.com/rust-lang/rust/issues/85310 , fix: https://github.com/rust-lang/rust/issues/47551 , fix: https://github.com/rust-lang/rust/issues/84033
2021-05-31Build crtbengin.o/crtend.o from source code12101111-1/+5
2021-05-30Rollup merge of #85285 - GuillaumeGomez:eslint-check, r=jsha,Mark-SimulacrumGuillaume Gomez-1/+3
Add eslint checks to CI It also allowed me to fix some potential issues that went unnoticed. Having this process automated will hopefully prevent us to add more errors. :) cc `@Mark-Simulacrum` (for the add in the CI). r? `@jsha`
2021-05-30Add eslint checks in CIGuillaume Gomez-1/+3
2021-05-30Auto merge of #84586 - GuillaumeGomez:enforce-rustdoc-gui-test-suite-run, ↵bors-25/+63
r=Mark-Simulacrum Enforce rustdoc-gui test-suite run Part of https://github.com/rust-lang/rust/issues/84550
2021-05-26Update install of browser-ui-test package in CIGuillaume Gomez-5/+7
2021-05-26Also run check in case there are changes in the rustdoc-gui toolsGuillaume Gomez-2/+4
2021-05-26Enforce rustdoc-gui test-suite runGuillaume Gomez-25/+59
2021-05-26Auto merge of #85252 - kulikjak:fix-solaris-CI, r=Mark-Simulacrumbors-14/+10
Bring back `x86_64-sun-solaris` target to rustup Change #82216 removed now deprecated target `x86_64-sun-solaris` from CI, thus making it no longer possible to use `$ rustup target add x86_64-sun-solaris` to install given target (see #85098 for details). Since there should be a period of time between the deprecation and removal, this PR brings it back (while keeping the new one as well). Please, correct me if I am wrong; my assumption that these Docker scripts are being used to build artifacts later used by `rustup` might be incorrect. Closes #85098.
2021-05-15Auto merge of #85335 - GuillaumeGomez:rollup-0tvc14g, r=GuillaumeGomezbors-1/+1
Rollup of 4 pull requests Successful merges: - #84751 (str::is_char_boundary - slight optimization) - #85185 (Generate not more docs than necessary) - #85324 (Warn about unused `pub` fields in non-`pub` structs) - #85329 (fix version_str comment) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-05-15Rollup merge of #85185 - ↵Guillaume Gomez-1/+1
GuillaumeGomez:generate-not-more-docs-than-necessary, r=Mark-Simulacrum Generate not more docs than necessary This is something that `@Nemo157` was talking about: they wanted that when using `x.py doc std`, it only generated `std` (and the crates "before" it). r? `@Mark-Simulacrum`
2021-05-15Don't generate more docs than necessaryGuillaume Gomez-1/+1
2021-05-15Auto merge of #82208 - jyn514:rustfmt-subtree, r=Mark-Simulacrumbors-6/+14
Convert rustfmt from a submodule to a subtree r? `@calebcartwright` cc `@Manishearth` `@Mark-Simulacrum` The motivation is that submodule updates cause rustfmt to not be available on nightly a lot; most recently it was unavailable for over 10 days, causing the beta release to be delayed. Additionally this is much less work on the part of the rustfmt maintainers to keep the rustfmt compiling, since now people making breaking changes will be responsible for fixing them. I kept the rustfmt git history so it looks like there are thousands of commits. The important commits are https://github.com/rust-lang/rust/compare/851dee3af9404bf399c3c4ffefe5105edb3debad~..pull/82208/head. This adds about 10 MB of git history, which is not terribly much compared to the 702 MB that already exist. - Add `src/tools/rustfmt` to `x.py check` - Fix CRLF issues with rustfmt tests (see commit for details) - Use `rustc_private` instead of crates.io dependencies This was already switched upstream and would have landed in the next submodule bump anyway. This just updates Cargo.lock for rust-lang/rust. - Add `yansi-term` to the list of allowed dependencies. This is a false positive - rustc doesn't actually use it, only rustfmt, but because it's activated by the cargo feature of a dependency, tidy gets confused. It's fairly innocuous in any case, it's used for color printing. This would have happened in the next submodule bump. - Remove rustfmt from the list of toolstate tools. - Give a hard error if testing or building rustfmt fails. - Update log to 0.4.14 This avoids a warning about semicolons in macros; see the commit for details. - Don't add tools to the sysroot when they finish building. This is the only change that could be considered a regression - this avoids a "colliding StableCrateId" error due to a bug in resolve (https://github.com/rust-lang/rust/issues/56935). The regression is that this rebuilds dependencies more often than strictly necessary. See the commit for details. Fixes https://github.com/rust-lang/rust/issues/85226 (permanently). Closes https://github.com/rust-lang/rust/issues/82385. Helps with https://github.com/rust-lang/rust/issues/70651. Helps with https://github.com/rust-lang/rust/issues/80639.
2021-05-15Auto merge of #84997 - pietroalbini:ci-verify-channel, r=Mark-Simulacrumbors-8/+56
Error out if a PR is sent to the wrong channel It happened multiple times that a PR meant to go on beta ends up being opened (and occasionally merged) to master. This PR does two things: * Moves the definition of the channel in `src/ci/channel` so it's easier for tools to read it. I was not sure whether to move it to `src/channel` (like `src/version`): ended up with `src/ci` as it's currently only used for CI, but I'm open to moving it to `src`. We'll need to update the release process after this. * Adds a check on **non-bors** builds that errors out if the base branch is not the expected one for the currently defined channel. This will not cause problems for promotion PRs, as those PRs are meant to also update the channel name. r? `@Mark-Simulacrum`
2021-05-14ci(should-skip-this): only check commits when skip rule enabledCaleb Cartwright-7/+11