Skip to content
Open
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
3 changes: 3 additions & 0 deletions .github/actions/rust-ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ runs:
brew install pkg-config cmake
fi

# Pin binary: sccache-action installs latest when version is omitted.
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved

- name: Enable sccache
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/benchmark_alert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ jobs:
libasound2-dev libpulse-dev libudev-dev mesa-vulkan-drivers vulkan-tools \
bc jq coreutils

# Pin binary: sccache-action installs latest when version is omitted.
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"

- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dependency-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,11 @@ jobs:
run: echo "Windows dependencies managed via vcpkg"

# FIX: separate steps; don't mix 'run' and 'uses' in the same step
# Pin binary: sccache-action installs latest when version is omitted.
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"

- name: Cache cleanup (if requested)
if: github.event.inputs.cache_action == 'clean'
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.89.0

# Pin binary: sccache-action installs latest when version is omitted.
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"

- name: Enable sccache
run: |
Expand Down Expand Up @@ -86,8 +89,11 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.89.0

# Pin binary: sccache-action installs latest when version is omitted.
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"

- name: Enable sccache
run: |
Expand Down Expand Up @@ -124,8 +130,11 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.89.0

# Pin binary: sccache-action installs latest when version is omitted.
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"

- name: Enable sccache
run: |
Expand Down Expand Up @@ -162,8 +171,11 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.89.0

# Pin binary: sccache-action installs latest when version is omitted.
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"

- name: Enable sccache
run: |
Expand Down Expand Up @@ -195,8 +207,11 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.89.0

# Pin binary: sccache-action installs latest when version is omitted.
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"

- name: Enable sccache
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/toolchain-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ jobs:
if: matrix.os == 'macos-latest'
run: brew install pkg-config cmake

# Pin binary: sccache-action installs latest when version is omitted.
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"

- name: Configure sccache
run: |
Expand Down Expand Up @@ -286,8 +289,11 @@ jobs:
libasound2-dev libudev-dev \
mesa-vulkan-drivers libvulkan1 vulkan-tools time

# Pin binary: sccache-action installs latest when version is omitted.
- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"

- name: Configure sccache
run: |
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
The workspace package is still version 0.4.0. [SECURITY.md](SECURITY.md) calls that the supported line. There is no `v0.4.0` git tag. The notes in this section are changes on `main` after 2025-11-18, grouped by the UTC month of the merge or commit. The dated `[0.4.0]` heading further down is the archival note for that day, not a release tag.


### 2026-11

