Skip to content

Commit

Permalink
Auto merge of #16648 - Veykril:metrics-rustc, r=Veykril
Browse files Browse the repository at this point in the history
internal: Pin commit of rust-lang/rust for rustc-test metrics
  • Loading branch information
bors committed Feb 23, 2024
2 parents cbc579e + c6a6e63 commit 84c5481
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/rust-analyzer/src/cli/rustc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ impl flags::RustcTests {
pub fn run(self) -> Result<()> {
let mut tester = Tester::new()?;
let walk_dir = WalkDir::new(self.rustc_repo.join("tests/ui"));
eprintln!("Running tests for tests/ui");
for i in walk_dir {
let i = i?;
let p = i.into_path();
Expand Down
6 changes: 5 additions & 1 deletion xtask/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ impl Metrics {
fn measure_rustc_tests(&mut self, sh: &Shell) -> anyhow::Result<()> {
eprintln!("\nMeasuring rustc tests");

cmd!(sh, "git clone --depth=1 https://github.com/rust-lang/rust").run()?;
cmd!(
sh,
"git clone --depth=1 --branch 1.76.0 https://github.com/rust-lang/rust.git --single-branch"
)
.run()?;

let output = cmd!(sh, "./target/release/rust-analyzer rustc-tests ./rust").read()?;
for (metric, value, unit) in parse_metrics(&output) {
Expand Down

0 comments on commit 84c5481

Please sign in to comment.