Minimal integration test for bundle installation.#748
Minimal integration test for bundle installation.#748AdamSaleh wants to merge 28 commits intorh-gitops-midstream:release-1.20from
Conversation
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
…ops-midstream#746) * Add script and gha automation to build agent helm-chart Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> * Modify ci triggers Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com> --------- Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
|
/retest |
1 similar comment
|
/retest |
|
/retest |
1 similar comment
|
/retest |
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
svghadi
left a comment
There was a problem hiding this comment.
When is this integration test going to run? on component build or on bundle build?
| application: gitops-main | ||
| contexts: | ||
| - description: bundle testing | ||
| name: component_bundle |
There was a problem hiding this comment.
Can you verify these values? I think the application should be gitops-1-20 and component should be name of the bundle component.
There was a problem hiding this comment.
You are right about the application. The component_bundle is the context so that it catches all the changes. Currently if you change any of the application references, it shoul make you a new testing bundle that contains it and run tests on that.
I will point it to 1.20
| - name: url | ||
| value: https://github.com/rh-gitops-midstream/release | ||
| - name: revision | ||
| value: main | ||
| - name: pathInRepo | ||
| value: /.tekton/integration-tests/pipelines/gitops-bundle-integration-test-pipeline.yaml No newline at end of file |
There was a problem hiding this comment.
Should the values point to release-1.20 branch and the pipeline name added in this PR?
There was a problem hiding this comment.
Yeah, I used to develop it against 1.20 branch
…ate tarball (rh-gitops-midstream#653) * build microshift-gitops using pre-build-script custom task to create tarball * changed script to force rebuild * updated to 1.19.2 images references
|
@svghadi on second note, I figured I will get this merged first and then I will do a followup where I will create the scenario and point the steps to the rh-gitops-midstream/release instead of my fork. |
| name: gitops-bundle-lowest-parallel-integration-test-pipeline | ||
| spec: | ||
| description: | | ||
| An integration test which provisions an ephemeral Hypershift cluster and deploys an Operator |
There was a problem hiding this comment.
| An integration test which provisions an ephemeral Hypershift cluster and deploys an Operator | |
| An integration test which provisions an ephemeral Hypershift cluster and deploys the Openshift GitOps operator |
| oc get csv -n "${OPERATOR_NAMESPACE}" -o wide 2>/dev/null || echo "No CSVs found" | ||
|
|
||
| echo -e "\n[CatalogSources]" | ||
| oc get catalogsources -n "${OPERATOR_NAMESPACE}" 2>/dev/null || echo "No catalogsources found" |
There was a problem hiding this comment.
| oc get catalogsources -n "${OPERATOR_NAMESPACE}" 2>/dev/null || echo "No catalogsources found" | |
| oc get catalogsources -n openshift-marketplace 2>/dev/null || echo "No catalogsources found" |
|
|
||
| echo -e "\n[Operator Pod Logs (last 100 lines)]" | ||
| oc logs -n "${OPERATOR_NAMESPACE}" --all-containers=true --prefix=true --tail=100 \ | ||
| --selector='control-plane=controller-manager' --ignore-errors=true 2>/dev/null || \ |
There was a problem hiding this comment.
| --selector='control-plane=controller-manager' --ignore-errors=true 2>/dev/null || \ | |
| --selector='control-plane=gitops-operator' --ignore-errors=true 2>/dev/null || \ |
| oc logs -n "${OPERATOR_NAMESPACE}" --all-containers=true --prefix=true --tail=100 \ | ||
| -l 'app' --ignore-errors=true 2>/dev/null || \ | ||
| echo "No logs available" |
There was a problem hiding this comment.
| oc logs -n "${OPERATOR_NAMESPACE}" --all-containers=true --prefix=true --tail=100 \ | |
| -l 'app' --ignore-errors=true 2>/dev/null || \ | |
| echo "No logs available" |
|
|
||
| echo -e "\n[Recent Pod Logs (last 50 lines)]" | ||
| oc logs -n "${NAMESPACE}" --all-containers=true --prefix=true --tail=50 \ | ||
| -l 'app.kubernetes.io/part-of=argocd' --ignore-errors=true 2>/dev/null || \ |
There was a problem hiding this comment.
I don't think we use this label
| echo -e "\n[Recent Pod Logs (last 50 lines)]" | ||
| oc logs -n "${NAMESPACE}" --all-containers=true --prefix=true --tail=50 \ | ||
| -l 'app.kubernetes.io/part-of=argocd' --ignore-errors=true 2>/dev/null || \ | ||
| oc logs -n "${NAMESPACE}" --all-containers=true --prefix=true --tail=50 \ |
There was a problem hiding this comment.
This wouldn't work as we are not specifying the pod name
|
|
||
| # Wait for the operator to create the application-controller StatefulSet before checking rollout | ||
| echo "Waiting for openshift-gitops-application-controller StatefulSet to be created..." | ||
| #oc wait --for=create statefulset/openshift-gitops-application-controller -n "${NAMESPACE}" --timeout=300s || exit 1 |
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
|
/retest |
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Updated versions for external images in config.yaml.
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
…4cc51e9e1c398ac (v1.2.0) (rh-gitops-midstream#912) Signed-off-by: dkarpele <karpelevich@gmail.com>
Decided to develop against 1.20 as I want this to be useful for current release testing.
Also, on main I was waiting too long for rebuilds.
First - the more sweeping change. I needed to update all of the PR based pipelines to produce ARM images as well, as we are mostly getting arm clusters in konflux ci.
Second - overviewof the pipeline:
claudecode. On Push, it should use the bundle as specified.claudecode.There is one more utility task, that parses the pipeline param for the PRs repository and branch so that you can change the steps contents when developing.
Please review and comment :)