Skip to content

Commit 07f0581

Browse files
committed
fix(ci): Fix Docker fuzzing in GitHub Actions
- Remove problematic cache_from directive (non-existent registry image) - Remove Docker layer caching (causing issues in CI) - Make Cargo.lock optional in Dockerfile (COPY Cargo.lock* ./) - Simplify docker compose build command - Remove BUILDKIT_INLINE_CACHE build arg This fixes: - Cache import error from non-existent crabgraph-fuzz:latest - Cargo.lock not found error in Docker context - Cache key computation errors
1 parent 552467c commit 07f0581

3 files changed

Lines changed: 3 additions & 13 deletions

File tree

.github/workflows/fuzz.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,9 @@ jobs:
1515
- name: Set up Docker Buildx
1616
uses: docker/setup-buildx-action@v3
1717

18-
- name: Cache Docker layers
19-
uses: actions/cache@v4
20-
with:
21-
path: /tmp/.buildx-cache
22-
key: ${{ runner.os }}-buildx-fuzz-${{ hashFiles('Dockerfile.fuzz', 'Cargo.lock') }}
23-
restore-keys: |
24-
${{ runner.os }}-buildx-fuzz-
25-
2618
- name: Build fuzz Docker image
2719
run: |
28-
docker compose -f docker-compose.fuzz.yml build \
29-
--build-arg BUILDKIT_INLINE_CACHE=1
20+
docker compose -f docker-compose.fuzz.yml build
3021
3122
- name: Run fuzzing (60 seconds per target)
3223
run: |

Dockerfile.fuzz

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ RUN rustup default nightly
3131
WORKDIR /workspace
3232

3333
# Copy Cargo files first for better layer caching
34-
COPY Cargo.toml Cargo.lock ./
34+
COPY Cargo.toml ./
35+
COPY Cargo.lock* ./
3536
COPY fuzz/Cargo.toml ./fuzz/
3637

3738
# Create dummy src to build dependencies (caching layer)

docker-compose.fuzz.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ services:
33
build:
44
context: .
55
dockerfile: Dockerfile.fuzz
6-
cache_from:
7-
- crabgraph-fuzz:latest
86
image: crabgraph-fuzz:latest
97
container_name: crabgraph-fuzz
108
volumes:

0 commit comments

Comments
 (0)