Skip to content

Comments

Compiler triage agenda: retrieve weekly perf logs#2299

Open
apiraino wants to merge 1 commit intorust-lang:masterfrom
apiraino:retrieve-compiler-perf-triage-logs
Open

Compiler triage agenda: retrieve weekly perf logs#2299
apiraino wants to merge 1 commit intorust-lang:masterfrom
apiraino:retrieve-compiler-perf-triage-logs

Conversation

@apiraino
Copy link
Contributor

This automates a little piece of building the weekly compiler agenda for triage meetings. Will attempt to retrieve the weekly compiler perf logs looking around in the rust-lang/rustc-perf git repository

r? @Kobzol

thanks!


pub async fn get_compiler_perf_triage_logs(date: NaiveDate) -> anyhow::Result<String> {
// Perf triage logs are usually merged a few days before building the T-compiler triage meeting
let try_days = [date.day() - 3, date.day() - 2, date.day() - 1, date.day()];
Copy link
Member

Choose a reason for hiding this comment

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

This approach won't really work when you have the agenda on the first of March, and the perf. logs were generated on the 29th of February 😆 Either it should be using proper datetime subtracting, or (and I think that would be better in general), I'd use [this](#t-compiler/performance > Automating pulling triage logs from r-l/rustc-perf @ 💬) endpoint to enumerate all files from the triage/year directory and take the newest one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right, I have should have thought about that. Ok, I will use the other API.

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