From a9e5292fc5497c345682d803d681addcc59070f6 Mon Sep 17 00:00:00 2001 From: David Hummel <6109326+hummeltech@users.noreply.github.com> Date: Tue, 17 Nov 2026 15:13:54 -0700 Subject: [PATCH 1/2] ci: run full matrix on pull requests and `CI` branches - Remove `push.branches` filter in `build-and-test.yml` so `include` matrix entries and `Linux-Nix` run on all branch pushes while gating full matrices via `on_default_branch` - Update `on_default_branch` checks to evaluate `github.event_name == 'pull_request'` and `github.ref_name` so pull requests run the full build matrix - Trigger `flawfinder-analysis.yml`, `lint.yml`, and `sanitizers-and-warnings.yml` on `*CI*` branch pushes - Document why `clear_dirs_*` and `remove_tile_*` tests are excluded in `sanitizers-and-warnings.yml` --- .github/workflows/build-and-test.yml | 35 +++++++++++++++---- .github/workflows/flawfinder-analysis.yml | 1 + .github/workflows/lint.yml | 4 +++ .github/workflows/sanitizers-and-warnings.yml | 9 ++--- 4 files changed, 36 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c8488652..e4399a12 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -4,9 +4,6 @@ name: Build & Test on: pull_request: push: - branches: - - develop - - master jobs: Linux: @@ -32,7 +29,13 @@ jobs: - "quay.io/centos/centos:stream10" - "ubuntu:24.04" on_default_branch: - - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} + - >- + ${{ + github.event_name == 'pull_request' || + github.ref_name == 'master' || + github.ref_name == 'develop' || + contains(github.ref_name, 'CI') + }} include: - image: "debian:unstable" build_system: CMake @@ -220,7 +223,13 @@ jobs: compiler: - LLVM on_default_branch: - - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} + - >- + ${{ + github.event_name == 'pull_request' || + github.ref_name == 'master' || + github.ref_name == 'develop' || + contains(github.ref_name, 'CI') + }} include: - os: macos-26 build_system: CMake @@ -283,7 +292,13 @@ jobs: compiler: - LLVM on_default_branch: - - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} + - >- + ${{ + github.event_name == 'pull_request' || + github.ref_name == 'master' || + github.ref_name == 'develop' || + contains(github.ref_name, 'CI') + }} include: - freebsd_release: 15.1 build_system: CMake @@ -354,7 +369,13 @@ jobs: compiler: - LLVM on_default_branch: - - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} + - >- + ${{ + github.event_name == 'pull_request' || + github.ref_name == 'master' || + github.ref_name == 'develop' || + contains(github.ref_name, 'CI') + }} include: - openbsd_release: "8.0" build_system: CMake diff --git a/.github/workflows/flawfinder-analysis.yml b/.github/workflows/flawfinder-analysis.yml index 059d70f6..1591f293 100644 --- a/.github/workflows/flawfinder-analysis.yml +++ b/.github/workflows/flawfinder-analysis.yml @@ -7,6 +7,7 @@ on: branches: - develop - master + - "*CI*" jobs: flawfinder: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fbbb8c50..5db9ca5f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,10 @@ name: Lint on: pull_request: push: + branches: + - develop + - master + - "*CI*" jobs: clang-format: diff --git a/.github/workflows/sanitizers-and-warnings.yml b/.github/workflows/sanitizers-and-warnings.yml index 0acb0447..a197032b 100644 --- a/.github/workflows/sanitizers-and-warnings.yml +++ b/.github/workflows/sanitizers-and-warnings.yml @@ -7,6 +7,7 @@ on: branches: - develop - master + - "*CI*" jobs: Warnings: @@ -63,7 +64,8 @@ jobs: include: - sanitizers: address,undefined name: ASan + UBSan - # Includes the Apache/renderd integration tests (the ASan runtime is preloaded into httpd) + # Includes the Apache/renderd integration tests (the ASan runtime is preloaded into httpd), + # excluding cleanup tests that would delete `build/tests/logs` before it can be checked below test_options: --exclude-regex 'clear_dirs_.+|remove_tile_.+' --output-on-failure - sanitizers: thread name: TSan @@ -89,11 +91,6 @@ jobs: - name: Install dependencies uses: ./.github/actions/dependencies/install - # Unlike in containers, installing the packages on the host starts their system services, - # whose default ports (e.g. memcached on 11211) collide with the test services - - name: Stop system `apache2` & `memcached` services - run: sudo systemctl stop apache2 memcached || true - - name: Build `mod_tile` uses: ./.github/actions/cmake/build From c2ea0213f8e982ffc0390dae6f7f9cad1e832465 Mon Sep 17 00:00:00 2001 From: David Hummel <6109326+hummeltech@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:40:19 -0700 Subject: [PATCH 2/2] Correct plugins dir for AutoTools --- .github/workflows/install-package-and-test.yml | 4 ++-- docker/debian/Dockerfile.autotools | 4 ++-- docker/ubuntu/Dockerfile.autotools | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/install-package-and-test.yml b/.github/workflows/install-package-and-test.yml index 6befa3de..29efc036 100644 --- a/.github/workflows/install-package-and-test.yml +++ b/.github/workflows/install-package-and-test.yml @@ -47,8 +47,8 @@ jobs: mkdir -p /usr/share/renderd cp -av utils/example-map /usr/share/renderd/ cp -av etc/apache2/renderd-example-map.conf /etc/apache2/sites-available/renderd-example-map.conf - MAPNIK_INPUT=$(find /usr -type d -name input | grep mapnik) - sed -i "s#/usr/lib/mapnik/3.1/input#${MAPNIK_INPUT}#g" /etc/renderd.conf + MAPNIK_INPUT=$(find /usr -mindepth 1 -type d -name input | grep mapnik) + sed -i "s#plugins_dir=.*#plugins_dir=${MAPNIK_INPUT}#g" /etc/renderd.conf printf ' [example-map] URI=/tiles/renderd-example diff --git a/docker/debian/Dockerfile.autotools b/docker/debian/Dockerfile.autotools index bfae9ee9..a05cee98 100644 --- a/docker/debian/Dockerfile.autotools +++ b/docker/debian/Dockerfile.autotools @@ -94,8 +94,8 @@ COPY --from=builder \ ## Fix mapnik directories SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN sed \ - --expression "s#/usr/lib/mapnik/3.1/input#$(find /usr -mindepth 1 -type d -name input | grep mapnik)#g" \ - --expression "s#/usr/share/fonts/truetype#/usr/share/fonts#g" \ + --expression "s#plugins_dir=.*#plugins_dir=$(find /usr -mindepth 1 -type d -name input | grep mapnik)#g" \ + --expression "s#font_dir=.*#font_dir=/usr/share/fonts#g" \ /usr/local/etc/renderd.conf > /etc/renderd.conf SHELL ["/bin/sh", "-c"] diff --git a/docker/ubuntu/Dockerfile.autotools b/docker/ubuntu/Dockerfile.autotools index 3453fc7d..d496d143 100644 --- a/docker/ubuntu/Dockerfile.autotools +++ b/docker/ubuntu/Dockerfile.autotools @@ -88,8 +88,8 @@ COPY --from=builder \ ## Fix mapnik directories SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN sed \ - --expression "s#/usr/lib/mapnik/3.1/input#$(find /usr -mindepth 1 -type d -name input | grep mapnik)#g" \ - --expression "s#/usr/share/fonts/truetype#/usr/share/fonts#g" \ + --expression "s#plugins_dir=.*#plugins_dir=$(find /usr -mindepth 1 -type d -name input | grep mapnik)#g" \ + --expression "s#font_dir=.*#font_dir=/usr/share/fonts#g" \ /usr/local/etc/renderd.conf > /etc/renderd.conf SHELL ["/bin/sh", "-c"]