mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-30 07:59:49 +00:00
Make CI faster (#2662)
Right now the CI takes ~30 minutes; the goal is to have it ending in < 15 min. The basic trick is to run the longer jobs (no_x86_64 and masan) only with the recently updated pcaps. The same jobs will run again on schedule (every night) testing all the traces. This way the CI will be "green" (hopefully!) earlier while pushing new commit/PR; full tests are simply delayed. Details: when `NDPI_TEST_ONLY_RECENTLY_UPDATED_PCAPS` is set, `tests/do.sh` checks only the latest 10 pcaps (i.e. the more recent pcap added/updated) for *every* configuration. Notes that no_x86_64 and masan jobs run twice: when pushing/merging and on schedule (every night)
This commit is contained in:
parent
957a050500
commit
655360728b
4 changed files with 71 additions and 16 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
|
@ -130,13 +130,6 @@ jobs:
|
|||
msan: ""
|
||||
nBPF: ""
|
||||
global_context: "--disable-global-context-support"
|
||||
- compiler: "clang" # TODO: some issues with masan/clang/ubuntu-24.04
|
||||
os: ubuntu-22.04
|
||||
gcrypt: ""
|
||||
pcre: "--with-pcre2"
|
||||
maxminddb: "--with-maxminddb"
|
||||
msan: "--with-memory-sanitizer --disable-memory-track-origins"
|
||||
nBPF: ""
|
||||
- compiler: "cc"
|
||||
os: macOS-13
|
||||
gcrypt: ""
|
||||
|
|
@ -251,8 +244,7 @@ jobs:
|
|||
run: |
|
||||
NDPI_FORCE_PARALLEL_UTESTS=1 NDPI_SKIP_PARALLEL_BAR=1 ./tests/do.sh
|
||||
- name: Test nDPI [UNIT]
|
||||
# Some issues with masan + json-c. Disable the test as workaround
|
||||
if: ${{ !startsWith(matrix.msan, '--with-memory-sanitizer') && !startsWith(matrix.os, 'macos-14') && !startsWith(matrix.os, 'macos-15') }}
|
||||
if: ${{ !startsWith(matrix.os, 'macos-14') && !startsWith(matrix.os, 'macos-15') }}
|
||||
run: |
|
||||
./tests/do-unit.sh
|
||||
- name: Test nDPI [DGA]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue