Skip to content

Commit afd1ed7

Browse files
committed
[FLINK-36460] Expand the matrix for the smoke test.
The goal is to remove namespace from the main CI run based on apache#881 (comment)
1 parent 4f87bc2 commit afd1ed7

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ jobs:
6868
mvn -B verify -Dit.skip=false
6969
cd ..
7070
e2e_smoke_test:
71-
name: HTTP Client smoke test
71+
name: Operator smoke test
7272
runs-on: ubuntu-latest
7373
strategy:
7474
matrix:
7575
http-client: [ "okhttp", "jdk", "jetty", "vertx" ]
7676
version: ["v1_20"]
7777
mode: ["native"]
78-
namespace: ["default"]
79-
java-version: ["21"]
78+
namespace: ["default", "flink"]
79+
java-version: ["11", "17", "21"]
8080
test:
8181
- test_application_operations.sh
8282
steps:
@@ -107,12 +107,9 @@ jobs:
107107
docker images
108108
- name: Start the operator
109109
run: |
110-
if [[ "${{ matrix.test }}" == "test_flink_operator_ha.sh" ]]; then
111-
sed -i "s/# kubernetes.operator.leader-election.enabled: false/kubernetes.operator.leader-election.enabled: true/" helm/flink-kubernetes-operator/conf/flink-conf.yaml
112-
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
113-
sed -i "s/replicas: 1/replicas: 2/" helm/flink-kubernetes-operator/values.yaml
114-
fi
115-
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 }}
110+
source e2e-tests/utils.sh
111+
create_namespace flink
112+
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}"
116113
kubectl wait --for=condition=Available --timeout=120s -n ${{ matrix.namespace }} deploy/flink-kubernetes-operator
117114
kubectl get pods -n ${{ matrix.namespace }}
118115
- name: Run Flink e2e tests
@@ -139,10 +136,9 @@ jobs:
139136
version: ["v1_20","v1_19","v1_18","v1_17","v1_16"]
140137
namespace: ["default","flink"]
141138
mode: ["native", "standalone"]
142-
java-version: [ 11, 17, 21 ]
139+
java-version: [ 11 ]
143140
test:
144141
- test_application_kubernetes_ha.sh
145-
- test_application_operations.sh
146142
- test_dynamic_config.sh
147143
- test_sessionjob_kubernetes_ha.sh
148144
- test_sessionjob_operations.sh

0 commit comments

Comments
 (0)