Skip to content

Commit

Permalink
[FLINK-36332] Narrow down the matrix for httpclient testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamBarker committed Sep 26, 2024
1 parent 101cf46 commit 071042c
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
namespace: ["default","flink"]
mode: ["native", "standalone"]
java-version: [ 11, 17, 21 ]
http-client: [ "okhttp", "vertx", "jetty", "jdk" ]
http-client: [ "okhttp" ]
test:
- test_application_kubernetes_ha.sh
- test_application_operations.sh
Expand All @@ -102,6 +102,34 @@ jobs:
image: flink:1.17
- version: v1_16
image: flink:1.16
- version: v1_20
# Version isn't critical but should ideally be latest.
mode: "native"
namespace: "default"
test: test_application_operations.sh
http-client: "okhttp"
java-version: 21
- version: v1_20
# Version isn't critical but should ideally be latest.
mode: "native"
namespace: "default"
test: test_application_operations.sh
http-client: "vertx"
java-version: 21
- version: v1_20
# Version isn't critical but should ideally be latest.
mode: "native"
namespace: "default"
test: test_application_operations.sh
http-client: "jetty"
java-version: 21
- version: v1_20
# Version isn't critical but should ideally be latest.
mode: "native"
namespace: "default"
test: test_application_operations.sh
http-client: "jdk"
java-version: 21
exclude:
- namespace: default
test: test_multi_sessionjob.sh
Expand Down Expand Up @@ -176,7 +204,8 @@ jobs:
export SHELL=/bin/bash
export DOCKER_BUILDKIT=1
eval $(minikube -p minikube docker-env)
docker build --progress=plain --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-${{ matrix.http-client }}-latest --progress plain --build-arg HTTP_CLIENT=${{ matrix.http-client }} .
HTTP_CLIENT=${{ matrix.http-client }}
docker build --progress=plain --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-${{ matrix.http-client }}-latest --progress plain --build-arg HTTP_CLIENT="${HTTP_CLIENT:-okhttp}" .
docker images
- name: Start the operator
run: |
Expand All @@ -185,7 +214,7 @@ jobs:
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 }}
helm --debug install flink-kubernetes-operator -n ${{ matrix.namespace }} helm/flink-kubernetes-operator --set image.repository=flink-kubernetes-operator --set image.tag=ci-${{ matrix.http-client }}-latest ${{ matrix.extraArgs }}
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 Down

0 comments on commit 071042c

Please sign in to comment.