Skip to content

Commit

Permalink
workflows: Move i386 clang check-memory run to amd64
Browse files Browse the repository at this point in the history
In recent Debian testing, valgrind now shows a gazillion
Memcheck:{Cond,Value4} errors all over the place: in GMP, GnuTLS, glib
hashtables, and even strcmp().

Give up at last, and run valgrind on 64 bit only. This also becomes less
important with us moving more and more code away from C.

Also stop running distcheck on clang and i386 -- things that break the
"dist" part of it are almost always platform independent.

Change the order in unit-tests-refresh.yml to match the order in
unit-tests.yml to reduce confusion.
  • Loading branch information
martinpitt committed Aug 23, 2023
1 parent 853f287 commit 90a27b9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/unit-tests-refresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,30 @@ jobs:
timeout-minutes: 10
run: containers/unit-tests/build

- name: Run pytest-cov test
timeout-minutes: 15
run: containers/unit-tests/start --verbose --env=CC=gcc --image-tag=latest --make pytest-cov

- name: Run amd64 gcc check-memory test
timeout-minutes: 20
run: containers/unit-tests/start --verbose --env=CC=gcc --image-tag=latest --make check-memory

- name: Run i386 clang check-memory test
- name: Run amd64 clang check-memory test
timeout-minutes: 20
# HACK: https://bugs.kde.org/show_bug.cgi?id=452758
run: containers/unit-tests/start --verbose --env=CC=clang --env=CFLAGS='-O2 -gdwarf-4' --image-tag=i386 --make check-memory
run: containers/unit-tests/start --verbose --env=CC=clang --env=CFLAGS='-O2 -gdwarf-4' --image-tag=latest --make check-memory

- name: Run i386 clang check test
timeout-minutes: 15
run: containers/unit-tests/start --verbose --env=CC=clang --image-tag=i386 --make check

- name: Run amd64 clang distcheck test
- name: Run i386 gcc check test
timeout-minutes: 15
run: containers/unit-tests/start --verbose --env=CC=clang --image-tag=latest --make distcheck
run: containers/unit-tests/start --verbose --env=CC=clang --image-tag=i386 --make check

- name: Run i386 gcc distcheck test
- name: Run amd64 gcc check/distcheck test
timeout-minutes: 15
run: containers/unit-tests/start --verbose --env=CC=clang --image-tag=i386 --make distcheck
run: "containers/unit-tests/start --verbose --env=CC=clang --image-tag=i386 --make 'check distcheck'"

- name: Run pytest-cov test
timeout-minutes: 15
run: containers/unit-tests/start --verbose --env=CC=gcc --image-tag=latest --make pytest-cov

- name: Log into container registry
run: podman login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ jobs:
strategy:
matrix:
startarg:
- { make: 'check-memory', cc: 'clang', tag: 'i386' }
# avoid check-memory on i386, it has literally thousands of uninteresting/wrong errors
- { make: 'check-memory', cc: 'clang', tag: 'latest' }
- { make: 'check-memory', cc: 'gcc', tag: 'latest' }
- { make: 'distcheck', cc: 'clang', tag: 'latest' }
- { make: 'distcheck', cc: 'gcc', tag: 'i386' }
- { make: 'check', cc: 'clang', tag: 'i386' }
- { make: 'check ', cc: 'gcc', tag: 'i386' }
- { make: 'check distcheck', cc: 'gcc', tag: 'latest' }
- { make: 'pytest-cov', cc: 'gcc', tag: 'latest' }
- { make: 'check', cc: 'gcc', tag: 'latest' }
fail-fast: false
timeout-minutes: 60
steps:
Expand Down

0 comments on commit 90a27b9

Please sign in to comment.