Skip to content

Add data-availability triggering for TableTriggers #865

Add data-availability triggering for TableTriggers

Add data-availability triggering for TableTriggers #865

name: Build and Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
- name: Build
run: make build
- name: Jacoco Report to PR
id: jacoco
uses: madrapps/jacoco-report@v1.7.2
with:
paths: ${{ github.workspace }}/build/reports/jacoco/aggregate/jacocoAggregateReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: Code Coverage
min-coverage-overall: 40
min-coverage-changed-files: 60
pass-emoji: ':green_circle:'
update-comment: true
- name: Install kind
uses: helm/kind-action@v1.4.0
with:
install_only: true
- name: Run Integration Tests
run: make integration-tests
- name: Capture Integration Reports
if: failure()
uses: actions/upload-artifact@v6
with:
name: reports
path: |
**/build/reports/tests/intTest/
- name: Capture Cluster State
if: always()
run: |
kubectl get pods
kubectl get svc
kubectl get deployments
kubectl get pods -n kafka
kubectl get svc -n kafka
kubectl get deployments -n kafka
kubectl get kafkas -n kafka
kubectl get flinkdeployments
kubectl get subscriptions
kubectl get pipelines
kubectl get tabletemplates
kubectl get jobtemplates
kubectl get tabletriggers
kubectl get cronjobs
kubectl get jobs
- name: Capture Flink Job Logs
if: always()
run: |
kubectl logs $(kubectl get pods -l component=jobmanager -o name) --since=0s || echo "skipped."
kubectl logs $(kubectl get pods -l component=taskmanager -o name) --since=0s || echo "skipped."
- name: Capture Hoptimator Operator Logs
if: always()
run: kubectl logs $(kubectl get pods -l app=hoptimator-operator -o name)
- name: Capture Flink Operator Logs
if: always()
run: kubectl logs $(kubectl get pods -l app.kubernetes.io/name=flink-kubernetes-operator -o name)
- name: Capture Flink Job Logs
if: always()
run: kubectl logs $(kubectl get pods -l app.kubernetes.io/name=flink-kubernetes-operator -o name)