Skip to content

ci: add rust-cache and retire archived actions-rs actions - #14

Merged
hanzo-dev merged 1 commit into
mainfrom
ci/rust-cache-retire-actions-rs
Jun 2, 2026
Merged

hanzo-dev merged 1 commit into
mainfrom
ci/rust-cache-retire-actions-rs

Conversation

@hanzo-dev

Copy link
Copy Markdown
Member

What

The CI audit found 0 of 9 jobs had Rust dependency caching, so every run recompiled all dependencies from scratch. This adds Swatinem/rust-cache@v2 and retires the archived/unmaintained actions-rs/* actions.

Changes (all in .github/workflows/ci.yml)

  • Add Swatinem/rust-cache@v2 to every Rust-compiling job: check, check-metal, test, fmt, clippy, docs, msrv (placed right after toolchain setup so the cache key picks up the toolchain).
  • Retire archived actions-rs/* actions:
    • actions-rs/toolchain@v1 → dtolnay/rust-toolchain@master (actively maintained; components: for rustfmt/clippy, toolchain: for the matrix/MSRV channel).
    • actions-rs/cargo@v1 → direct cargo … run: steps (the test job keeps its TESTS_HF_TOKEN env).
  • typos job: dropped its vestigial toolchain setup — crate-ci/typos ships a prebuilt binary and compiles no Rust, so there was nothing to cache and no toolchain needed.
  • doc-links is unchanged (pure grep, no toolchain).

Notes

  • Builds on the current main: the profile.dev settings in Cargo.toml are left untouched (this PR only edits ci.yml).
  • Net -32 lines; YAML validated locally.

🤖 Generated with Claude Code

The audit found 0 of 9 CI jobs had dependency caching, making every
run recompile from scratch. Add Swatinem/rust-cache@v2 to all Rust
build jobs (check, check-metal, test, fmt, clippy, docs, msrv).

Also retire the archived/unmaintained actions-rs/* actions:
- actions-rs/toolchain@v1 -> dtolnay/rust-toolchain@master
- actions-rs/cargo@v1     -> direct `cargo` run steps

The typos job had a vestigial toolchain setup (crate-ci/typos ships a
prebuilt binary and compiles no Rust); drop it rather than cache a
no-op job.

Leaves the existing profile.dev settings in Cargo.toml untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Code Metrics Report
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Language              Files        Lines         Code     Comments       Blanks
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 C Header                  5          305          210           52           43
 C++                       1         1048          868           42          138
 CSS                       5         1462         1288           39          135
 CUDA                     60        20622        16570         1656         2396
 Dockerfile                1           38           21            8            9
 JavaScript               19         3972         3089          488          395
 Jinja2                    7          694          656            5           33
 JSON                     27         9400         9397            0            3
 Makefile                  1            6            5            0            1
 MDX                       1          147            0          132           15
 Metal Shading Lan|       34        13466        10542         1117         1807
 PowerShell                1          300          227           30           43
 Python                  134        10385         8547          466         1372
 Shell                     4          948          765          106           77
 Plain Text                3         3723            0         2413         1310
 TOML                     29         1406         1229           38          139
 TypeScript               11         1607         1371           66          170
 YAML                      4           41           39            2            0
─────────────────────────────────────────────────────────────────────────────────
 HTML                      4          782          695           38           49
 |- CSS                    1          578          544           14           20
 |- JavaScript             1           24           23            0            1
 (Total)                             1384         1262           52           70
─────────────────────────────────────────────────────────────────────────────────
 Jupyter Notebooks         3          122           83           23           16
 |- Markdown               1           60           30           22            8
 |- Python                 1          122          113            1            8
 (Total)                              304          226           46           32
─────────────────────────────────────────────────────────────────────────────────
 Markdown                211        19312            0        13557         5755
 |- BASH                 124         1415         1105          191          119
 |- Dockerfile             3            6            6            0            0
 |- JSON                  35         1175         1175            0            0
 |- PowerShell             5            7            7            0            0
 |- Python                45         1717         1459           65          193
 |- Rust                  64         2423         2048           56          319
 |- TOML                  16          318          250            4           64
 |- YAML                   3           18           17            1            0
 (Total)                            26391         6067        13874         6450
─────────────────────────────────────────────────────────────────────────────────
 Rust                    599       261834       230971         6759        24104
 |- Markdown             396         9539          452         7935         1152
 (Total)                           271373       231423        14694        25256
─────────────────────────────────────────────────────────────────────────────────
 Svelte                   18         1831         1696           50           85
 |- CSS                    1            4            4            0            0
 |- JavaScript            18          876          727           24          125
 (Total)                             2711         2427           74          210
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Total                  1182       371733       296229        35400        40104
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

@hanzo-dev
hanzo-dev merged commit 1089431 into main Jun 2, 2026
2 of 15 checks passed
@hanzo-dev
hanzo-dev deleted the ci/rust-cache-retire-actions-rs branch June 2, 2026 11:33
hanzo-dev added a commit that referenced this pull request Jul 16, 2026
The audit found 0 of 9 CI jobs had dependency caching, making every
run recompile from scratch. Add Swatinem/rust-cache@v2 to all Rust
build jobs (check, check-metal, test, fmt, clippy, docs, msrv).

Also retire the archived/unmaintained actions-rs/* actions:
- actions-rs/toolchain@v1 -> dtolnay/rust-toolchain@master
- actions-rs/cargo@v1     -> direct `cargo` run steps

The typos job had a vestigial toolchain setup (crate-ci/typos ships a
prebuilt binary and compiles no Rust); drop it rather than cache a
no-op job.

Leaves the existing profile.dev settings in Cargo.toml untouched.

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
zeekay pushed a commit that referenced this pull request Jul 26, 2026
The audit found 0 of 9 CI jobs had dependency caching, making every
run recompile from scratch. Add Swatinem/rust-cache@v2 to all Rust
build jobs (check, check-metal, test, fmt, clippy, docs, msrv).

Also retire the archived/unmaintained actions-rs/* actions:
- actions-rs/toolchain@v1 -> dtolnay/rust-toolchain@master
- actions-rs/cargo@v1     -> direct `cargo` run steps

The typos job had a vestigial toolchain setup (crate-ci/typos ships a
prebuilt binary and compiles no Rust); drop it rather than cache a
no-op job.

Leaves the existing profile.dev settings in Cargo.toml untouched.

Co-authored-by: Hanzo Dev <[email protected]>
zeekay pushed a commit that referenced this pull request Jul 26, 2026
The audit found 0 of 9 CI jobs had dependency caching, making every
run recompile from scratch. Add Swatinem/rust-cache@v2 to all Rust
build jobs (check, check-metal, test, fmt, clippy, docs, msrv).

Also retire the archived/unmaintained actions-rs/* actions:
- actions-rs/toolchain@v1 -> dtolnay/rust-toolchain@master
- actions-rs/cargo@v1     -> direct `cargo` run steps

The typos job had a vestigial toolchain setup (crate-ci/typos ships a
prebuilt binary and compiles no Rust); drop it rather than cache a
no-op job.

Leaves the existing profile.dev settings in Cargo.toml untouched.

Co-authored-by: Hanzo Dev <[email protected]>
hanzo-dev added a commit that referenced this pull request Jul 27, 2026
The audit found 0 of 9 CI jobs had dependency caching, making every
run recompile from scratch. Add Swatinem/rust-cache@v2 to all Rust
build jobs (check, check-metal, test, fmt, clippy, docs, msrv).

Also retire the archived/unmaintained actions-rs/* actions:
- actions-rs/toolchain@v1 -> dtolnay/rust-toolchain@master
- actions-rs/cargo@v1     -> direct `cargo` run steps

The typos job had a vestigial toolchain setup (crate-ci/typos ships a
prebuilt binary and compiles no Rust); drop it rather than cache a
no-op job.

Leaves the existing profile.dev settings in Cargo.toml untouched.
hanzo-dev added a commit that referenced this pull request Jul 27, 2026
The audit found 0 of 9 CI jobs had dependency caching, making every
run recompile from scratch. Add Swatinem/rust-cache@v2 to all Rust
build jobs (check, check-metal, test, fmt, clippy, docs, msrv).

Also retire the archived/unmaintained actions-rs/* actions:
- actions-rs/toolchain@v1 -> dtolnay/rust-toolchain@master
- actions-rs/cargo@v1     -> direct `cargo` run steps

The typos job had a vestigial toolchain setup (crate-ci/typos ships a
prebuilt binary and compiles no Rust); drop it rather than cache a
no-op job.

Leaves the existing profile.dev settings in Cargo.toml untouched.
zeekay added a commit that referenced this pull request Sep 15, 2026
The audit found 0 of 9 CI jobs had dependency caching, making every
run recompile from scratch. Add Swatinem/rust-cache@v2 to all Rust
build jobs (check, check-metal, test, fmt, clippy, docs, msrv).

Also retire the archived/unmaintained actions-rs/* actions:
- actions-rs/toolchain@v1 -> dtolnay/rust-toolchain@master
- actions-rs/cargo@v1     -> direct `cargo` run steps

The typos job had a vestigial toolchain setup (crate-ci/typos ships a
prebuilt binary and compiles no Rust); drop it rather than cache a
no-op job.

Leaves the existing profile.dev settings in Cargo.toml untouched.

Co-authored-by: Hanzo Dev <[email protected]>
breezesamuel added a commit to breezesamuel/engine that referenced this pull request Nov 18, 2026
…w-up)

Completes the four remaining contract items from review:
- Matched baselines: unpinned-LRU (phase A) vs tenant-pinned (phase B)
  on the identical storm fixture - committed as
  hanzo-kv-fabric/results/lora-paging-results.json
- Raw measurements: 0/2048 (0.0%) unpinned vs 248/256 (96.9%) pinned;
  evictions 2038 vs 1800; policy cost ~302 ns hit / ~709 ns admission;
  8/8 pinned pages survive
- HIP-1345 update: results/HIP-1345-update.md proposes the §2.4 status
  addendum (§2.4 = Bounties hanzoai#14-hanzoai#15; the §2.3 label in the first cycle
  was a mislabel - §2.3 is Bounties hanzoai#13/hanzoai#18) - section refs corrected
  in module docs and the bench
- Out-of-scope statement: explicit 7-item list (training lifecycle,
  attention-path hot-swap, device I/O, cross-worker replication,
  multi-GPU placement, pin-quota arbiter, Bounty hanzoai#14)
breezesamuel added a commit to breezesamuel/engine that referenced this pull request Nov 18, 2026
…w-up)

Completes the four remaining contract items from review:
- Matched baselines: strict prefix cache vs composition planner on the
  identical two-turn shuffled-retrieval fixture - committed as
  hanzo-kv-fabric/results/cacheblend-results.json
- Raw measurements: prefix-only 64/896 reusable (prefill 832) vs
  planner 544/896 (8.5x), compute 832 -> 352 tokens (-57.7%),
  recompute 1 (never-cached doc), silent order violations 0
- HIP-1345 update: results/HIP-1345-update.md proposes the §2.7 status
  addendum (§2.7 = Bounties hanzoai#19-hanzoai#20; the §2.4 label in the first cycle
  was a mislabel - §2.4 is Bounties hanzoai#14-hanzoai#15) - section refs corrected
  in module docs and the bench
- Out-of-scope statement: explicit 6-item list (KV blending math,
  cross-segment attention routing, TTFT/quality parity, tenant pinning
  interplay, runtime eviction, Bounty hanzoai#20)
breezesamuel added a commit to breezesamuel/engine that referenced this pull request Nov 18, 2026
Per the live HIP text: Bounties hanzoai#14-hanzoai#15 = §2.4 (LoRA paging),
Bounties hanzoai#19-hanzoai#20 = §2.7 (non-prefix RAG KV fusion).
breezesamuel added a commit to breezesamuel/engine that referenced this pull request Nov 18, 2026
Per the live HIP text: Bounties hanzoai#14-hanzoai#15 = §2.4 (LoRA paging),
Bounties hanzoai#19-hanzoai#20 = §2.7 (non-prefix RAG KV fusion).
zeekay pushed a commit to breezesamuel/engine that referenced this pull request Nov 21, 2026
…w-up)

Completes the four remaining contract items from review:
- Matched baselines: unpinned-LRU (phase A) vs tenant-pinned (phase B)
  on the identical storm fixture - committed as
  hanzo-kv-fabric/results/lora-paging-results.json
- Raw measurements: 0/2048 (0.0%) unpinned vs 248/256 (96.9%) pinned;
  evictions 2038 vs 1800; policy cost ~302 ns hit / ~709 ns admission;
  8/8 pinned pages survive
- HIP-1345 update: results/HIP-1345-update.md proposes the §2.4 status
  addendum (§2.4 = Bounties hanzoai#14-hanzoai#15; the §2.3 label in the first cycle
  was a mislabel - §2.3 is Bounties hanzoai#13/hanzoai#18) - section refs corrected
  in module docs and the bench
- Out-of-scope statement: explicit 7-item list (training lifecycle,
  attention-path hot-swap, device I/O, cross-worker replication,
  multi-GPU placement, pin-quota arbiter, Bounty hanzoai#14)
zeekay pushed a commit to breezesamuel/engine that referenced this pull request Nov 21, 2026
Per the live HIP text: Bounties hanzoai#14-hanzoai#15 = §2.4 (LoRA paging),
Bounties hanzoai#19-hanzoai#20 = §2.7 (non-prefix RAG KV fusion).
zeekay pushed a commit to breezesamuel/engine that referenced this pull request Nov 21, 2026
…w-up)

Completes the four remaining contract items from review:
- Matched baselines: strict prefix cache vs composition planner on the
  identical two-turn shuffled-retrieval fixture - committed as
  hanzo-kv-fabric/results/cacheblend-results.json
- Raw measurements: prefix-only 64/896 reusable (prefill 832) vs
  planner 544/896 (8.5x), compute 832 -> 352 tokens (-57.7%),
  recompute 1 (never-cached doc), silent order violations 0
- HIP-1345 update: results/HIP-1345-update.md proposes the §2.7 status
  addendum (§2.7 = Bounties hanzoai#19-hanzoai#20; the §2.4 label in the first cycle
  was a mislabel - §2.4 is Bounties hanzoai#14-hanzoai#15) - section refs corrected
  in module docs and the bench
- Out-of-scope statement: explicit 6-item list (KV blending math,
  cross-segment attention routing, TTFT/quality parity, tenant pinning
  interplay, runtime eviction, Bounty hanzoai#20)
zeekay pushed a commit to breezesamuel/engine that referenced this pull request Nov 21, 2026
Per the live HIP text: Bounties hanzoai#14-hanzoai#15 = §2.4 (LoRA paging),
Bounties hanzoai#19-hanzoai#20 = §2.7 (non-prefix RAG KV fusion).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant