Skip to content

Commit 10a3ee0

Browse files
committed
Run SLT tests nightly.
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
1 parent fead756 commit 10a3ee0

File tree

3 files changed

+63
-5
lines changed

3 files changed

+63
-5
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Notify Failures To Slack
2+
on:
3+
workflow_run:
4+
workflows: ["Java SLT Nightly"]
5+
types: [completed]
6+
branches:
7+
- main
8+
9+
jobs:
10+
on-failure:
11+
runs-on: ubuntu-latest
12+
if: github.event.workflow_run.conclusion == 'failure' || github.event.workflow_run.conclusion == 'timed_out'
13+
steps:
14+
- uses: ravsamhq/notify-slack-action@v2
15+
with:
16+
status: ${{ github.event.workflow_run.conclusion }}
17+
notification_title: " ${{github.event.workflow_run.name}} - ${{github.event.workflow_run.conclusion}} on ${{github.event.workflow_run.head_branch}} - <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|View Failure>"
18+
message_format: ":fire: *${{github.event.workflow_run.name}}* ${{github.event.workflow_run.conclusion}} in <${{github.server_url}}/${{github.repository}}/${{github.event.workflow_run.head_branch}}|${{github.repository}}>"
19+
footer: "Linked Repo <${{github.server_url}}/${{github.repository}}|${{github.repository}}> | <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|View Failure>"
20+
env:
21+
SLACK_WEBHOOK_URL: ${{ secrets.CI_FAILURE_TO_SLACK_WEBHOOK }}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Java SLT Nightly
2+
3+
on:
4+
schedule:
5+
- cron: "30 11 * * *" # 11:30 AM UTC daily
6+
7+
jobs:
8+
java-tests:
9+
name: Execute Java SLT
10+
runs-on: [self-hosted, skylake40]
11+
container:
12+
image: ghcr.io/feldera/feldera-dev:f4797ad926773a38483275405728a9eb3b9005b5
13+
options: --user=ubuntu
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
# The docker container when executed in the action runs with a different home directory
19+
# than we set in the dev container (?), hence this step is necessary (sigh)
20+
# https://github.com/actions/runner/issues/863
21+
- name: Rustup set default toolchain
22+
run: rustup default stable
23+
24+
- name: Cache Rust dependencies
25+
uses: Swatinem/rust-cache@v2
26+
27+
- name: Cache Maven dependencies
28+
uses: actions/cache@v4
29+
with:
30+
path: ~/.m2/repository
31+
key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: |
33+
maven-${{ runner.os }}-
34+
35+
# TODO: Avoid doing this twice and ideally download & reuse the JAR from build-java.yml workflow
36+
- name: Run build.sh
37+
run: ./build.sh
38+
working-directory: ./sql-to-dbsp-compiler
39+
40+
- name: Run SLT tests
41+
run: mvn test --no-transfer-progress -q -B -Dsurefire.failIfNoSpecifiedTests=false -Dtest=RotateTests
42+
working-directory: ./sql-to-dbsp-compiler

.github/workflows/test-java.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,3 @@ jobs:
3939
- name: Run mvn test
4040
run: mvn test --no-transfer-progress -q -B -pl SQL-compiler -Dsurefire.failIfNoSpecifiedTests=false -Dtest=!OtherTests.rustFmt
4141
working-directory: ./sql-to-dbsp-compiler
42-
43-
- name: Run SLT tests
44-
run: mvn test --no-transfer-progress -q -B -Dsurefire.failIfNoSpecifiedTests=false -Dtest=RotateTests
45-
working-directory: ./sql-to-dbsp-compiler
46-

0 commit comments

Comments
 (0)