Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

ci(verify): fixture cache keyed by the whole verify crate source

Richie McIlroyaedeb5e27e4e
diff --git a/.github/actions/engine-verify-setup/action.yml b/.github/actions/engine-verify-setup/action.yml
index a1f1ab65f..3d2b08e01 100644
--- a/.github/actions/engine-verify-setup/action.yml
+++ b/.github/actions/engine-verify-setup/action.yml
@@ -97,10 +97,13 @@ runs:
shell: bash
run: echo "CAP_VERIFY_FIXTURE_DIR=${{ runner.temp }}/verify-fixtures" >> "$GITHUB_ENV"
- # Fixtures are generated by code; the key is the generator source.
+ # Fixtures are generated by code (including the real-pipeline Studio and
+ # Instant recordings, ~1 min of real-time capture); the key is the whole
+ # verify crate source plus the native deps. Exact key only: a fixture made
+ # by an older generator is never reused.
- name: Restore fixtures
id: fixtures
uses: actions/cache/restore@v4
with:
path: ${{ runner.temp }}/verify-fixtures
- key: verify-fixtures-v1-${{ runner.os }}-${{ inputs.tier }}-${{ hashFiles('crates/verify/src/fixture*.rs', 'crates/verify/src/catalog.rs', 'crates/verify/src/video_code.rs', 'crates/verify/src/audio_code.rs', 'crates/verify/src/media.rs', 'scripts/setup.js') }}
+ key: verify-fixtures-v1-${{ runner.os }}-${{ inputs.tier }}-${{ hashFiles('crates/verify/src/**', 'crates/verify/Cargo.toml', 'scripts/setup.js') }}