Skip to content

optionally collect compiler metrics #2812

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 1 commit into from
May 14, 2025
Merged

Conversation

syphar
Copy link
Member

@syphar syphar commented May 4, 2025

just a draft as a base for discussion.

Generally we want to separate the build output between builds / releases so I'm just using the target directory and copy over the json files afterwards.

What's missing is some kind of ICE protection, where we would retry the build without metrics in case of ICEs, or just collect metrics on the first try.

Also I would like to add tests.

@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label May 4, 2025
@syphar syphar force-pushed the collect-metrics branch from f742ace to 1689abb Compare May 10, 2025 06:57
@rust-lang rust-lang deleted a comment May 10, 2025
@rust-lang rust-lang deleted a comment May 10, 2025
@rust-lang rust-lang deleted a comment May 10, 2025
@rust-lang rust-lang deleted a comment May 10, 2025
@rust-lang rust-lang deleted a comment May 10, 2025
@syphar syphar force-pushed the collect-metrics branch 3 times, most recently from 56c41dd to 0358ce2 Compare May 13, 2025 14:21
@syphar syphar requested a review from GuillaumeGomez May 13, 2025 14:30
@syphar syphar marked this pull request as ready for review May 13, 2025 14:30
@syphar syphar requested a review from a team as a code owner May 13, 2025 14:30
@GuillaumeGomez
Copy link
Member

Would be nice to have a test where the first build fails but the second succeeds to ensure that the metrics are not enabled the second time but not sure if it can be tested. If not, feel free to merge and thanks for the add!

@syphar syphar force-pushed the collect-metrics branch from 0358ce2 to 9a5da1e Compare May 14, 2025 07:12
@syphar syphar merged commit d8ea483 into rust-lang:master May 14, 2025
7 checks passed
@syphar syphar deleted the collect-metrics branch May 14, 2025 07:16
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels May 14, 2025
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants