-
Notifications
You must be signed in to change notification settings - Fork 2.2k
OCM-23826 | feat: cs-rosa-hcp-backup-restore-integration-main #79043
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
Open
andclt
wants to merge
1
commit into
openshift:main
Choose a base branch
from
andclt:migrate-rosa-hcp-backup-restore-job
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+144
−0
Open
Changes from all commits
Commits
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
72 changes: 72 additions & 0 deletions
72
...enshift-online/rosa-e2e/openshift-online-rosa-e2e-main__ocm-fvt-rosa-hcp-integration.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,72 @@ | ||
| base_images: | ||
| nested-podman: | ||
| name: nested-podman | ||
| namespace: ci | ||
| tag: latest | ||
| build_root: | ||
| image_stream_tag: | ||
| name: builder | ||
| namespace: ocp | ||
| tag: rhel-9-golang-1.24-openshift-4.22 | ||
| releases: | ||
| latest: | ||
| candidate: | ||
| product: ocp | ||
| stream: nightly | ||
| version: "4.22" | ||
| resources: | ||
| '*': | ||
| limits: | ||
| memory: 4Gi | ||
| requests: | ||
| cpu: 100m | ||
| memory: 200Mi | ||
| tests: | ||
| - as: ocm-fvt-periodic-cs-rosa-hcp-backup-restore-integration-main | ||
| capabilities: | ||
| - nested-podman | ||
| commands: | | ||
| old_umask=$(umask) | ||
| umask 077 | ||
| podman_env_file="$(mktemp /tmp/podman.env.XXXXXX)" | ||
| trap 'rm -f "${podman_env_file}"' EXIT | ||
| umask "$old_umask" | ||
|
|
||
| JOB_LINK="https://prow.ci.openshift.org/view/gs/test-platform-results/" | ||
| if [ -n "${PULL_NUMBER:-}" ]; then | ||
| JOB_LINK="${JOB_LINK}pr-logs/pull/openshift_release/${PULL_NUMBER}/${JOB_NAME}/${BUILD_ID}" | ||
| else | ||
| JOB_LINK="${JOB_LINK}logs/${JOB_NAME}/${BUILD_ID}" | ||
| fi | ||
|
|
||
| env -i bash --norc --noprofile << EOF > "${podman_env_file}" | ||
| export AWS_SHARED_CREDENTIALS_FILE=/credentials/aws-cred | ||
| export SHARED_VPC_AWS_SHARED_CREDENTIALS_FILE=/credentials/aws-shared-vpc-credentials | ||
| export ENABLE_JIRA_REPORTING=true | ||
| export JOB_LINK="${JOB_LINK}" | ||
| source /usr/local/cs-qe-credentials/ocm-tokens | ||
| source /usr/local/cs-qe-credentials/jira-cred | ||
| env | grep -v '^_=' | ||
| EOF | ||
|
|
||
| podman run \ | ||
| --authfile /usr/local/cs-qe-credentials/.dockerconfigjson \ | ||
| --env-file "${podman_env_file}" \ | ||
| -v /usr/local/cs-qe-credentials:/credentials:ro,z \ | ||
| --rm \ | ||
| quay.io/redhat-services-prod/ocmci/ocmci:latest \ | ||
| ocmtest test --service cms --job cs-rosa-hcp-backup-restore-integration-main --reportJiraTicket | ||
| container: | ||
| from: nested-podman | ||
| memory_backed_volume: | ||
| size: 1Gi | ||
| cron: 0 8 * * * | ||
| nested_podman: true | ||
| secrets: | ||
| - mount_path: /usr/local/cs-qe-credentials | ||
| name: cs-qe-credentials | ||
| zz_generated_metadata: | ||
| branch: main | ||
| org: openshift-online | ||
| repo: rosa-e2e | ||
| variant: ocm-fvt-rosa-hcp-integration | ||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add
set -eto the innerbashinvocation to fail fast on sourcing errors.If either
source /usr/local/cs-qe-credentials/ocm-tokensorsource /usr/local/cs-qe-credentials/jira-credfails (e.g., file missing or contains a syntax error), the innerbashprocess will silently continue,envwill emit only the vars set before the failure, andpodman runwill proceed with incomplete credentials — producing a confusing downstream authentication failure rather than an immediate clear error.🛡️ Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents