Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
829c314
Check proj's parent when checking dyn compatibility
mu001999 Jan 27, 2026
e12acb9
Forbid manual `Unpin` impls for structurally pinned types
frank-king Nov 24, 2025
c7c3266
error on unsized AnonConsts
khyperia Feb 2, 2026
1c4940b
Remove an unneeded `HashStable` derive.
nnethercote Feb 2, 2026
3a5d7df
Add a useful comment on `rustc_codegen_ssa::NativeLib`.
nnethercote Feb 3, 2026
079913e
disable socket tests in Miri
RalfJung Feb 3, 2026
6b3d1e0
Update Cargo.lock
Kobzol Feb 3, 2026
cb9c43b
Show largest job duration changes in hours and minutes, rather than j…
Kobzol Feb 3, 2026
0418f9a
coverage: Add a test case for a previously-unknown span mismatch
Zalathar Feb 3, 2026
b668057
Port `rustc_mir` to attribute parser
jamie-osec Jan 30, 2026
4e4192a
Try to fix `rustdoc-gui/globals.goml` flakyness
GuillaumeGomez Feb 3, 2026
6b89f67
Rollup merge of #152034 - Kobzol:ci-analysis-time, r=marcoieni
JonathanBrouwer Feb 3, 2026
46f5839
Rollup merge of #152039 - Zalathar:context-mismatch, r=chenyukang
JonathanBrouwer Feb 3, 2026
d7e48e4
Rollup merge of #149263 - frank-king:feature/unpin-check, r=BoxyUwU
JonathanBrouwer Feb 3, 2026
1407149
Rollup merge of #151754 - mu001999-contrib:fix/151708, r=BoxyUwU
JonathanBrouwer Feb 3, 2026
b14916b
Rollup merge of #151848 - clubby789:rustc-mir-port, r=JonathanBrouwer
JonathanBrouwer Feb 3, 2026
5df3d24
Rollup merge of #151874 - khyperia:error-unsized-anonconst, r=BoxyUwU
JonathanBrouwer Feb 3, 2026
f77f1df
Rollup merge of #152019 - nnethercote:rm-unneeded-HashStable-derives,…
JonathanBrouwer Feb 3, 2026
2b14307
Rollup merge of #152029 - RalfJung:miri-socket-tests, r=Mark-Simulacrum
JonathanBrouwer Feb 3, 2026
a67facb
Rollup merge of #152050 - GuillaumeGomez:try-fixing-flakyness, r=Guil…
JonathanBrouwer Feb 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/ci/citool/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"

[[package]]
name = "askama"
version = "0.15.1"
version = "0.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb7125972258312e79827b60c9eb93938334100245081cf701a2dee981b17427"
checksum = "08e1676b346cadfec169374f949d7490fd80a24193d37d2afce0c047cf695e57"
dependencies = [
"askama_macros",
"itoa",
Expand All @@ -79,9 +79,9 @@ dependencies = [

[[package]]
name = "askama_derive"
version = "0.15.1"
version = "0.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ba5e7259a1580c61571e3116ebaaa01e3c001b2132b17c4cc5c70780ca3e994"
checksum = "7661ff56517787343f376f75db037426facd7c8d3049cef8911f1e75016f3a37"
dependencies = [
"askama_parser",
"basic-toml",
Expand All @@ -96,18 +96,18 @@ dependencies = [

[[package]]
name = "askama_macros"
version = "0.15.1"
version = "0.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "236ce20b77cb13506eaf5024899f4af6e12e8825f390bd943c4c37fd8f322e46"
checksum = "713ee4dbfd1eb719c2dab859465b01fa1d21cb566684614a713a6b7a99a4e47b"
dependencies = [
"askama_derive",
]

[[package]]
name = "askama_parser"
version = "0.15.1"
version = "0.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3c63392767bb2df6aa65a6e1e3b80fd89bb7af6d58359b924c0695620f1512e"
checksum = "1d62d674238a526418b30c0def480d5beadb9d8964e7f38d635b03bf639c704c"
dependencies = [
"rustc-hash",
"serde",
Expand Down
31 changes: 26 additions & 5 deletions src/ci/citool/src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ pub fn output_test_diffs(
report_test_diffs(aggregated_test_diffs, job_metrics, job_info_resolver);
}

/// Prints the ten largest differences in bootstrap durations.
pub fn output_largest_duration_changes(
/// Prints the ten largest differences in job durations.
pub fn output_largest_job_duration_changes(
job_metrics: &HashMap<JobName, JobMetrics>,
job_info_resolver: &mut JobInfoResolver,
) {
Expand Down Expand Up @@ -237,11 +237,11 @@ pub fn output_largest_duration_changes(
println!("# Job duration changes");
for (index, entry) in changes.into_iter().take(10).enumerate() {
println!(
"{}. {}: {:.1}s -> {:.1}s ({:+.1}%)",
"{}. {}: {} -> {} ({:+.1}%)",
index + 1,
format_job_link(job_info_resolver, job_metrics, entry.job),
entry.before.as_secs_f64(),
entry.after.as_secs_f64(),
format_duration(entry.before),
format_duration(entry.after),
entry.change
);
}
Expand All @@ -256,6 +256,27 @@ mostly for t-infra members, for simpler debugging of potential CI slow-downs."#
});
}

fn format_duration(duration: Duration) -> String {
let total_secs = duration.as_secs();
let hours = total_secs / 3600;
let minutes = (total_secs % 3600) / 60;
let seconds = total_secs % 60;

let mut res = String::new();

if hours > 0 {
res.push_str(&format!("{hours}h "));
}
if minutes > 0 {
res.push_str(&format!("{minutes}m "));
}
if hours == 0 && seconds > 0 {
res.push_str(&format!("{seconds}s"));
}

res.trim().to_string()
}

#[derive(Default)]
struct TestSuiteRecord {
passed: u64,
Expand Down
4 changes: 2 additions & 2 deletions src/ci/citool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use clap::Parser;
use jobs::JobDatabase;
use serde_yaml::Value;

use crate::analysis::{output_largest_duration_changes, output_test_diffs};
use crate::analysis::{output_largest_job_duration_changes, output_test_diffs};
use crate::cpu_usage::load_cpu_usage;
use crate::datadog::upload_datadog_metric;
use crate::github::JobInfoResolver;
Expand Down Expand Up @@ -205,7 +205,7 @@ And then open `test-dashboard/index.html` in your browser to see an overview of
);
});

output_largest_duration_changes(&metrics, &mut job_info_resolver);
output_largest_job_duration_changes(&metrics, &mut job_info_resolver);

Ok(())
}
Expand Down