-
Notifications
You must be signed in to change notification settings - Fork 0
chore: strip redundant CI steps for self-hosted runner #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,31 +27,6 @@ jobs: | |
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable | ||
| with: | ||
| toolchain: "stable" | ||
| components: clippy | ||
|
|
||
| - name: Cache Rust dependencies | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| target/ | ||
| key: ${{ runner.os }}-cargo-security-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-security- | ||
| ${{ runner.os }}-cargo- | ||
|
|
||
| - name: Install cargo-audit | ||
| run: cargo install cargo-audit --locked | ||
|
|
||
| - name: Install cargo-deny | ||
| run: cargo install cargo-deny --locked | ||
|
|
||
| - name: Run cargo audit (CVE scanning) | ||
| run: cargo audit | ||
|
|
||
|
|
@@ -92,24 +67,8 @@ jobs: | |
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@5b842231ba77f5c045dba54ac5560fed2db780e2 # nightly | ||
|
|
||
| - name: Cache Rust dependencies | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| fuzz/target/ | ||
| key: ${{ runner.os }}-cargo-fuzz-nightly-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-fuzz-nightly- | ||
| ${{ runner.os }}-cargo- | ||
|
|
||
| - name: Install cargo-fuzz | ||
| run: cargo install cargo-fuzz --locked | ||
| - name: Use nightly toolchain | ||
| run: rustup default nightly | ||
|
Comment on lines
+70
to
+71
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n .github/workflows/security.yml | head -120Repository: cachekit-io/cachekit-core Length of output: 4566 🏁 Script executed: wc -l .github/workflows/security.ymlRepository: cachekit-io/cachekit-core Length of output: 104 🏁 Script executed: cat -n .github/workflows/security.yml | tail -64Repository: cachekit-io/cachekit-core Length of output: 2590 🏁 Script executed: cat -n .github/workflows/ci.yml | head -80Repository: cachekit-io/cachekit-core Length of output: 3018 🏁 Script executed: fd -type f -name "*.yml" -o -name "*.yaml" | grep -E "(runner|setup)" | head -20Repository: cachekit-io/cachekit-core Length of output: 240 🏁 Script executed: fd -type f "runner|setup" .github/ 2>/dev/null || find .github -type f \( -name "*runner*" -o -name "*setup*" \)Repository: cachekit-io/cachekit-core Length of output: 51 🏁 Script executed: ls -la .github/Repository: cachekit-io/cachekit-core Length of output: 239 🏁 Script executed: rg "cargo fuzz" .github/workflows/ -A 3 -B 3Repository: cachekit-io/cachekit-core Length of output: 1382 🏁 Script executed: rg "rustup" .github/workflows/ -B 2 -A 2Repository: cachekit-io/cachekit-core Length of output: 625 Use At Lines 70–71 and 109–110, Replace with: 🤖 Prompt for AI Agents |
||
|
|
||
| - name: Run quick fuzz (corpus only) | ||
| run: | | ||
|
|
@@ -147,24 +106,8 @@ jobs: | |
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@5b842231ba77f5c045dba54ac5560fed2db780e2 # nightly | ||
|
|
||
| - name: Cache Rust dependencies | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| fuzz/target/ | ||
| key: ${{ runner.os }}-cargo-fuzz-nightly-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-fuzz-nightly- | ||
| ${{ runner.os }}-cargo- | ||
|
|
||
| - name: Install cargo-fuzz | ||
| run: cargo install cargo-fuzz --locked | ||
| - name: Use nightly toolchain | ||
| run: rustup default nightly | ||
|
|
||
| - name: Run deep fuzz (30 minutes per target) | ||
| run: | | ||
|
|
@@ -190,24 +133,6 @@ jobs: | |
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # master | ||
| with: | ||
| toolchain: "1.85" | ||
|
|
||
| - name: Cache Rust dependencies | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| target/ | ||
| key: ${{ runner.os }}-cargo-kani-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-kani- | ||
| ${{ runner.os }}-cargo- | ||
|
|
||
| - name: Install Kani | ||
| run: | | ||
| cargo install --locked kani-verifier || echo "Kani install failed, skipping verification" | ||
|
|
@@ -225,23 +150,8 @@ jobs: | |
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # master | ||
| with: | ||
| toolchain: "1.85" | ||
|
|
||
| - name: Cache Rust dependencies | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| target/ | ||
| key: ${{ runner.os }}-cargo-vet-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-vet- | ||
| ${{ runner.os }}-cargo- | ||
| - name: Generate lockfile | ||
| run: cargo generate-lockfile | ||
|
|
||
| - name: Install cargo-vet | ||
| run: cargo install cargo-vet --locked | ||
|
|
@@ -257,24 +167,6 @@ jobs: | |
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # master | ||
| with: | ||
| toolchain: "1.85" | ||
|
|
||
| - name: Cache Rust dependencies | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| target/ | ||
| key: ${{ runner.os }}-cargo-sbom-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-sbom- | ||
| ${{ runner.os }}-cargo- | ||
|
|
||
| - name: Install cargo-sbom | ||
| run: cargo install cargo-sbom --locked | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
cat -n .github/workflows/ci.yml | head -60Repository: cachekit-io/cachekit-core
Length of output: 2329
Install the beta toolchain on
cachekitto preserve real beta coverage.At Line 43, the condition
if: matrix.runner != 'cachekit' || matrix.rust == '1.85'skips setup for beta oncachekit. This causes the beta matrix entry to run with the runner's default toolchain instead of beta, making the beta coverage misleading.Suggested change
🤖 Prompt for AI Agents