Skip to content

Add bootstrap step diff to CI job analysis #138930

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

Merged
merged 2 commits into from
Mar 26, 2025

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Mar 25, 2025

This PR adds another analysis to the job analysis report in GitHub summary. It compares (diffs) bootstrap steps executed by the parent run and by the current commit. This will help us figure out if the bootstrap invocation did something different than before, and also how did the duration of individual steps and bootstrap invocations change.

Can be tested on the #119899 PR like this:

$ curl https://ci-artifacts.rust-lang.org/rustc-builds/3d3394eb64ee2f99ad1a2b849b376220fd38263e/metrics-mingw-check.json > metrics.json
$ cargo run --manifest-path src/ci/citool/Cargo.toml postprocess-metrics metrics.json --job-name mingw-check --parent 961351c76c812e3aeb65bfb542742500a6436aed > out.md

r? @marcoie

@rustbot
Copy link
Collaborator

rustbot commented Mar 25, 2025

Failed to set assignee to marcoie: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Mar 25, 2025
@Kobzol
Copy link
Contributor Author

Kobzol commented Mar 25, 2025

r? @marcoieni

@Kobzol Kobzol force-pushed the analyze-bootstrap-diffs branch from 5855a56 to b32e90b Compare March 25, 2025 13:46
Copy link
Member

@marcoieni marcoieni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit. otherwise looks good. feel free to r=me 👍

@Kobzol Kobzol force-pushed the analyze-bootstrap-diffs branch from b32e90b to 813783e Compare March 25, 2025 15:14
@Kobzol
Copy link
Contributor Author

Kobzol commented Mar 25, 2025

@bors r=marcoieni

@bors
Copy link
Collaborator

bors commented Mar 25, 2025

📌 Commit 813783e has been approved by marcoieni

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 25, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 26, 2025
Rollup of 7 pull requests

Successful merges:

 - rust-lang#138483 (Target modifiers fix for bool flags without value)
 - rust-lang#138818 (Don't produce debug information for compiler-introduced-vars when desugaring assignments.)
 - rust-lang#138898 (Mostly parser: Eliminate code that's been dead / semi-dead since the removal of type ascription syntax)
 - rust-lang#138930 (Add bootstrap step diff to CI job analysis)
 - rust-lang#138954 (Ensure `define_opaque` attrs are accounted for in HIR hash)
 - rust-lang#138959 (Revert "Make MatchPairTree::place non-optional")
 - rust-lang#138967 (Fix typo in error message)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 2ae5d34 into rust-lang:master Mar 26, 2025
6 checks passed
@rustbot rustbot added this to the 1.87.0 milestone Mar 26, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Mar 26, 2025
Rollup merge of rust-lang#138930 - Kobzol:analyze-bootstrap-diffs, r=marcoieni

Add bootstrap step diff to CI job analysis

This PR adds another analysis to the job analysis report in GitHub summary. It compares (diffs) bootstrap steps executed by the parent run and by the current commit. This will help us figure out if the bootstrap invocation did something different than before, and also how did the duration of individual steps and bootstrap invocations change.

Can be tested on the rust-lang#119899 PR like this:
```bash
$ curl https://ci-artifacts.rust-lang.org/rustc-builds/3d3394eb64ee2f99ad1a2b849b376220fd38263e/metrics-mingw-check.json > metrics.json
$ cargo run --manifest-path src/ci/citool/Cargo.toml postprocess-metrics metrics.json --job-name mingw-check --parent 961351c > out.md
```

r? `@marcoie`
@Kobzol Kobzol deleted the analyze-bootstrap-diffs branch March 26, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants