Skip to content

Commit

Permalink
Only test full amd64 files in Docker CI
Browse files Browse the repository at this point in the history
We remove the slow test from debian CI, hopefully speeding up CI
execution significantly, replacing them with the lite-amd64 tests, and
add the lite-amd64 tests to alpine.
  • Loading branch information
JasonGross committed Nov 12, 2023
1 parent 737aef4 commit a6d9e65
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 36 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/coq-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ jobs:
name: ExtractionHaskell-${{ matrix.alpine }}
path: src/ExtractionHaskell
if: always ()
- name: only-test-amd64-files-lite
shell: alpine.sh {0}
run: make TIMED=1 TIMING=1 -j2 only-test-amd64-files-lite SLOWEST_FIRST=1
- name: display timing info
run: cat time-of-build-pretty.log || true
- name: display per-line timing info
Expand Down
39 changes: 4 additions & 35 deletions .github/workflows/coq-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,51 +78,20 @@ jobs:
name: ExtractionHaskell-${{ matrix.env.DEBIAN }}
path: src/ExtractionHaskell
if: always ()
- name: only-test-amd64-files-lite
shell: in-debian-chroot.sh {0}
run: etc/ci/github-actions-make.sh -j2 only-test-amd64-files-lite SLOWEST_FIRST=1
- name: display timing info
run: cat time-of-build-pretty.log
- name: display per-line timing info
run: etc/ci/github-actions-display-per-line-timing.sh

test-amd64:

runs-on: ubuntu-latest
env: { DEBIAN: "sid" }

concurrency:
group: ${{ github.workflow }}-test-amd64-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
needs: build

steps:
- name: checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: setup Debian chroot
run: etc/ci/setup-debian-chroot.sh "$DEBIAN"
- name: Download a Build Artifact
uses: actions/download-artifact@v3
with:
name: ExtractionOCaml-sid
path: src/ExtractionOCaml
- name: make binaries executable
run: git check-ignore src/ExtractionOCaml/* | grep -v '\.' | xargs chmod +x
- name: make only-test-amd64-files
shell: in-debian-chroot.sh {0}
run: etc/ci/github-actions-make.sh -j2 only-test-amd64-files SLOWEST_FIRST=1
env:
ALLOW_DIFF: 1

debian-check-all:
runs-on: ubuntu-latest
needs: [build, test-amd64]
needs: [build]
if: always()
steps:
- run: echo 'build passed'
if: ${{ needs.build.result == 'success' }}
- run: echo 'test-amd64 passed'
if: ${{ needs.test-amd64.result == 'success' }}
- run: echo 'build failed' && false
if: ${{ needs.build.result != 'success' }}
- run: echo 'test-amd64 failed' && false
if: ${{ needs.test-amd64.result != 'success' }}
2 changes: 1 addition & 1 deletion .github/workflows/coq-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
name: ExtractionOCaml-master
path: src/ExtractionOCaml
- name: make binaries executable
run: chmod +x src/ExtractionOCaml/*
run: git check-ignore src/ExtractionOCaml/* | grep -v '\.' | xargs chmod +x
- name: only-test-amd64-files
run: etc/ci/github-actions-make.sh -f Makefile.examples -j2 only-test-amd64-files SLOWEST_FIRST=1
env:
Expand Down

0 comments on commit a6d9e65

Please sign in to comment.