aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2025-01-11 19:09:48 +0100
committerGitHub <noreply@github.com>2025-01-11 19:09:48 +0100
commit655360728b928d285b9b1c6d38aafe514dcb887d (patch)
tree6c0f72d564c9df43b27352c2cfac178222289914 /.github/workflows/build.yml
parent957a05050078e9d7fd92d6175a9f693ac649ba8f (diff)
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)
Diffstat (limited to '.github/workflows/build.yml')
1 files changed, 1 insertions, 9 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 321deb6b0..766e7d3af 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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]