Skip to content

Commit

Permalink
[FLINK-36460] Expand the matrix for the smoke test.
Browse files Browse the repository at this point in the history
The goal is to remove namespace from the main CI run based on apache#881 (comment)
  • Loading branch information
SamBarker committed Oct 14, 2024
1 parent bd18d4e commit eb088bc
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ jobs:
mvn -B verify -Dit.skip=false
cd ..
e2e_smoke_test:
name: HTTP Client smoke test
name: Operator smoke test
runs-on: ubuntu-latest
strategy:
matrix:
http-client: [ "okhttp", "jdk", "jetty", "vertx" ]
version: ["v1_20"]
mode: ["native"]
namespace: ["default"]
java-version: ["21"]
namespace: ["default", "flink"]
java-version: ["11", "17", "21"]
test:
- test_application_operations.sh
steps:
Expand Down Expand Up @@ -107,12 +107,9 @@ jobs:
docker images
- name: Start the operator
run: |
if [[ "${{ matrix.test }}" == "test_flink_operator_ha.sh" ]]; then
sed -i "s/# kubernetes.operator.leader-election.enabled: false/kubernetes.operator.leader-election.enabled: true/" helm/flink-kubernetes-operator/conf/flink-conf.yaml
sed -i "s/# kubernetes.operator.leader-election.lease-name: flink-operator-lease/kubernetes.operator.leader-election.lease-name: flink-operator-lease/" helm/flink-kubernetes-operator/conf/flink-conf.yaml
sed -i "s/replicas: 1/replicas: 2/" helm/flink-kubernetes-operator/values.yaml
fi
helm --debug install flink-kubernetes-operator -n ${{ matrix.namespace }} helm/flink-kubernetes-operator --set image.repository=flink-kubernetes-operator --set image.tag=ci-latest ${{ matrix.extraArgs }}
source e2e-tests/utils.sh
create_namespace flink
helm --debug install flink-kubernetes-operator -n ${{ matrix.namespace }} helm/flink-kubernetes-operator --set image.repository=flink-kubernetes-operator --set image.tag=ci-latest --create-namespace --set "watchNamespaces={default,flink}"
kubectl wait --for=condition=Available --timeout=120s -n ${{ matrix.namespace }} deploy/flink-kubernetes-operator
kubectl get pods -n ${{ matrix.namespace }}
- name: Run Flink e2e tests
Expand All @@ -139,10 +136,9 @@ jobs:
version: ["v1_20","v1_19","v1_18","v1_17","v1_16"]
namespace: ["default","flink"]
mode: ["native", "standalone"]
java-version: [ 11, 17, 21 ]
java-version: [ 11 ]
test:
- test_application_kubernetes_ha.sh
- test_application_operations.sh
- test_dynamic_config.sh
- test_sessionjob_kubernetes_ha.sh
- test_sessionjob_operations.sh
Expand Down

0 comments on commit eb088bc

Please sign in to comment.