Skip to content
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
20 changes: 17 additions & 3 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
#
# The `ignore` list holds advisories that no compatible dependency bump can
# clear because they are transitively pinned by burn 0.21 (the latest burn
# release — no upgrade path exists yet). Both are RustSec `unmaintained`
# warnings, not vulnerabilities. Re-check and drop these entries when burn is
# bumped past 0.21.
# release — no upgrade path exists yet). The first two are RustSec
# `unmaintained` warnings; the zip entries are vulnerabilities in APIs that no
# dependent in this tree calls (reasoning inline). Re-check and drop these
# entries when burn is bumped past 0.21.

[advisories]
ignore = [
Expand All @@ -15,4 +16,17 @@ ignore = [
# paste 1.0.15 (unmaintained) <- burn-ndarray 0.21.0 / macerator 0.3.3.
# Re-check when burn is bumped.
"RUSTSEC-2024-0436",
# zip 0.6.6 <- tch 0.22.0 / torch-sys 0.22.0 (build script) <- burn-tch 0.21.0,
# and zip 7.x <- candle-core 0.10.2 <- burn-candle 0.21.0. Both reach the
# tree only through burn's opt-in `tch` / `candle` backends; the fix
# (zip >= 9) is unreachable under burn 0.21. All three advisories are in the
# archive `extract()` APIs (ZipArchive::extract / ZipStreamReader::extract),
# which no dependent calls: candle-core reads .pth/.npz entries via `by_name`
# / `by_index` (pickle.rs, npy.rs), tch reads .npz entries via `by_index`
# (npy.rs), and torch-sys's build script copies entries by hand through
# `by_index` + `mangled_name` (no permission or symlink handling).
# Re-check when burn is bumped (#79).
"RUSTSEC-2026-0367", # extract() preserves SUID/SGID bits
"RUSTSEC-2026-0368", # extract() creates symlinks escaping the destination
"RUSTSEC-2026-0369", # extract() applies permissions through symlinks
]
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
name: fmt + clippy + test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.1.0
- uses: actions/checkout@v7.0.1
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2.9.2
- uses: Swatinem/rust-cache@v2.9.3
- name: cargo fmt --check
run: cargo fmt --all -- --check
- name: cargo clippy
Expand All @@ -47,11 +47,11 @@ jobs:
name: clippy (opt-in feature paths)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.1.0
- uses: actions/checkout@v7.0.1
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2.9.2
- uses: Swatinem/rust-cache@v2.9.3
- name: clippy (mnist)
run: cargo clippy -p loractl-core --all-targets --features mnist -- -D warnings
- name: clippy (gpt2-real)
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
name: cargo-deny (licenses/bans/sources)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.1.0
- uses: actions/checkout@v7.0.1
- uses: EmbarkStudios/cargo-deny-action@v2.1.1
with:
arguments: ""
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/docs-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@ jobs:
name: surf lint + check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.1.0
- uses: actions/checkout@v7.0.1
- name: surf lint (every anchor resolves)
uses: Connorrmcd6/surface@091b937ae34ac81a02386604fed977dd24f1f0cf # v0.8.0
uses: Connorrmcd6/surface@df2ba902d78a308c481be87a06ed2239b0beb352 # v0.9.0
with:
# `version` defaults to "latest" — without it the SHA-pinned action
# still installs a floating binary, defeating the pin.
version: v0.8.0
# Explicit on purpose. Since v0.9.0 the action's default is the
# release shipped with the pinned ref (it used to be "latest"), but
# naming the binary here keeps the pin visible and independent of
# that default.
version: v0.9.0
args: lint
- name: surf check (the gate — blocks on logic drift)
uses: Connorrmcd6/surface@091b937ae34ac81a02386604fed977dd24f1f0cf # v0.8.0
uses: Connorrmcd6/surface@df2ba902d78a308c481be87a06ed2239b0beb352 # v0.9.0
with:
version: v0.8.0
version: v0.9.0
args: check
23 changes: 14 additions & 9 deletions .github/workflows/gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ name: GPU
# ([self-hosted, gpu] + gpu,cuda / gpu,wgpu). It processes one job at a time,
# so these jobs never contend for the GPU within a run.
#
# Runner version: actions/checkout and actions/upload-artifact are on v7, which
# run on Node 24 and need an Actions runner >= 2.327.1 (a stale, auto-update-off
# runner fails at "Set up job"). Hosted CI cannot exercise this file, so a
# `gh workflow run gpu.yml` dispatch is the only check after bumping an action.
#
# gh workflow run gpu.yml # cuda smokes (default)
# gh workflow run gpu.yml -f suite=all # cuda + wgpu smokes
# gh workflow run gpu.yml -f int8_probe=true # + the #96 int8 proof
Expand Down Expand Up @@ -115,13 +120,13 @@ jobs:
runs-on: [self-hosted, gpu, cuda]
timeout-minutes: 60
steps:
- uses: actions/checkout@v4.4.0
- uses: actions/checkout@v7.0.1

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo
uses: Swatinem/rust-cache@v2.9.2
uses: Swatinem/rust-cache@v2.9.3
with:
# Persistent self-hosted runner: caching ~/.cargo/bin snapshots the
# host's rustup/cargo proxies and clobbers them on restore (the CAEF
Expand All @@ -146,13 +151,13 @@ jobs:
runs-on: [self-hosted, gpu, wgpu]
timeout-minutes: 60
steps:
- uses: actions/checkout@v4.4.0
- uses: actions/checkout@v7.0.1

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo
uses: Swatinem/rust-cache@v2.9.2
uses: Swatinem/rust-cache@v2.9.3
with:
# Persistent self-hosted runner — see the cuda job's cache-bin note.
cache-bin: "false"
Expand All @@ -173,13 +178,13 @@ jobs:
runs-on: [self-hosted, gpu, cuda]
timeout-minutes: 60
steps:
- uses: actions/checkout@v4.4.0
- uses: actions/checkout@v7.0.1

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo
uses: Swatinem/rust-cache@v2.9.2
uses: Swatinem/rust-cache@v2.9.3
with:
# Persistent self-hosted runner — see the cuda job's cache-bin note.
cache-bin: "false"
Expand All @@ -206,13 +211,13 @@ jobs:
runs-on: [self-hosted, gpu, cuda]
timeout-minutes: 120
steps:
- uses: actions/checkout@v4.4.0
- uses: actions/checkout@v7.0.1

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo
uses: Swatinem/rust-cache@v2.9.2
uses: Swatinem/rust-cache@v2.9.3
with:
# Persistent self-hosted runner — see the cuda job's cache-bin note.
cache-bin: "false"
Expand Down Expand Up @@ -301,7 +306,7 @@ jobs:
# lines it managed, and those are exactly what diagnosis needs.
- name: Upload bench log
if: always()
uses: actions/upload-artifact@v4.6.2
uses: actions/upload-artifact@v7.0.2
with:
name: bench-log
path: bench.log
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
# flagged release_please = true).
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3.2.0
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ vars.RELEASE_PLEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_PLEASE_PRIVATE_KEY }}
- uses: googleapis/release-please-action@v4.4.1
- uses: googleapis/release-please-action@v5.0.0
id: release
with:
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -42,7 +42,7 @@ jobs:
# (not the release branch), so pushing the lock here does not self-trigger.
- name: Check out the release PR branch
if: ${{ steps.release.outputs.prs_created == 'true' }}
uses: actions/checkout@v6.1.0
uses: actions/checkout@v7.0.1
with:
ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
token: ${{ steps.app-token.outputs.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.1.0
- uses: actions/checkout@v7.0.1
- uses: taiki-e/install-action@cargo-audit
- run: cargo audit
Loading
Loading