Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): simplify github actions execution #5657

Merged
merged 24 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4e044f0
chore(ci): simplify github actions execution
squakez Jun 18, 2024
b48734e
chore(ci): remove problematic flag
squakez Jun 18, 2024
3c3d869
chore(e2e): restructure tests to embed a global operator
squakez Jun 19, 2024
7192e37
chore(e2e): remove check structure
squakez Jun 20, 2024
293eee6
chore(e2e): add rest client call timeout
squakez Jun 20, 2024
277336d
fix(e2e): use kit namespace
squakez Jun 25, 2024
afca2ee
fix(e2e): check kit layout
squakez Jun 25, 2024
e58f52f
fix(e2e): don't panic if no operatorPod
squakez Jun 25, 2024
04125fa
chore(e2e): remove duplicated YAKS tests ...
squakez Jun 25, 2024
e6431de
chore(e2e): must use global operator
squakez Jun 26, 2024
5a028e5
fix(e2e): group refactoring
squakez Jun 26, 2024
966f4ff
chore(e2e): install namespaced operator
squakez Jun 26, 2024
bc75567
fix(cmd): remove operator id verification
squakez Jun 27, 2024
5c6c2cb
chore(e2e): don't build bundle unless install wf
squakez Jun 27, 2024
8b801bf
chore(e2e): enable custom conf operator
squakez Jun 28, 2024
e8e350f
chore(cmd): deprecate kamel install
squakez Jun 28, 2024
9f1659b
fix(e2e): let test install global operators
squakez Jun 28, 2024
24b7d56
fix(kustomize): support multiple operators
squakez Jun 28, 2024
dbc4f6f
chore(e2e): proper parallel flags setting
squakez Jul 1, 2024
48f5878
chore(e2e): parallel testing with 2 threads
squakez Jul 1, 2024
a534f9d
chore(e2e): more parallelism
squakez Jul 1, 2024
ad225c9
fix(e2e): remove uninstall unsupported methods
squakez Jul 1, 2024
0c318c7
fix(helm): account for operator id value
squakez Jul 1, 2024
561c328
fix(helm): force IntegrationPlatform override
squakez Jul 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 0 additions & 137 deletions .github/actions/e2e-builder/action.yml

This file was deleted.

135 changes: 0 additions & 135 deletions .github/actions/e2e-builder/exec-tests.sh

This file was deleted.

63 changes: 1 addition & 62 deletions .github/actions/e2e-common/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,6 @@ runs:
with:
cluster-config-data: ${{ inputs.cluster-config-data }}
cluster-kube-config-data: ${{ inputs.cluster-kube-config-data }}
#
# Try and ensure the cluster is in a vanilla state before
# starting in on an installation
#
- id: pre-clean-cluster
name: Pre Clean Cluster
uses: ./.github/actions/kamel-cleanup
if: ${{ always() }}
with:
catalog-source-name: ${{ steps.config-cluster.outputs.cluster-catalog-source-name }}
catalog-source-namespace: ${{ steps.config-cluster.outputs.cluster-catalog-source-namespace }}
image-namespace: ${{ steps.config-cluster.outputs.cluster-image-namespace }}
global-operator-namespace: ${{ steps.config-cluster.outputs.cluster-global-operator-namespace }}

- id: build-kamel
name: Build Kamel
Expand All @@ -69,50 +56,11 @@ runs:
image-registry-push-host: ${{ steps.config-cluster.outputs.cluster-image-registry-push-host }}
image-registry-pull-host: ${{ steps.config-cluster.outputs.cluster-image-registry-pull-host }}
image-namespace: ${{ steps.config-cluster.outputs.cluster-image-namespace }}
# Builds the bundle if an OLM is available - depends on cluster being tested
build-bundle: ${{ steps.config-cluster.outputs.cluster-has-olm }}
build-bundle: false
# Both can be empty and so catalog source will not be created
catalog-source-name: ${{ steps.config-cluster.outputs.cluster-catalog-source-name }}
catalog-source-namespace: ${{ steps.config-cluster.outputs.cluster-catalog-source-namespace }}

- id: install-kamel-cluster-setup
name: Install Kamel Cluster Setup
uses: ./.github/actions/kamel-install-cluster-setup
with:
kube-admin-user-ctx: ${{ steps.config-cluster.outputs.cluster-kube-admin-user-ctx }}