#### Fixed
- ci: pin `mozilla-actions/sccache-action` to sccache v0.19.0 so unpinned installs do not pull 0.20.0, whose GHA cache checks can exceed the client startup timeout ([#772](https://github.com/lazyxeon/AstraWeave/pull/772)).

### 2026-10

#### Added
Expand Down
4 changes: 2 additions & 2 deletions docs/current/CI_ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ When the same tests also run under nextest (an affected crate on a pull request,

Those four workflows still trigger on every pull request. The heavy jobs are conditional. A skipped job reports success to branch protection. `on.paths` is not used: a path filter would leave a required check pending. `determinism-replay.yml` has no scope and no path filter. The Aravath golden-hash matrix still expands when the scope is cold, so the three `Replay hash (...)` check names are created; the compile steps are skipped. `net-tests.yml` no longer uses `paths-ignore` for markdown. A docs-only pull request classifies `run=false` and skips the `net-tests` job by condition instead of omitting the workflow. Push, schedule, and `workflow_dispatch` do not consult the diff.

`scripts/ci/test_affected_crates.py` and `scripts/ci/test_workflow_policy.py` lock this in. `actionlint` 1.7.7 reports no findings on the workflow files.
`scripts/ci/test_affected_crates.py` and `scripts/ci/test_workflow_policy.py` lock this in. `test_sccache_action_pins_binary_version` (`scripts/ci/test_workflow_policy.py:2771`) asserts `repo_sccache_pin_violations(ROOT)` is empty, `len(repo_sccache_action_sites(ROOT))` equals `EXPECTED_SCCACHE_ACTION_STEPS` (`:95`, value 10), every `scripts/ci/testdata/sccache_policy/pass/*.yml` violation list is empty, and every `fail/*.yml` list is non-empty. `test_sccache_pin_scan_reads_workflows_under_root` (`:2804`) builds a temporary checkout and asserts the workflow path list, the substring `YAML parse error`, and specific relative paths in the violation text. `sccache_mutation_checks` (`:1544`) is the root-backed helper those tests call. YAML is loaded only with `yaml.safe_load` (`:1455`). The empty pass lists are the literal pins those files contain: `with.version` exactly `v0.19.0`, a cargo or cargo-binstall install of sccache at `0.19.0` or `v0.19.0`, a git tag `v0.19.0` without `--branch` or `--rev`, a `mozilla/sccache` release asset URL that still names `releases/download/v0.19.0` and `sccache-v0.19.0` after the query and fragment are cut, `gh release download` of `mozilla/sccache` at tag `v0.19.0`, a pinned taiki tool, and a docker tag `v0.19.0`. The non-empty fail lists are the install-shaped steps in that directory, including apt, brew, and choco, the other package-manager names in the fail fixtures, and a non-bash `shell` whose `run` text contains sccache. A form with no fixture is not a result this paragraph claims. The scan reads `run` text and the literal `.sh`/`.ps1` paths those steps name. The empty repo result is what shows unreferenced scripts are outside that scan. The ten sites are `rust-ci-setup` and the nine direct install steps. `actionlint` still reports two pre-existing unknown `gpu` runner labels, at `.github/workflows/allocation-measurement.yml:169` and `.github/workflows/gpu-frame-budget.yml:31`. This pin does not change those workflows.

## Cache

`.github/actions/rust-ci-setup` is the shared setup:

- pinned toolchain (default 1.89.0) via `dtolnay/rust-toolchain`
- Linux build dependencies, including `libudev-dev` and `libasound2-dev` (this is what Editor CI was missing on PR #212)
- `sccache` 0.19.0 with `SCCACHE_GHA_ENABLED=true` and `RUSTC_WRAPPER=sccache`. `CARGO_INCREMENTAL=0` is set in this action and in `ci.yml`. Pull requests and non-main refs set `SCCACHE_GHA_RW_MODE=READ_ONLY`. Pushes and schedules on `refs/heads/main` set `READ_WRITE`. The action does not set `RUSTFLAGS`: Cargo 1.89 replaces every `rustflags` entry in `.cargo/config.toml` when that variable is set. The Linux CPU pin is `[target.x86_64-unknown-linux-gnu] rustflags = ["-C", "target-cpu=x86-64"]`, beside the Windows 16 MiB stack flags. aarch64 keeps the default baseline. sccache 0.19 does not cache `bin`, `cdylib`, or `proc-macro` crate types.
- `mozilla-actions/sccache-action@v0.0.11` with `version: v0.19.0` on `rust-ci-setup` and every direct install step (the action installs latest when `version` is omitted). sccache 0.20.0 (2026-11-23) added GitHub Actions cache retries for temporary errors (upstream sccache #2911); on a 429 those retries run inside `storage.check()` before the server listens and can exceed the client `SERVER_STARTUP_TIMEOUT` (10s), so cargo exits 101 at `rustc -vV`. The pin keeps 0.19.0’s fail-fast `raw_storage.check()`; it does not make a 429 at startup succeed. Lift the pin only after an upstream sccache release starts the server on time and a nightly schedule (`20 6 * * *`) or a manual `workflow_dispatch` of `pbr-pipeline-ci.yml` on `main` shows the `Build astraweave-render` step succeeding on ubuntu-latest, windows-latest, and macos-latest with that sccache. Merging this pin does not start that workflow: its `push` trigger is limited to `astraweave-render/**`, `tools/aw_asset_cli/**`, `tools/aw_editor/**`, `shaders/**`, and the workflow file (`.github/workflows/pbr-pipeline-ci.yml:4-11`). Read the step conclusion from the job view (`actions/runs/<id>/jobs`, `steps[].conclusion`), not the job conclusion and not the workflow result. Then bump `version` in one PR. The `Build PBR Components` job is `continue-on-error: true` at `.github/workflows/pbr-pipeline-ci.yml:35`, tracked separately as BS-004 and unchanged here, which is why run 45199134914 reported workflow `success` while that step failed on all three OSes. The same startup timeout on `e1773a89` also failed Editor CI step `Clippy (aw_editor)` (run 45199135007) and Integration Tests jobs `LLM Fallback Chain` and `Core Pipeline (ECS → AI → Physics)` (run 45199134623). Dependabot (`.github/dependabot.yml`, github-actions ecosystem) may bump the `uses:` ref on `mozilla-actions/sccache-action` but not `with.version`; move the binary pin by hand. The action sets `SCCACHE_GHA_ENABLED=true` and `RUSTC_WRAPPER=sccache`. `CARGO_INCREMENTAL=0` is set in this action and in `ci.yml`. Pull requests and non-main refs set `SCCACHE_GHA_RW_MODE=READ_ONLY`. Pushes and schedules on `refs/heads/main` set `READ_WRITE`. The action does not set `RUSTFLAGS`: Cargo 1.89 replaces every `rustflags` entry in `.cargo/config.toml` when that variable is set. The Linux CPU pin is `[target.x86_64-unknown-linux-gnu] rustflags = ["-C", "target-cpu=x86-64"]`, beside the Windows 16 MiB stack flags. aarch64 keeps the default baseline. sccache 0.19 does not cache `bin`, `cdylib`, or `proc-macro` crate types.
- Swatinem `rust-cache` v2 with `shared-key: ${{ runner.os }}-astraweave`, `cache-targets: false`, `save-if` only on `refs/heads/main`

Registry and git caches are shared across jobs and workflows on the same OS. Compilation artifacts stay in sccache, so the two caches do not both wrap `target/`. Pull requests restore both caches and do not save them. Job `121303738868` (run `40235303264`) recorded rust hit rate 11.01%, 263 cache write errors, and 826 non-cacheable calls (621 `crate-type`, 113 `bin`, 66 `proc-macro`) while `effective_cache_mode` was `ReadWrite`. Gate samples from the same window were 24.34% and 38.52% overall.
Expand Down
Loading
Loading