-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Migrate int and stg e2e jobs to slot-manager #80467
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| approvers: | ||
| - aro-hcp-sl-approvers | ||
| - geoberle | ||
| - deads2k | ||
| reviewers: | ||
| - aro-hcp-sl-reviewers | ||
| - geoberle | ||
| - deads2k |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "path": "aro-hcp/persistent-e2e/aro-hcp-persistent-e2e-workflow.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "aro-hcp-sl-approvers", | ||
| "geoberle", | ||
| "deads2k" | ||
| ], | ||
| "reviewers": [ | ||
| "aro-hcp-sl-reviewers", | ||
| "geoberle", | ||
| "deads2k" | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| workflow: | ||
| as: aro-hcp-persistent-e2e | ||
| steps: | ||
| allow_best_effort_post_steps: true | ||
| pre: | ||
| - ref: aro-hcp-lease-acquire | ||
| - ref: aro-hcp-write-config | ||
| test: | ||
| - ref: aro-hcp-test-persistent | ||
| post: | ||
| - ref: aro-hcp-gather-test-visualization | ||
| - ref: aro-hcp-gather-custom-link-tools | ||
| - ref: aro-hcp-lease-release | ||
| documentation: |- | ||
| Runs the E2E suite against a persistent (pre-deployed) environment using slot-manager | ||
| for subscription and identity-container selection. No provisioning or deprovisioning. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,12 +9,19 @@ export CLUSTER_PROFILE_DIR="/var/run/aro-hcp-${VAULT_SECRET_PROFILE}" | |
| export AZURE_CLIENT_ID; AZURE_CLIENT_ID=$(cat "${CLUSTER_PROFILE_DIR}/client-id") | ||
| export AZURE_TENANT_ID; AZURE_TENANT_ID=$(cat "${CLUSTER_PROFILE_DIR}/tenant") | ||
| export AZURE_CLIENT_SECRET; AZURE_CLIENT_SECRET=$(cat "${CLUSTER_PROFILE_DIR}/client-secret") | ||
| export CUSTOMER_SUBSCRIPTION; CUSTOMER_SUBSCRIPTION=$(cat "${CLUSTER_PROFILE_DIR}/subscription-name") | ||
| export SUBSCRIPTION_ID; SUBSCRIPTION_ID=$(cat "${CLUSTER_PROFILE_DIR}/subscription-id") | ||
| export AZURE_TOKEN_CREDENTIALS=prod | ||
|
|
||
| env_file="${SHARED_DIR}/aro-hcp-slot.env" | ||
| if [[ -f "${env_file}" ]]; then | ||
| # shellcheck disable=SC1090 | ||
| source "${env_file}" | ||
| export LOCATION="${SELECTED_LOCATION:-${LOCATION:-}}" | ||
| else | ||
| export CUSTOMER_SUBSCRIPTION; CUSTOMER_SUBSCRIPTION=$(cat "${CLUSTER_PROFILE_DIR}/subscription-name") | ||
|
Comment on lines
+14
to
+20
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Preserve the cluster-profile fallback for If Line 15 finds Proposed fix env_file="${SHARED_DIR}/aro-hcp-slot.env"
if [[ -f "${env_file}" ]]; then
# shellcheck disable=SC1090
source "${env_file}"
+ export CUSTOMER_SUBSCRIPTION="${CUSTOMER_SUBSCRIPTION:-$(< "${CLUSTER_PROFILE_DIR}/subscription-name")}"
export LOCATION="${SELECTED_LOCATION:-${LOCATION:-}}"
else
- export CUSTOMER_SUBSCRIPTION; CUSTOMER_SUBSCRIPTION=$(cat "${CLUSTER_PROFILE_DIR}/subscription-name")
+ export CUSTOMER_SUBSCRIPTION="$(< "${CLUSTER_PROFILE_DIR}/subscription-name")"
fi🤖 Prompt for AI Agents |
||
| fi | ||
|
|
||
| az login --service-principal -u "${AZURE_CLIENT_ID}" -p "${AZURE_CLIENT_SECRET}" --tenant "${AZURE_TENANT_ID}" --output none | ||
| az account set --subscription "${SUBSCRIPTION_ID}" | ||
| az account set --subscription "${CUSTOMER_SUBSCRIPTION}" | ||
|
|
||
| if [[ -n "${MULTISTAGE_PARAM_OVERRIDE_LOCATION:-}" ]]; then | ||
| export LOCATION="${MULTISTAGE_PARAM_OVERRIDE_LOCATION}" | ||
|
|
||
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.
Root cause:
VAULT_SECRET_PROFILEvalues were migrated to*-rhwithout matching step-level credential profile contract updates across all affected configs.Affected files:
ci-operator/config/Azure/ARO-HCP/Azure-ARO-HCP-main.yaml,ci-operator/config/Azure/ARO-HCP/Azure-ARO-HCP-main__e2e.yaml,ci-operator/config/Azure/ARO-HCP/Azure-ARO-HCP-main__periodic.yaml, andci-operator/config/Azure/ARO-HCP/Azure-ARO-HCP-main__periodic-cleanup.yaml.All these jobs now rely on profile names that the referenced step contracts (and path derivation logic) do not currently show as mounted/declared, which can cause deterministic runtime auth/bootstrap failures.
🤖 Prompt for AI Agents