- id: preflight-test
name: Preflight Check Test
uses: ./.github/actions/kamel-preflight-test
with:
catalog-source-name: ${{ steps.config-cluster.outputs.cluster-catalog-source-name }}
catalog-source-namespace: ${{ steps.config-cluster.outputs.cluster-catalog-source-namespace }}
image-namespace: ${{ steps.config-cluster.outputs.cluster-image-namespace }}
image-registry-host: ${{ steps.config-cluster.outputs.cluster-image-registry-pull-host }}
image-name: ${{ steps.build-kamel.outputs.build-binary-local-image-name }}
image-registry-insecure: ${{steps.config-cluster.outputs.cluster-image-registry-insecure }}
image-version: ${{ steps.build-kamel.outputs.build-binary-local-image-version }}

- id: install-global-operator
name: "Install Global Operator"
if: ${{ steps.config-cluster.outputs.cluster-global-operator-namespace }}
uses: ./.github/actions/kamel-install-global-operator
with:
global-operator-namespace: ${{ steps.config-cluster.outputs.cluster-global-operator-namespace }}
catalog-source-name: ${{ steps.config-cluster.outputs.cluster-catalog-source-name }}
catalog-source-namespace: ${{ steps.config-cluster.outputs.cluster-catalog-source-namespace }}
image-namespace: ${{ steps.config-cluster.outputs.cluster-image-namespace }}
image-registry-host: ${{ steps.config-cluster.outputs.cluster-image-registry-pull-host }}
image-name: ${{ steps.build-kamel.outputs.build-binary-local-image-name }}
image-registry-insecure: ${{steps.config-cluster.outputs.cluster-image-registry-insecure }}
image-version: ${{ steps.build-kamel.outputs.build-binary-local-image-version }}

- id: report-problematic
name: List Tests Marked As Problematic
uses: ./.github/actions/kamel-report-problematic
with:
test-suite: global/common

- id: run-it
name: Run IT
shell: bash
Expand All @@ -130,12 +78,3 @@ runs:
-x "${{ env.CAMEL_K_TEST_SAVE_FAILED_TEST_NAMESPACE }}" \
-y "${{ inputs.smoke-test-only }}" \
-z "${{ inputs.with-custom-install }}"

- name: Cleanup
uses: ./.github/actions/kamel-cleanup
if: ${{ always() }}
with:
catalog-source-name: ${{ steps.config-cluster.outputs.cluster-catalog-source-name }}
catalog-source-namespace: ${{ steps.config-cluster.outputs.cluster-catalog-source-namespace }}
image-namespace: ${{ steps.config-cluster.outputs.cluster-image-namespace }}
global-operator-namespace: ${{ steps.config-cluster.outputs.cluster-global-operator-namespace }}
12 changes: 12 additions & 0 deletions .github/actions/e2e-common/exec-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,22 @@ export CAMEL_K_E2E_FAST_SETUP="true"
set -e
exit_code=0
if [ "${SMOKE_TEST_ONLY}" == "true" ]; then
kubectl create ns camel-k
REGISTRY="${KAMEL_INSTALL_REGISTRY}" make install-k8s-global
# Let's wait for the IntegrationPlatform to be ready before starting any operation
kubectl wait --for=jsonpath='{.status.phase}'=Ready itp camel-k -n camel-k --timeout=45s

DO_TEST_PREBUILD=false GOTESTFMT="-json 2>&1 | gotestfmt" make test-smoke || exit_code=1
elif [ "${CUSTOM_INSTALL_TEST}" == "true" ]; then
make install-crds

DO_TEST_PREBUILD=false GOTESTFMT="-json 2>&1 | gotestfmt" make test-advanced || exit_code=1
else
kubectl create ns camel-k
REGISTRY="${KAMEL_INSTALL_REGISTRY}" make install-k8s-global
# Let's wait for the IntegrationPlatform to be ready before starting any operation
kubectl wait --for=jsonpath='{.status.phase}'=Ready itp camel-k -n camel-k --timeout=45s

DO_TEST_PREBUILD=false GOTESTFMT="-json 2>&1 | gotestfmt" make test-common || exit_code=1
fi
set +e
Expand Down
Loading