From aa9c67cfe2eac7f30362f66d8763f4dae19f6ce2 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 30 May 2025 11:32:36 +0200 Subject: [PATCH 01/10] Use Swift 6.1.1 compiler --- .devcontainer/Dockerfile | 2 +- .github/workflows/ci.yml | 4 ++-- .github/workflows/query-performance.yml | 2 +- Dockerfile | 4 ++-- LOCAL_DEVELOPMENT_SETUP.md | 2 +- Makefile | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index fd5219d69..011dc2cc6 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.gitlab.com/finestructure/spi-base:1.2.0 +FROM registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc # Install SPM build dependencies RUN apt-get update && apt-get install -y curl git make unzip \ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a914772b9..542c7076c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: name: Test runs-on: ubuntu-latest container: - image: registry.gitlab.com/finestructure/spi-base:1.2.0 + image: registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc options: --privileged steps: - name: GH Runner bug workaround @@ -137,7 +137,7 @@ jobs: name: Release build runs-on: ubuntu-latest container: - image: registry.gitlab.com/finestructure/spi-base:1.2.0 + image: registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc options: --privileged steps: - name: GH Runner bug workaround diff --git a/.github/workflows/query-performance.yml b/.github/workflows/query-performance.yml index 70b29c357..84e5f37e8 100644 --- a/.github/workflows/query-performance.yml +++ b/.github/workflows/query-performance.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true container: - image: registry.gitlab.com/finestructure/spi-base:1.2.0 + image: registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/Dockerfile b/Dockerfile index c90ff28dc..470968cbe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ # ================================ # Build image # ================================ -FROM registry.gitlab.com/finestructure/spi-base:1.2.0 as build +FROM registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc as build # Set up a build area WORKDIR /build @@ -61,7 +61,7 @@ RUN [ -d /build/Resources ] && { mv /build/Resources ./Resources && chmod -R a-w # ================================ # Run image # ================================ -FROM registry.gitlab.com/finestructure/spi-base:1.2.0 +FROM registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc # NB sas 2022-09-23: We're not using a dedicated `vapor` user to run the executable, because it # makes managing the data in the checkouts volume difficult. See diff --git a/LOCAL_DEVELOPMENT_SETUP.md b/LOCAL_DEVELOPMENT_SETUP.md index 7c2541439..6ac214e22 100644 --- a/LOCAL_DEVELOPMENT_SETUP.md +++ b/LOCAL_DEVELOPMENT_SETUP.md @@ -238,7 +238,7 @@ The trickiest part of this is to ensure the test or app container can connect to So, in order to run the tests in a Linux container run: ``` -docker run --rm -v "$PWD":/host -w /host --add-host=host.docker.internal:host-gateway registry.gitlab.com/finestructure/spi-base:1.2.0 swift test +docker run --rm -v "$PWD":/host -w /host --add-host=host.docker.internal:host-gateway registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc swift test ``` Make sure you use the most recent `spi-base` image. You can find the latest image name in the `test-docker` target, which also provides a convenient way to run all all tests in a docker container. diff --git a/Makefile b/Makefile index 5304330dd..56ff10ce3 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ test-docker: @# run tests inside a docker container docker run --rm -v "$(PWD)":/host -w /host \ --add-host=host.docker.internal:host-gateway \ - registry.gitlab.com/finestructure/spi-base:1.2.0 \ + registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc \ make test test-e2e: db-reset reconcile ingest analyze From f7e27f75016a340c53559a72707d4ecd2bb39def Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 30 May 2025 12:02:09 +0200 Subject: [PATCH 02/10] Add --enable-experimental-prebuilts flag --- .github/workflows/ci.yml | 2 +- Dockerfile | 1 + Makefile | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 542c7076c..999557b02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -150,7 +150,7 @@ jobs: # Since we're only pinging the version api endpoint, no database is needed and # we can just copy the development template to ensure the db env variables are set. cp .env.development.template .env.development - swift build -c release --static-swift-stdlib -Xlinker -ljemalloc + swift build -c release --static-swift-stdlib -Xlinker -ljemalloc --enable-experimental-prebuilts $(swift build --show-bin-path -c release)/Run serve --port 8080 --hostname 0.0.0.0 & sleep 10 echo Probing api/version... diff --git a/Dockerfile b/Dockerfile index 470968cbe..c5aa1bb6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,7 @@ COPY . . # Build everything, with optimizations, with static linking, and using jemalloc # N.B.: The static version of jemalloc is incompatible with the static Swift runtime. RUN swift build -c release \ + --enable-experimental-prebuilts \ --static-swift-stdlib \ -Xlinker -ljemalloc diff --git a/Makefile b/Makefile index 56ff10ce3..6a1a02157 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,8 @@ else endif build: - swift build --disable-automatic-resolution + swift build --disable-automatic-resolution --enable-experimental-prebuilts + run: swift run @@ -36,12 +37,14 @@ run: test: xcbeautify set -o pipefail \ && swift test --disable-automatic-resolution \ + --enable-experimental-prebuilts \ 2>&1 | ./xcbeautify --renderer github-actions test-query-performance: xcbeautify set -o pipefail \ && env RUN_QUERY_PERFORMANCE_TESTS=true \ swift test --disable-automatic-resolution \ + --enable-experimental-prebuilts \ --filter QueryPerformanceTests \ 2>&1 | tee test.log grep "ℹ️" test.log From 036db0aed63d61199f33259c86578c9b493460d4 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 6 Jun 2025 12:17:26 +0200 Subject: [PATCH 03/10] Cache release .build --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 999557b02..6e3c2f02c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,15 +142,39 @@ jobs: steps: - name: GH Runner bug workaround run: sysctl -w vm.mmap_rnd_bits=28 + - name: Checkout code uses: actions/checkout@v4 with: { 'fetch-depth': 0 } - - name: Test release + + - name: Install zstd (for faster caching) + run: apt-get update && apt-get install -y zstd + + - name: Restore .build + if: ${{ !(github.run_attempt > 1) }} # Because maybe the cache is causing issues + id: "restore-cache" + uses: actions/cache/restore@v4 + with: + path: .build + key: "spi-release-build-${{ runner.os }}-${{ github.event.after }}" + restore-keys: "spi-release-build-${{ runner.os }}-" + + - name: Build release run: | # Since we're only pinging the version api endpoint, no database is needed and # we can just copy the development template to ensure the db env variables are set. cp .env.development.template .env.development swift build -c release --static-swift-stdlib -Xlinker -ljemalloc --enable-experimental-prebuilts + + - name: Cache .build + if: steps.restore-cache.outputs.cache-hit != 'true' + uses: actions/cache/save@v4 + with: + path: .build + key: "spi-release-build-${{ runner.os }}-${{ github.event.after }}" + + - name: Test release + run: | $(swift build --show-bin-path -c release)/Run serve --port 8080 --hostname 0.0.0.0 & sleep 10 echo Probing api/version... From 3e87654ad443119b83557c5ca1c3ff6349ae5419 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 6 Jun 2025 12:41:54 +0200 Subject: [PATCH 04/10] Cache debug build --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e3c2f02c..453a2fcdd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,15 +34,35 @@ jobs: steps: - name: GH Runner bug workaround run: sysctl -w vm.mmap_rnd_bits=28 + - name: Checkout code uses: actions/checkout@v4 with: { 'fetch-depth': 0 } - - name: Install unzip - run: apt-get update && apt-get install -y unzip + + - name: Install unzip (for tests) and zstd (for faster caching) + run: apt-get update && apt-get install -y unzip zstd + + - name: Restore .build + if: ${{ !(github.run_attempt > 1) }} # Because maybe the cache is causing issues + id: "restore-cache" + uses: actions/cache/restore@v4 + with: + path: .build + key: "spi-debug-build-${{ runner.os }}-${{ github.event.after }}" + restore-keys: "spi-debug-build-${{ runner.os }}-" + - name: Run tests run: cp .env.testing.template .env.testing && make test env: COLLECTION_SIGNING_PRIVATE_KEY: ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }} + + - name: Cache .build + if: steps.restore-cache.outputs.cache-hit != 'true' + uses: actions/cache/save@v4 + with: + path: .build + key: "spi-debug-build-${{ runner.os }}-${{ github.event.after }}" + services: spi_test_0: image: postgres:16-alpine @@ -172,7 +192,7 @@ jobs: with: path: .build key: "spi-release-build-${{ runner.os }}-${{ github.event.after }}" - + - name: Test release run: | $(swift build --show-bin-path -c release)/Run serve --port 8080 --hostname 0.0.0.0 & From 1cc688983b5fc16efda5408a1402799811f2f720 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 6 Jun 2025 13:15:03 +0200 Subject: [PATCH 05/10] Use 1.2.2 spi-base image with xcbeautify installed --- .devcontainer/Dockerfile | 2 +- .github/workflows/ci.yml | 4 ++-- .github/workflows/query-performance.yml | 2 +- Dockerfile | 4 ++-- LOCAL_DEVELOPMENT_SETUP.md | 2 +- Makefile | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 011dc2cc6..1714f8073 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc +FROM registry.gitlab.com/finestructure/spi-base:1.2.2 # Install SPM build dependencies RUN apt-get update && apt-get install -y curl git make unzip \ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 453a2fcdd..d4f202c76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: name: Test runs-on: ubuntu-latest container: - image: registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc + image: registry.gitlab.com/finestructure/spi-base:1.2.2 options: --privileged steps: - name: GH Runner bug workaround @@ -157,7 +157,7 @@ jobs: name: Release build runs-on: ubuntu-latest container: - image: registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc + image: registry.gitlab.com/finestructure/spi-base:1.2.2 options: --privileged steps: - name: GH Runner bug workaround diff --git a/.github/workflows/query-performance.yml b/.github/workflows/query-performance.yml index 84e5f37e8..37bc5b2a3 100644 --- a/.github/workflows/query-performance.yml +++ b/.github/workflows/query-performance.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true container: - image: registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc + image: registry.gitlab.com/finestructure/spi-base:1.2.2 steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/Dockerfile b/Dockerfile index c5aa1bb6d..1bbfdc321 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ # ================================ # Build image # ================================ -FROM registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc as build +FROM registry.gitlab.com/finestructure/spi-base:1.2.2 as build # Set up a build area WORKDIR /build @@ -62,7 +62,7 @@ RUN [ -d /build/Resources ] && { mv /build/Resources ./Resources && chmod -R a-w # ================================ # Run image # ================================ -FROM registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc +FROM registry.gitlab.com/finestructure/spi-base:1.2.2 # NB sas 2022-09-23: We're not using a dedicated `vapor` user to run the executable, because it # makes managing the data in the checkouts volume difficult. See diff --git a/LOCAL_DEVELOPMENT_SETUP.md b/LOCAL_DEVELOPMENT_SETUP.md index 6ac214e22..3387a4d58 100644 --- a/LOCAL_DEVELOPMENT_SETUP.md +++ b/LOCAL_DEVELOPMENT_SETUP.md @@ -238,7 +238,7 @@ The trickiest part of this is to ensure the test or app container can connect to So, in order to run the tests in a Linux container run: ``` -docker run --rm -v "$PWD":/host -w /host --add-host=host.docker.internal:host-gateway registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc swift test +docker run --rm -v "$PWD":/host -w /host --add-host=host.docker.internal:host-gateway registry.gitlab.com/finestructure/spi-base:1.2.2 swift test ``` Make sure you use the most recent `spi-base` image. You can find the latest image name in the `test-docker` target, which also provides a convenient way to run all all tests in a docker container. diff --git a/Makefile b/Makefile index 6a1a02157..67161fdb0 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ test-docker: @# run tests inside a docker container docker run --rm -v "$(PWD)":/host -w /host \ --add-host=host.docker.internal:host-gateway \ - registry.gitlab.com/finestructure/spi-base:224946a41aedd5106245666d7261a5218ceac0fc \ + registry.gitlab.com/finestructure/spi-base:1.2.2 \ make test test-e2e: db-reset reconcile ingest analyze From cde8292bf1d5a33cd0fa0cc178ca442c876d8cc4 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 6 Jun 2025 13:16:56 +0200 Subject: [PATCH 06/10] Don't build xcbeautify, it's now in the base container --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 67161fdb0..b32b7a0d7 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ test: xcbeautify set -o pipefail \ && swift test --disable-automatic-resolution \ --enable-experimental-prebuilts \ - 2>&1 | ./xcbeautify --renderer github-actions + 2>&1 | xcbeautify --renderer github-actions test-query-performance: xcbeautify set -o pipefail \ @@ -56,10 +56,7 @@ test-fast: swift test --disable-automatic-resolution xcbeautify: - rm -rf .build/checkouts/xcbeautify - git clone https://github.com/cpisciotta/xcbeautify.git .build/checkouts/xcbeautify - cd .build/checkouts/xcbeautify && git checkout 2.25.1 && make build - binpath=`cd .build/checkouts/xcbeautify && swift build -c release --show-bin-path` && ln -sf $$binpath/xcbeautify + command -v xcbeautify docker-build: version docker build -t $(DOCKER_IMAGE):$(VERSION) . From ae363f24d3ee019c03c587de1236086087069e75 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 6 Jun 2025 13:27:48 +0200 Subject: [PATCH 07/10] Cache .build after building tests, before running them --- .github/workflows/ci.yml | 11 +++++++---- Makefile | 15 ++++++++++++--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4f202c76..7c4b6c6d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,10 +51,8 @@ jobs: key: "spi-debug-build-${{ runner.os }}-${{ github.event.after }}" restore-keys: "spi-debug-build-${{ runner.os }}-" - - name: Run tests - run: cp .env.testing.template .env.testing && make test - env: - COLLECTION_SIGNING_PRIVATE_KEY: ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }} + - name: Build tests + run: cp .env.testing.template .env.testing && make build-tests - name: Cache .build if: steps.restore-cache.outputs.cache-hit != 'true' @@ -62,6 +60,11 @@ jobs: with: path: .build key: "spi-debug-build-${{ runner.os }}-${{ github.event.after }}" + + - name: Run tests + run: cp .env.testing.template .env.testing && make run-tests + env: + COLLECTION_SIGNING_PRIVATE_KEY: ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }} services: spi_test_0: diff --git a/Makefile b/Makefile index b32b7a0d7..8fecd9e69 100644 --- a/Makefile +++ b/Makefile @@ -30,16 +30,25 @@ endif build: swift build --disable-automatic-resolution --enable-experimental-prebuilts - run: swift run -test: xcbeautify +build-tests: xcbeautify + set -o pipefail \ + && swift build --build-tests \ + --disable-automatic-resolution \ + --enable-experimental-prebuilts \ + 2>&1 | xcbeautify --renderer github-actions + +run-tests: xcbeautify set -o pipefail \ - && swift test --disable-automatic-resolution \ + && swift test --skip-build \ + --disable-automatic-resolution \ --enable-experimental-prebuilts \ 2>&1 | xcbeautify --renderer github-actions +test: build-tests run-tests + test-query-performance: xcbeautify set -o pipefail \ && env RUN_QUERY_PERFORMANCE_TESTS=true \ From b6237829b87478a190d07363673986540b748852 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 6 Jun 2025 13:36:22 +0200 Subject: [PATCH 08/10] Cache query performance test build artefacts --- .github/workflows/query-performance.yml | 27 ++++++++++++++++++++++--- Makefile | 7 +++++-- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/query-performance.yml b/.github/workflows/query-performance.yml index 37bc5b2a3..d3929e449 100644 --- a/.github/workflows/query-performance.yml +++ b/.github/workflows/query-performance.yml @@ -33,8 +33,29 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: { 'fetch-depth': 0 } - - name: Install unzip - run: apt-get update && apt-get install -y unzip + + - name: Install unzip (for tests) and zstd (for faster caching) + run: apt-get update && apt-get install -y unzip zstd + + - name: Restore .build + if: ${{ !(github.run_attempt > 1) }} # Because maybe the cache is causing issues + id: "restore-cache" + uses: actions/cache/restore@v4 + with: + path: .build + key: "spi-query-performance-build-${{ runner.os }}-${{ github.event.after }}" + restore-keys: "spi-query-performance-build-${{ runner.os }}-" + + - name: Build tests + run: cp .env.testing.template .env.testing && make build-tests + + - name: Cache .build + if: steps.restore-cache.outputs.cache-hit != 'true' + uses: actions/cache/save@v4 + with: + path: .build + key: "spi-query-performance-build-${{ runner.os }}-${{ github.event.after }}" + - name: Run tests run: | echo " @@ -45,4 +66,4 @@ jobs: DATABASE_USE_TLS=true DATABASE_USERNAME=spi_dev " >> .env.staging - make test-query-performance + make run-query-performance-tests diff --git a/Makefile b/Makefile index 8fecd9e69..927dc5ed4 100644 --- a/Makefile +++ b/Makefile @@ -49,16 +49,19 @@ run-tests: xcbeautify test: build-tests run-tests -test-query-performance: xcbeautify +run-query-performance-tests: set -o pipefail \ && env RUN_QUERY_PERFORMANCE_TESTS=true \ - swift test --disable-automatic-resolution \ + swift test --skip-build \ + --disable-automatic-resolution \ --enable-experimental-prebuilts \ --filter QueryPerformanceTests \ 2>&1 | tee test.log grep "ℹ️" test.log grep -v "\] Compiling" test.log | ./xcbeautify --renderer github-actions +test-query-performance: build-tests run-query-performance-tests + test-fast: @echo Skipping image snapshot tests @echo Running without --sanitize=thread From 351e27e3da0331bc8ddaf10c5ee6786cb3e087a2 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 6 Jun 2025 13:54:20 +0200 Subject: [PATCH 09/10] Update queryPerformance_12_Search_refresh expectation --- Tests/AppTests/QueryPerformanceTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/AppTests/QueryPerformanceTests.swift b/Tests/AppTests/QueryPerformanceTests.swift index 9d3d5d06e..ec1127a1c 100644 --- a/Tests/AppTests/QueryPerformanceTests.swift +++ b/Tests/AppTests/QueryPerformanceTests.swift @@ -180,7 +180,7 @@ struct QueryPerformanceTests { JOIN versions v ON v.package_id = p.id WHERE v.reference ->> 'branch' = r.default_branch """) - try await assertQueryPerformance(query, expectedCost: 150_000, variation: 5000) + try await assertQueryPerformance(query, expectedCost: 160_000, variation: 5000) } } From f16da2a3298bce97cdad9a103693a818d46f2d27 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 6 Jun 2025 14:01:17 +0200 Subject: [PATCH 10/10] Avoid rebuild due to change in env variable --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 927dc5ed4..0d5c210b8 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,15 @@ run-tests: xcbeautify test: build-tests run-tests +build-query-performance-tests: + set -o pipefail \ + && env RUN_QUERY_PERFORMANCE_TESTS=true \ + swift build --build-tests \ + --disable-automatic-resolution \ + --enable-experimental-prebuilts \ + --filter QueryPerformanceTests \ + 2>&1 | xcbeautify --renderer github-actions + run-query-performance-tests: set -o pipefail \ && env RUN_QUERY_PERFORMANCE_TESTS=true \ @@ -58,9 +67,9 @@ run-query-performance-tests: --filter QueryPerformanceTests \ 2>&1 | tee test.log grep "ℹ️" test.log - grep -v "\] Compiling" test.log | ./xcbeautify --renderer github-actions + grep -v "\] Compiling" test.log | xcbeautify --renderer github-actions -test-query-performance: build-tests run-query-performance-tests +test-query-performance: build-query-performance-tests run-query-performance-tests test-fast: @echo Skipping image snapshot tests