Skip to content

Commit 1fe7bb9

Browse files
authored
Merge branch 'main' into disable-ccache
2 parents af20b24 + bbb8440 commit 1fe7bb9

File tree

5 files changed

+81
-58
lines changed

5 files changed

+81
-58
lines changed

.github/workflows/benchmarks.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818

1919
jobs:
2020
benchmarks:
21-
name: Run benchmarks (CodSpeed)
21+
name: Run performance benchmarks (CodSpeed)
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v6
@@ -37,11 +37,40 @@ jobs:
3737
shell: bash
3838
run: cargo codspeed build
3939

40-
- name: Run benchmarks
40+
- name: Run performance benchmarks
4141
uses: CodSpeedHQ/action@v4
4242
env:
4343
CODSPEED_LOG: debug
4444
with:
4545
mode: simulation
4646
run: cargo codspeed run > /dev/null
4747
token: ${{ secrets.CODSPEED_TOKEN }}
48+
49+
memory-benchmarks:
50+
name: Run memory benchmarks (CodSpeed)
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v6
54+
with:
55+
persist-credentials: false
56+
57+
- uses: dtolnay/rust-toolchain@stable
58+
59+
- uses: Swatinem/rust-cache@v2
60+
61+
- name: Install cargo-codspeed
62+
shell: bash
63+
run: cargo install cargo-codspeed --locked
64+
65+
- name: Build benchmarks for memory analysis
66+
shell: bash
67+
run: cargo codspeed build -m analysis
68+
69+
- name: Run memory benchmarks
70+
uses: CodSpeedHQ/action@v4
71+
env:
72+
CODSPEED_LOG: debug
73+
with:
74+
mode: memory
75+
run: cargo codspeed run > /dev/null
76+
token: ${{ secrets.CODSPEED_TOKEN }}

Cargo.lock

Lines changed: 47 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ flate2 = { version = "1.0", optional = true, default-features = false, features
4949
] }
5050
fs-err = "3"
5151
futures = "0.3"
52-
gzp = { version = "0.11.3", default-features = false, features = [
53-
"deflate_rust",
54-
] }
52+
gzp = { version = "2", default-features = false, features = ["deflate_rust"] }
5553
http = "1.0"
5654
http-body-util = { version = "0.1", optional = true }
5755
hyper = { version = "1.1", optional = true, features = ["server", "http1"] }

src/dist/pkg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ mod toolchain_imp {
180180
file_set,
181181
symlinks,
182182
} = self;
183-
let par: ParCompress<Gzip> = ParCompressBuilder::new()
183+
let par: ParCompress<'_, Gzip, W> = ParCompressBuilder::new()
184184
.compression_level(Compression::default())
185185
.from_writer(writer);
186186
let mut builder = tar::Builder::new(par);

src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ where
12371237
) -> SccacheResponse {
12381238
match compiler {
12391239
Err(e) => {
1240-
debug!("check_compiler: Unsupported compiler: {}", e.to_string());
1240+
debug!("check_compiler: Unsupported compiler: {e}");
12411241
self.stats.lock().await.requests_unsupported_compiler += 1;
12421242
return Message::WithoutBody(Response::Compile(
12431243
CompileResponse::UnsupportedCompiler(OsString::from(e.to_string())),

0 commit comments

Comments
 (0)