Skip to content

Commit e1eb344

Browse files
committed
merge #633 into opencontainers/umoci:main
Aleksa Sarai (4): gha: reduce ClusterFuzzLite time limit gha: use mode=min caching gha: run rootless and rootful integration in parallel gha: add 'complete' job LGTMs: cyphar
2 parents 9402f89 + a058839 commit e1eb344

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

.github/workflows/cflite-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
5050
with:
5151
github-token: ${{ secrets.GITHUB_TOKEN }}
52-
fuzz-seconds: 600
52+
fuzz-seconds: 300
5353
mode: 'code-change'
5454
sanitizer: ${{ matrix.sanitizer }}
5555
output-sarif: true

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ jobs:
143143
- debian:latest
144144
- ubuntu:latest
145145
- fedora:latest
146+
test:
147+
- root
148+
- rootless
146149
env:
147150
TEST_DOCKER_IMAGE: ${{ matrix.image }}
148151
COVERAGE: umoci.coverage
@@ -165,7 +168,7 @@ jobs:
165168
${{ github.workflow }}-image-
166169
- name: load ci image
167170
run: make ci-cache
168-
- run: make TEST_DOCKER_IMAGE=$TEST_DOCKER_IMAGE test-integration
171+
- run: make TEST_DOCKER_IMAGE=$TEST_DOCKER_IMAGE test-${{ matrix.test }}-integration
169172
- run: go tool covdata textfmt -i "$GOCOVERDIR" -o "$COVERAGE"
170173
- name: codecov
171174
uses: codecov/codecov-action@v5
@@ -202,3 +205,15 @@ jobs:
202205
with:
203206
name: coverage
204207
path: ${{ env.GOCOVERDIR }}
208+
209+
complete:
210+
runs-on: ubuntu-latest
211+
needs:
212+
- release
213+
- validate
214+
- macos
215+
- unit
216+
- integration
217+
- coverage
218+
steps:
219+
- run: echo "all done"

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,16 @@ local-test-unit:
187187
TESTS ?=
188188

189189
.PHONY: test-integration
190-
test-integration: ci-image
190+
test-integration: test-root-integration test-rootless-integration
191+
192+
.PHONY: test-root-integration
193+
test-root-integration: ci-image umoci.cover
191194
mkdir -p $(GOCOVERDIR) && chmod a+rwx $(GOCOVERDIR)
192195
$(DOCKER_ROOTPRIV_RUN) -e GOCOVERDIR -e TESTS $(UMOCI_IMAGE) make local-test-integration
196+
197+
.PHONY: test-rootless-integration
198+
test-rootless-integration: ci-image umoci.cover
199+
mkdir -p $(GOCOVERDIR) && chmod a+rwx $(GOCOVERDIR)
193200
$(DOCKER_ROOTLESS_RUN) -e GOCOVERDIR -e TESTS $(UMOCI_IMAGE) make local-test-integration
194201

195202
.PHONY: local-test-integration
@@ -214,7 +221,7 @@ CI_CACHE_PATH ?=.ci-cache
214221
.PHONY: ci-cache
215222
ci-cache: BUILDX_CACHE := \
216223
--cache-from=type=local,src=$(CI_CACHE_PATH) \
217-
--cache-to=type=local,mode=max,dest=$(CI_CACHE_PATH)
224+
--cache-to=type=local,dest=$(CI_CACHE_PATH)
218225
ci-cache: ci-image
219226

220227
.PHONY: ci-image

0 commit comments

Comments
 (0)