internal: Pin commit of rust-lang/rust for rustc-test metrics

This commit is contained in:
Lukas Wirth 2024-02-23 17:24:29 +01:00
parent cbc579e51f
commit c6a6e63a45
2 changed files with 6 additions and 1 deletions

View file

@ -276,6 +276,7 @@ impl flags::RustcTests {
pub fn run(self) -> Result<()> { pub fn run(self) -> Result<()> {
let mut tester = Tester::new()?; let mut tester = Tester::new()?;
let walk_dir = WalkDir::new(self.rustc_repo.join("tests/ui")); let walk_dir = WalkDir::new(self.rustc_repo.join("tests/ui"));
eprintln!("Running tests for tests/ui");
for i in walk_dir { for i in walk_dir {
let i = i?; let i = i?;
let p = i.into_path(); let p = i.into_path();

View file

@ -86,7 +86,11 @@ impl Metrics {
fn measure_rustc_tests(&mut self, sh: &Shell) -> anyhow::Result<()> { fn measure_rustc_tests(&mut self, sh: &Shell) -> anyhow::Result<()> {
eprintln!("\nMeasuring rustc tests"); 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()?; let output = cmd!(sh, "./target/release/rust-analyzer rustc-tests ./rust").read()?;
for (metric, value, unit) in parse_metrics(&output) { for (metric, value, unit) in parse_metrics(&output) {