Skip to content

Commit

Permalink
Merge pull request #82 from Mark-Simulacrum/new-env-ignore
Browse files Browse the repository at this point in the history
Add new block to ignore rules
  • Loading branch information
Mark-Simulacrum authored Mar 21, 2024
2 parents 7fa3d1f + 6a726f2 commit 104ccd0
Show file tree
Hide file tree
Showing 10 changed files with 652 additions and 539 deletions.
1,167 changes: 643 additions & 524 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/bin/offline/dl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::offline;
use crate::rla;
use crate::rla::ci::{self, CiPlatform};
use std::collections::HashSet;
use std::io::{self, Write};
Expand Down
3 changes: 1 addition & 2 deletions src/bin/offline/extract.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use crate::offline;
use crate::rla;

use rla::index::IndexStorage;
use std::fs;
use std::io::{self, Write};
use std::path::Path;
use std::time::Duration;
use std::time::Instant;
use walkdir::{self, WalkDir};
use walkdir::WalkDir;

struct Line<'a> {
_original: &'a [u8],
Expand Down
2 changes: 0 additions & 2 deletions src/bin/offline/fs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use crate::rla;
use anyhow::Context;
use brotli;
use percent_encoding::{AsciiSet, CONTROLS};
use std::fs;
use std::io::{Read, Write};
Expand Down
3 changes: 1 addition & 2 deletions src/bin/offline/learn.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use crate::offline;
use crate::rla;

use rla::index::IndexStorage;
use std::path::PathBuf;
use std::time::Duration;
use std::time::Instant;
use walkdir::{self, WalkDir};
use walkdir::WalkDir;

pub fn learn(
ci: &dyn rla::ci::CiPlatform,
Expand Down
2 changes: 0 additions & 2 deletions src/bin/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate::rla;

pub use self::service::RlaService;
pub use self::worker::Worker;

Expand Down
4 changes: 1 addition & 3 deletions src/bin/server/service.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use super::QueueItem;

use crate::rla;
use anyhow::bail;
use hyper::{self, Body, Method, StatusCode};
use hyper::{Body, Method, StatusCode};
use hyper::{Request, Response};
use serde_json;
use std::env;

#[derive(Clone)]
Expand Down
1 change: 0 additions & 1 deletion src/bin/server/worker.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::QueueItem;

use crate::rla;
use crate::rla::ci::{self, BuildCommit, CiPlatform};
use anyhow::bail;
use rla::index::IndexStorage;
Expand Down
1 change: 0 additions & 1 deletion src/bin/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::rla;
use anyhow::Context;
use std::process;

Expand Down
7 changes: 6 additions & 1 deletion src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ static IGNORE_BLOCK: &[(&str, &str)] = &[
// Skip all groups invoking git commands
("[command]/usr/bin/git", "##[endgroup]"),
// Skip clock drift checks
("== clock drift check ==", "== end clock drift check =="),
("#[group]Clock drift check", "##[endgroup]"),
// Skip environment variable dumps, as these can contain e.g. a SHA which is different in every
// build.
("env:", "##[endgroup]"),
// See src/ci/scripts/dump-environment.sh in rust-lang/rust
(
"environment variables:",
"biggest files in the working dir:",
),
];

lazy_static! {
Expand Down

0 comments on commit 104ccd0

Please sign in to comment.