Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new block to ignore rules #82

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading