-
Notifications
You must be signed in to change notification settings - Fork 2.2k
SREP-4053: Add rosa-e2e nightly periodic job #76427
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
Merged
openshift-merge-bot
merged 7 commits into
openshift:main
from
dustman9000:rosa-e2e-nightly
Apr 4, 2026
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
86ff3a8
Add rosa-e2e nightly periodic job
dustman9000 f2dc91d
Update cluster profile from aws-perfscale-qe to rosa-e2e
dustman9000 c59bb25
Use rosa-e2e-01 cluster profile to match registered profiles
dustman9000 2b47529
Use rosa-aws-cli image and prebuilt binary for test step
dustman9000 15e6e8b
Use rosa-e2e image directly for test step
dustman9000 cf09eb1
Fix Ginkgo flag prefix for compiled test binary
dustman9000 ad9745c
Regenerate periodics after rebase with ocm-fvt job
dustman9000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| approvers: | ||
| - tiwillia | ||
| - dustman9000 | ||
| - bmeng | ||
| - ravitri | ||
| reviewers: | ||
| - tiwillia | ||
| - dustman9000 | ||
| - bmeng | ||
| - ravitri |
17 changes: 17 additions & 0 deletions
17
ci-operator/step-registry/rosa/e2e/rosa-e2e-workflow.metadata.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "path": "rosa/e2e/rosa-e2e-workflow.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "tiwillia", | ||
| "dustman9000", | ||
| "bmeng", | ||
| "ravitri" | ||
| ], | ||
| "reviewers": [ | ||
| "tiwillia", | ||
| "dustman9000", | ||
| "bmeng", | ||
| "ravitri" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| workflow: | ||
| as: rosa-e2e | ||
| steps: | ||
| env: | ||
| CHANNEL_GROUP: stable | ||
| HOSTED_CP: "true" | ||
| REPLICAS: "2" | ||
| pre: | ||
| - chain: rosa-aws-sts-hcp-provision | ||
| - ref: rosa-cluster-wait-ready-nodes | ||
| test: | ||
| - ref: rosa-e2e-test | ||
| post: | ||
| - chain: rosa-aws-sts-hcp-deprovision | ||
| best_effort: true | ||
| documentation: |- | ||
| This workflow provisions a ROSA HCP cluster and runs the rosa-e2e | ||
| managed service validation suite, then tears down the cluster. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| approvers: | ||
| - tiwillia | ||
| - dustman9000 | ||
| - bmeng | ||
| - ravitri | ||
| reviewers: | ||
| - tiwillia | ||
| - dustman9000 | ||
| - bmeng | ||
| - ravitri |
73 changes: 73 additions & 0 deletions
73
ci-operator/step-registry/rosa/e2e/test/rosa-e2e-test-commands.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -o nounset | ||
| set -o errexit | ||
| set -o pipefail | ||
|
|
||
| trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM | ||
|
|
||
| log(){ | ||
| echo -e "\033[1m$(date "+%d-%m-%YT%H:%M:%S") " "${*}\033[0m" >&2 | ||
| } | ||
|
|
||
| # Configure AWS | ||
| AWSCRED="${CLUSTER_PROFILE_DIR}/.awscred" | ||
| if [[ -f "${AWSCRED}" ]]; then | ||
| export AWS_SHARED_CREDENTIALS_FILE="${AWSCRED}" | ||
| export AWS_DEFAULT_REGION="${LEASED_RESOURCE}" | ||
| else | ||
| log "No AWS credentials found in cluster profile" | ||
| fi | ||
|
|
||
| # Log into OCM | ||
| SSO_CLIENT_ID=$(cat "${CLUSTER_PROFILE_DIR}/sso-client-id" 2>/dev/null || true) | ||
| SSO_CLIENT_SECRET=$(cat "${CLUSTER_PROFILE_DIR}/sso-client-secret" 2>/dev/null || true) | ||
| ROSA_TOKEN=$(cat "${CLUSTER_PROFILE_DIR}/ocm-token" 2>/dev/null || true) | ||
|
|
||
| if [[ -n "${SSO_CLIENT_ID}" && -n "${SSO_CLIENT_SECRET}" ]]; then | ||
| log "Logging into ${OCM_LOGIN_ENV} with SSO credentials" | ||
| ocm login --url "${OCM_LOGIN_ENV}" --client-id "${SSO_CLIENT_ID}" --client-secret "${SSO_CLIENT_SECRET}" | ||
| elif [[ -n "${ROSA_TOKEN}" ]]; then | ||
| log "Logging into ${OCM_LOGIN_ENV} with offline token" | ||
| ocm login --url "${OCM_LOGIN_ENV}" --token "${ROSA_TOKEN}" | ||
| else | ||
| log "No OCM credentials found in cluster profile" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Get cluster info from shared dir | ||
| CLUSTER_ID=$(cat "${SHARED_DIR}/cluster-id") | ||
| log "Testing cluster: ${CLUSTER_ID}" | ||
|
|
||
| OCM_TOKEN=$(ocm token) | ||
| export OCM_TOKEN | ||
| export OCM_ENV="${OCM_LOGIN_ENV}" | ||
| export CLUSTER_ID | ||
| export AWS_REGION="${LEASED_RESOURCE}" | ||
|
|
||
| # Try to get MC access via backplane | ||
| log "Attempting MC access via backplane..." | ||
| if ocm backplane login "${CLUSTER_ID}" --manager 2>/dev/null; then | ||
| export MC_KUBECONFIG="${HOME}/.kube/config" | ||
| MC_SERVER=$(oc whoami --show-server 2>/dev/null || true) | ||
| if [[ "${MC_SERVER}" == *"backplane"* ]]; then | ||
| MANAGEMENT_CLUSTER_ID=$(echo "${MC_SERVER}" | sed 's|.*/cluster/||; s|/.*||') | ||
| export MANAGEMENT_CLUSTER_ID | ||
| log "MC access established: ${MANAGEMENT_CLUSTER_ID}" | ||
| fi | ||
| fi | ||
|
|
||
| # Run tests | ||
| GINKGO_FLAGS="--ginkgo.junit-report=${ARTIFACT_DIR}/junit-rosa-e2e.xml --ginkgo.v" | ||
| if [[ -n "${LABEL_FILTER}" ]]; then | ||
| GINKGO_FLAGS="${GINKGO_FLAGS} --ginkgo.label-filter=${LABEL_FILTER}" | ||
| fi | ||
|
|
||
| if [[ -n "${EXCLUDE_CLUSTER_OPERATORS}" ]]; then | ||
| export EXCLUDE_CLUSTER_OPERATORS | ||
| fi | ||
|
|
||
| log "Running rosa-e2e tests..." | ||
| /usr/local/bin/e2e.test ${GINKGO_FLAGS} | ||
|
|
||
| log "Tests complete. Results at ${ARTIFACT_DIR}/junit-rosa-e2e.xml" | ||
17 changes: 17 additions & 0 deletions
17
ci-operator/step-registry/rosa/e2e/test/rosa-e2e-test-ref.metadata.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "path": "rosa/e2e/test/rosa-e2e-test-ref.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "tiwillia", | ||
| "dustman9000", | ||
| "bmeng", | ||
| "ravitri" | ||
| ], | ||
| "reviewers": [ | ||
| "tiwillia", | ||
| "dustman9000", | ||
| "bmeng", | ||
| "ravitri" | ||
| ] | ||
| } | ||
| } |
25 changes: 25 additions & 0 deletions
25
ci-operator/step-registry/rosa/e2e/test/rosa-e2e-test-ref.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ref: | ||
| as: rosa-e2e-test | ||
| from: rosa-e2e | ||
| grace_period: 10m | ||
| commands: rosa-e2e-test-commands.sh | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| memory: 300Mi | ||
| env: | ||
| - name: OCM_LOGIN_ENV | ||
| default: "staging" | ||
| documentation: The environment for OCM login. | ||
| - name: LABEL_FILTER | ||
| default: "" | ||
| documentation: Ginkgo label filter for test selection (e.g. "Area:ManagedService"). | ||
| - name: EXCLUDE_CLUSTER_OPERATORS | ||
| default: "" | ||
| documentation: Comma-separated list of ClusterOperators to exclude from health checks. | ||
| dependencies: | ||
| - name: rosa-e2e | ||
| env: ROSA_E2E_IMAGE | ||
| documentation: |- | ||
| Runs the rosa-e2e test suite against an existing ROSA HCP cluster. | ||
| Expects CLUSTER_ID in SHARED_DIR/cluster-id and AWS credentials in the cluster profile. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.