about summary refs log tree commit diff
path: root/src/tools/build_helper
AgeCommit message (Collapse)AuthorLines
2023-11-06rename github_repository to git_repositoryPietro Albini-3/+3
2023-10-24allow configuring the parent GitHub repositoryPietro Albini-11/+30
The git integration in build_helper hardcoded `rust-lang/rust` as the parent GitHub repository, and `master` as the branch name. This works great for `rust-lang/rust`, but causes problems in downstream forks like Ferrocene whenever those functions are invoked (like `./x fmt`). In `src/stage0.json` there was already a configuration key for the name of the nightly branch, but it wasn't used by build_helper. This commit adds the `github_repository` key to the file, and requires both values to be passed to build_helper whenever a git function is called. This will allow downstream forks to tweak the values.
2023-10-02Rollup merge of #114453 - Kobzol:ci-group-stdout, r=onur-ozkanTyler Mandry-3/+3
Print GHA log groups to stdout instead of stderr In all other places (e.g. `bootstrap.py`, `opt-dist`), we use stdout instead of stderr. I think that using stderr might be causing some discrepancies in the log, where sometimes the contents of a group "leak" outside the group. Let's see what happens if we use stdout instead. It's possible that it will be worse, since we print most stuff to stderr (?). r? `@ghost`
2023-08-31bootstrap: use git merge-base for LLVM CI download logicRalf Jung-18/+20
2023-08-04Print GHA log groups to stdout instead of stderrJakub Beránek-3/+3
In all other places (e.g. `bootstrap.py`, `opt-dist`), we use stdout instead of stderr. I think that using stderr might be causing some discrepancies in the log, where sometimes the contents of a group "leak" outside the group. Let's see what happens if we use stdout instead. It's possible that it will be worse, since we print most stuff to stderr (?).
2023-08-01Revert "Rollup merge of #113588 - RalfJung:llvm-merge-base, r=albertlarsan68"Rémy Rakic-20/+18
This reverts commit 849f4f8845ad3104596244874d9e8a087ca2e15b, reversing changes made to 02426434e2ff0194e41dcd8420e9c87346149985.
2023-08-01Rollup merge of #113588 - RalfJung:llvm-merge-base, r=albertlarsan68Matthias Krüger-18/+20
bootstrap: use git merge-base for LLVM CI download logic Fixes https://github.com/rust-lang/rust/issues/101907 I tested this with a local branch that has extra merge commits due to Miri, and it worked fine there. But I am sure there are tons of other situations I did not think of... r? `@jyn514`
2023-07-31apply nitRalf Jung-1/+1
Co-authored-by: Albert Larsan <albertlarsan@unbon.cafe>
2023-07-25Split nested GHA groups instead of panickingJakub Beránek-19/+43
2023-07-17bootstrap: use git merge-base for LLVM CI download logicRalf Jung-18/+20
2023-07-15Rollup merge of #113644 - jyn514:bootstrap-cleanups, r=albertlarsan68Matthias Krüger-2/+4
misc bootstrap cleanups - rename `detail_exit_macro` to `exit` - remove unnecessary `Builder::new_standalone` function - support `x suggest` with build-metrics
2023-07-14Add `track_caller` to builder.msgjyn-0/+1
this makes the panics on nested GHA groups more useful
2023-07-14Add even more GHA log groupsjyn-0/+13
This also adds a dynamic check that we don't emit nested groups, since GHA currently doesn't support them.
2023-07-13Rename `detail_exit_macro` to `exit`jyn-2/+4
`detail` and `macro` weren't adding any info.
2023-07-12Re-format let-else per rustfmt updateMark Rousskov-2/+6
2023-07-09Port PGO/LTO/BOLT optimized build pipeline to RustJakub Beránek-0/+95
2023-06-23Make `try_run` return a `Result<(), ()>` instead of a booleanGuillaume Gomez-8/+12
2023-06-15cleanup more azure leftoversklensy-5/+1
2023-06-04Don't double-print status messages in GHAjyn-0/+2
Before: ``` Building stage0 tool jsondocck (x86_64-unknown-linux-gnu) Building stage0 tool jsondocck (x86_64-unknown-linux-gnu) Downloading crates ... ``` After: ``` Building stage0 tool jsondocck (x86_64-unknown-linux-gnu) Downloading crates ... ```
2023-05-30create `build_helper/src/util` modozkanonur-0/+42
Signed-off-by: ozkanonur <work@onurozkan.dev>
2023-04-22Group entire build steps in the gha logsOli Scherer-0/+24
2023-02-10add only modified for compiletestyukang-7/+65
2023-01-06Handle non-existant upstream master branches in `x fmt`Nilstrieb-2/+47
2023-01-03Add `build_helper` crate to share code between tidy and bootstrapNilstrieb-0/+80
2022-12-31Revert "Auto merge of #105058 - ↵Joshua Nelson-80/+0
Nilstrieb:no-merge-commits-for-you-only-bors-is-allowed-to-do-that, r=jyn514" This reverts commit 4839886f0abe208ab8f2bb73a3076a59fe2ab60c, reversing changes made to ce85c98575e3016cf2007d90a85be321e592aa96.
2022-12-30Add `build_helper` crate to share code between tidy and bootstrapNilstrieb-0/+80