Skip to content

Commit c18111e

Browse files
authored
Merge pull request #291 from posborne/fix/ci-issues
Fix CI Issues
2 parents f888169 + a06573f commit c18111e

File tree

6 files changed

+31
-34
lines changed

6 files changed

+31
-34
lines changed

.github/workflows/benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
matrix:
3131
# for now, limit this a bit
32-
revision: ["main", "v25.0.0"]
32+
revision: ["main", "v38.0.3"]
3333
env:
3434
REVISION: ${{ matrix.revision }}
3535
steps:
@@ -76,7 +76,7 @@ jobs:
7676
run: |
7777
cargo run benchmark \
7878
--engine=artifacts/wasmtime-main/libengine.so \
79-
--engine=artifacts/wasmtime-v25.0.0/libengine.so \
79+
--engine=artifacts/wasmtime-v38.0.3/libengine.so \
8080
--processes=4 \
8181
--iterations-per-process=1 \
8282
-- "${PARTITION_SUITE}"

.github/workflows/sightglass.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ env:
1111
CARGO_TERM_COLOR: always
1212
RUST_LOG: info
1313

14-
# The Wasmtime commit that we build the bench API from for testing. Bumping
15-
# this will automatically cause us to update our CI cache on the next run.
16-
WASMTIME_COMMIT: "a2e71dafac4d2e42ed6edbc77081d39a40f4c3ff"
14+
REVISION: "v38.0.3"
1715

1816
jobs:
1917
format:
@@ -33,23 +31,27 @@ jobs:
3331
os: [ubuntu-latest, macos-latest, windows-latest]
3432
steps:
3533
- uses: actions/checkout@v4
36-
- run: rustup update nightly
34+
- run: rustup update
3735
- name: Download Cached Wasmtime engine
3836
uses: actions/cache@v4
3937
id: wasmtime-cache
4038
with:
4139
path: engines/wasmtime/*
42-
key: wasmtime-${{ runner.os }}-${{ env.WASMTIME_COMMIT }}
40+
key: wasmtime-${{ runner.os }}-${{ env.REVISION }}
4341

4442
- name: Build Wasmtime engine
4543
if: steps.wasmtime-cache.outputs.cache-hit != 'true'
4644
working-directory: ./engines/wasmtime
45+
env:
46+
REVISION: ${{ env.REVISION }}
4747
run: |
4848
rustc build.rs
4949
./build
5050
5151
- name: Build all
52-
run: cargo +nightly build --verbose --all
52+
run: cargo build --verbose --all
5353

5454
- name: Test all
55-
run: cargo +nightly test --verbose --all
55+
run: cargo test --verbose --all
56+
env:
57+
RUST_BACKTRACE: 1

Cargo.lock

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

benchmarks/libsodium/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ RUN wget https://ziglang.org/download/0.12.0/zig-linux-x86_64-0.12.0.tar.xz
99
RUN tar --extract --verbose --file=zig-linux-x86_64-0.12.0.tar.xz
1010
ENV PATH="${PATH}:/zig-linux-x86_64-0.12.0"
1111
RUN echo "zig version = $(zig version)"
12-
RUN wget https://github.com/jedisct1/libsodium/archive/stable.zip
13-
RUN unzip stable.zip
14-
RUN mv /libsodium-stable /libsodium
12+
RUN wget https://github.com/jedisct1/libsodium/releases/download/1.0.20-RELEASE/libsodium-1.0.20.tar.gz
13+
RUN tar -xzf libsodium-1.0.20.tar.gz
14+
RUN mv /libsodium-1.0.20 /libsodium
1515

1616
# Build the benchmarks. Note how we patch the self-timing code with calls to the
1717
# Sightglass `bench_start()` and `bench_end()` functions. Also note that each

crates/cli/src/benchmark.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,10 @@ impl BenchmarkCommand {
398398

399399
anyhow::ensure!(
400400
output.status.success(),
401-
"benchmark subprocess did not exit successfully"
401+
"benchmark subprocess did not exit successfully: {}\nstderr: {}\nstdout: {}",
402+
output.status,
403+
String::from_utf8_lossy(&output.stderr),
404+
String::from_utf8_lossy(&output.stdout)
402405
);
403406

404407
eprintln!(".");

crates/recorder/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2021"
99
anyhow = "1.0"
1010
libloading = "0.7"
1111
log = "0.4"
12-
precision = "0.1.15"
12+
precision = { git = "https://github.com/posborne/rust-precision.git", branch = "target-stable-asm" }
1313
serde = { version = "1.0.118", features = ["derive"] }
1414
sightglass-build = { path = "../build" }
1515
sightglass-data = { path = "../data" }

0 commit comments

Comments
 (0)