Skip to content

Commit f5c616f

Browse files
committed
[ci] Add dry-run mode.
Doesn't run tests, just builds everything. Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
1 parent 553c659 commit f5c616f

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

.github/workflows/check-failures.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ jobs:
1919
footer: "Linked Repo <${{github.server_url}}/${{github.repository}}|${{github.repository}}> | <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|View Failure>"
2020
env:
2121
SLACK_WEBHOOK_URL: ${{ secrets.CI_FAILURE_TO_SLACK_WEBHOOK }}
22+
if: ${{ vars.CI_DRY_RUN != 'true' }}

.github/workflows/ci-pre-mergequeue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
key: pre-commit-3|${{ hashFiles('.pre-commit-config.yaml') }}
3333
- run: pre-commit run --show-diff-on-failure --color=always --all-files
3434
shell: bash
35+
if: ${{ vars.CI_DRY_RUN != 'true' }}
3536
- name: Print sccache stats
3637
run: sccache --show-stats
3738
- uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403

.github/workflows/test-adapters.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686

8787
# Pubsub tests are only supported on x86_64, see below
8888
- name: Run adapters tests
89+
if: ${{ vars.CI_DRY_RUN != 'true' }}
8990
run: |
9091
source .venv/bin/activate
9192
../../build/dbsp_adapters-* --skip pubsub
@@ -134,6 +135,7 @@ jobs:
134135
run: chmod +x ./build/*
135136

136137
- name: Run adapters pubsub tests
138+
if: ${{ vars.CI_DRY_RUN != 'true' }}
137139
run: ../../build/dbsp_adapters-* pubsub
138140
working-directory: crates/adapters
139141
env:

.github/workflows/test-integration.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,30 @@ jobs:
8585
run: chmod +x ./build/*
8686

8787
- name: Validate and run packaged demos
88+
if: ${{ vars.CI_DRY_RUN != 'true' }}
8889
run: |
8990
(cd demo/packaged && uv run validate-preamble.py sql/*.sql)
9091
uv run demo/all-packaged/run.py --api-url http://pipeline-manager:8080
9192
env:
9293
PYTHONPATH: ${{ github.workspace }}/python
9394

9495
- name: Run manager tests
96+
if: ${{ vars.CI_DRY_RUN != 'true' }}
9597
run: ./build/integration_test-*
9698
env:
9799
TEST_FELDERA_URL: http://pipeline-manager:8080
98100
RUST_BACKTRACE: 1
99101

100102
- name: Run python tests
103+
if: ${{ vars.CI_DRY_RUN != 'true' }}
101104
run: uv run --locked pytest . --timeout=600
102105
working-directory: python
103106
env:
104107
FELDERA_BASE_URL: http://pipeline-manager:8080
105108
IN_CI: 1 # We use this flag to skip some kafka tests in the python code base
106109

107110
- name: Run python aggregate tests
111+
if: ${{ vars.CI_DRY_RUN != 'true' }}
108112
run: uv run --locked ./tests/aggregate_tests/main.py
109113
working-directory: python
110114
env:

.github/workflows/test-java-nightly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ jobs:
3838
3939
# TODO: Avoid doing this twice and ideally download & reuse the JAR from build-java.yml workflow
4040
- name: Run build.sh
41+
if: ${{ vars.CI_DRY_RUN != 'true' }}
4142
run: ./build.sh
4243
working-directory: ./sql-to-dbsp-compiler
4344

4445
- name: Run SLT tests
46+
if: ${{ vars.CI_DRY_RUN != 'true' }}
4547
run: mvn test --no-transfer-progress -q -B -Dsurefire.failIfNoSpecifiedTests=false -Dtest=RotateTests
4648
working-directory: ./sql-to-dbsp-compiler

.github/workflows/test-java.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ jobs:
3535
- name: Run build.sh
3636
run: ./build.sh
3737
working-directory: ./sql-to-dbsp-compiler
38+
if: ${{ vars.CI_DRY_RUN != 'true' }}
3839

3940
- name: Run mvn test
4041
run: mvn test --no-transfer-progress -q -B -pl SQL-compiler -Dsurefire.failIfNoSpecifiedTests=false
4142
working-directory: ./sql-to-dbsp-compiler
4243
env:
4344
RUSTFLAGS: ""
45+
if: ${{ vars.CI_DRY_RUN != 'true' }}

.github/workflows/test-unit.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,34 +37,42 @@ jobs:
3737

3838
# Remove if https://github.com/actions/upload-artifact/issues/38 ever gets fixed
3939
- name: Make binaries executable
40+
if: ${{ vars.CI_DRY_RUN != 'true' }}
4041
run: chmod +x ./build/*
4142

4243
- name: feldera-types
44+
if: ${{ vars.CI_DRY_RUN != 'true' }}
4345
run: ./build/feldera_types-*
4446

4547
- name: dbsp
48+
if: ${{ vars.CI_DRY_RUN != 'true' }}
4649
run: ./build/dbsp-*
4750

4851
- name: feldera-fxp
4952
run: ./build/feldera_fxp-*
5053

5154
- name: feldera-sqllib
55+
if: ${{ vars.CI_DRY_RUN != 'true' }}
5256
run: ./build/feldera_sqllib-*
5357

5458
- name: feldera-ir
59+
if: ${{ vars.CI_DRY_RUN != 'true' }}
5560
run: ./build/feldera_ir-*
5661

5762
- name: readers
63+
if: ${{ vars.CI_DRY_RUN != 'true' }}
5864
run: ../../../build/readers-*
5965
# `readers` needs some find files relative to its source directory
6066
working-directory: sql-to-dbsp-compiler/lib/readers
6167

6268
- name: dbsp_nexmark
69+
if: ${{ vars.CI_DRY_RUN != 'true' }}
6370
run: ../../build/dbsp_nexmark-*
6471
# `dbsp_nexmark` needs some find files relative to its source directory
6572
working-directory: crates/nexmark
6673

6774
- name: nexmark
75+
if: ${{ vars.CI_DRY_RUN != 'true' }}
6876
run: |
6977
../../build/nexmark-* ${{ env.NEXMARK_ARGS }}
7078
../../build/nexmark-* ${{ env.NEXMARK_ARGS }} --storage 10000

0 commit comments

Comments
 (0)