Skip to content

Commit 104ccd0

Browse files
Merge pull request #82 from Mark-Simulacrum/new-env-ignore
Add new block to ignore rules
2 parents 7fa3d1f + 6a726f2 commit 104ccd0

File tree

10 files changed

+652
-539
lines changed

10 files changed

+652
-539
lines changed

Cargo.lock

+643-524
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bin/offline/dl.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::offline;
2-
use crate::rla;
32
use crate::rla::ci::{self, CiPlatform};
43
use std::collections::HashSet;
54
use std::io::{self, Write};

src/bin/offline/extract.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
use crate::offline;
2-
use crate::rla;
32

43
use rla::index::IndexStorage;
54
use std::fs;
65
use std::io::{self, Write};
76
use std::path::Path;
87
use std::time::Duration;
98
use std::time::Instant;
10-
use walkdir::{self, WalkDir};
9+
use walkdir::WalkDir;
1110

1211
struct Line<'a> {
1312
_original: &'a [u8],

src/bin/offline/fs.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
use crate::rla;
21
use anyhow::Context;
3-
use brotli;
42
use percent_encoding::{AsciiSet, CONTROLS};
53
use std::fs;
64
use std::io::{Read, Write};

src/bin/offline/learn.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
use crate::offline;
2-
use crate::rla;
32

43
use rla::index::IndexStorage;
54
use std::path::PathBuf;
65
use std::time::Duration;
76
use std::time::Instant;
8-
use walkdir::{self, WalkDir};
7+
use walkdir::WalkDir;
98

109
pub fn learn(
1110
ci: &dyn rla::ci::CiPlatform,

src/bin/server/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use crate::rla;
2-
31
pub use self::service::RlaService;
42
pub use self::worker::Worker;
53

src/bin/server/service.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
use super::QueueItem;
22

3-
use crate::rla;
43
use anyhow::bail;
5-
use hyper::{self, Body, Method, StatusCode};
4+
use hyper::{Body, Method, StatusCode};
65
use hyper::{Request, Response};
7-
use serde_json;
86
use std::env;
97

108
#[derive(Clone)]

src/bin/server/worker.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use super::QueueItem;
22

3-
use crate::rla;
43
use crate::rla::ci::{self, BuildCommit, CiPlatform};
54
use anyhow::bail;
65
use rla::index::IndexStorage;

src/bin/util/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use crate::rla;
21
use anyhow::Context;
32
use std::process;
43

src/extract.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ static IGNORE_BLOCK: &[(&str, &str)] = &[
2323
// Skip all groups invoking git commands
2424
("[command]/usr/bin/git", "##[endgroup]"),
2525
// Skip clock drift checks
26-
("== clock drift check ==", "== end clock drift check =="),
26+
("#[group]Clock drift check", "##[endgroup]"),
2727
// Skip environment variable dumps, as these can contain e.g. a SHA which is different in every
2828
// build.
2929
("env:", "##[endgroup]"),
30+
// See src/ci/scripts/dump-environment.sh in rust-lang/rust
31+
(
32+
"environment variables:",
33+
"biggest files in the working dir:",
34+
),
3035
];
3136

3237
lazy_static! {

0 commit comments

Comments
 (0)