-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Use slot-manager for e2e-parallel job #80156
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 1 commit into
openshift:main
from
roivaz:introduce-slot-manager
Jun 8, 2026
Merged
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
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,8 @@ | ||
| approvers: | ||
| - aro-hcp-sl-approvers | ||
| - geoberle | ||
| - deads2k | ||
| reviewers: | ||
| - aro-hcp-sl-reviewers | ||
| - geoberle | ||
| - deads2k |
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,8 @@ | ||
| approvers: | ||
| - aro-hcp-sl-approvers | ||
| - geoberle | ||
| - deads2k | ||
| reviewers: | ||
| - aro-hcp-sl-reviewers | ||
| - geoberle | ||
| - deads2k |
29 changes: 29 additions & 0 deletions
29
ci-operator/step-registry/aro-hcp/lease/acquire/aro-hcp-lease-acquire-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,29 @@ | ||
| #!/bin/bash | ||
| set -o errexit | ||
| set -o nounset | ||
| set -o pipefail | ||
|
|
||
| export CLUSTER_PROFILE_DIR="/var/run/aro-hcp-${VAULT_SECRET_PROFILE}" | ||
|
|
||
| slot_manager_args=( | ||
| --deploy-env "${ARO_HCP_DEPLOY_ENV}" | ||
| --shared-dir "${SHARED_DIR}" | ||
| ) | ||
|
|
||
| if [[ -n "${ALLOWED_SUBSCRIPTIONS:-}" ]]; then | ||
| slot_manager_args+=(--allowed-subscriptions "${ALLOWED_SUBSCRIPTIONS}") | ||
| fi | ||
|
|
||
| if [[ -n "${ALLOWED_LOCATIONS:-}" ]]; then | ||
| slot_manager_args+=(--allowed-locations "${ALLOWED_LOCATIONS}") | ||
| fi | ||
|
|
||
| if [[ -n "${ARO_HCP_SLOT_MANAGER_MAX_WAIT_FOR_LEASE:-}" ]]; then | ||
| slot_manager_args+=(--max-wait-for-lease "${ARO_HCP_SLOT_MANAGER_MAX_WAIT_FOR_LEASE}") | ||
| fi | ||
|
|
||
| if [[ -n "${ARO_HCP_SLOT_MANAGER_LEASE_WAIT_INTERVAL:-}" ]]; then | ||
| slot_manager_args+=(--lease-wait-interval "${ARO_HCP_SLOT_MANAGER_LEASE_WAIT_INTERVAL}") | ||
| fi | ||
|
|
||
| ./test/aro-hcp-tests slot-manager acquire "${slot_manager_args[@]}" |
15 changes: 15 additions & 0 deletions
15
ci-operator/step-registry/aro-hcp/lease/acquire/aro-hcp-lease-acquire-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,15 @@ | ||
| { | ||
| "path": "aro-hcp/lease/acquire/aro-hcp-lease-acquire-ref.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "aro-hcp-sl-approvers", | ||
| "geoberle", | ||
| "deads2k" | ||
| ], | ||
| "reviewers": [ | ||
| "aro-hcp-sl-reviewers", | ||
| "geoberle", | ||
| "deads2k" | ||
| ] | ||
| } | ||
| } |
62 changes: 62 additions & 0 deletions
62
ci-operator/step-registry/aro-hcp/lease/acquire/aro-hcp-lease-acquire-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,62 @@ | ||
| ref: | ||
| as: aro-hcp-lease-acquire | ||
| from: aro-hcp-e2e-tests | ||
| commands: aro-hcp-lease-acquire-commands.sh | ||
| grace_period: 15s | ||
| credentials: | ||
| - namespace: test-credentials | ||
| name: cluster-secrets-aro-hcp-dev | ||
| mount_path: /var/run/aro-hcp-dev | ||
| - namespace: test-credentials | ||
| name: cluster-secrets-aro-hcp-int | ||
| mount_path: /var/run/aro-hcp-int | ||
| - namespace: test-credentials | ||
| name: cluster-secrets-aro-hcp-stg | ||
| mount_path: /var/run/aro-hcp-stg | ||
| - namespace: test-credentials | ||
| name: cluster-secrets-aro-hcp-prod | ||
| mount_path: /var/run/aro-hcp-prod | ||
| resources: | ||
| requests: | ||
| cpu: 10m | ||
| memory: 100Mi | ||
| env: | ||
| - name: VAULT_SECRET_PROFILE | ||
| default: "dev" | ||
| documentation: |- | ||
| Selects which environment's cluster secrets to use (dev, int, stg, prod). | ||
| - name: ALLOWED_SUBSCRIPTIONS | ||
| default: "" | ||
| documentation: |- | ||
| Optional comma-separated allowlist of catalog `subscription_name` | ||
| values that `slot-manager acquire` may consider for candidate pool | ||
| selection. | ||
| - name: ALLOWED_LOCATIONS | ||
| default: "" | ||
| documentation: |- | ||
| Optional comma-separated allowlist of Azure regions for fixed-mode | ||
| candidate pool selection (for example, `centralus,canadacentral`). | ||
| - name: MULTISTAGE_PARAM_OVERRIDE_LOCATION | ||
| default: "" | ||
| documentation: |- | ||
| Highest-precedence concrete location override for the runtime slot. | ||
| When set, it takes precedence over `ALLOWED_LOCATIONS`. | ||
| - name: ARO_HCP_DEPLOY_ENV | ||
| default: "" | ||
| documentation: Config environment name (prow, ci01, int, stg, prod). | ||
| - name: ARO_HCP_SLOT_MANAGER_MAX_WAIT_FOR_LEASE | ||
| default: "" | ||
| documentation: |- | ||
| Optional override for `slot-manager acquire --max-wait-for-lease`. | ||
| Leave unset to use the binary default (currently 30m). Set to `0s` | ||
| to wait forever after a full exhausted pass across all candidate pools. | ||
| - name: ARO_HCP_SLOT_MANAGER_LEASE_WAIT_INTERVAL | ||
| default: "" | ||
| documentation: |- | ||
| Optional override for `slot-manager acquire --lease-wait-interval`. | ||
| Leave unset to use the binary default (currently 1m). This controls | ||
| the delay between retries after a full exhausted pass across all | ||
| candidate pools. | ||
| documentation: |- | ||
| Acquire the runtime Boskos leases required by ARO HCP E2E workflows and | ||
| persist the runtime slot env contract into SHARED_DIR for later steps. |
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,8 @@ | ||
| approvers: | ||
| - aro-hcp-sl-approvers | ||
| - geoberle | ||
| - deads2k | ||
| reviewers: | ||
| - aro-hcp-sl-reviewers | ||
| - geoberle | ||
| - deads2k |
6 changes: 6 additions & 0 deletions
6
ci-operator/step-registry/aro-hcp/lease/release/aro-hcp-lease-release-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,6 @@ | ||
| #!/bin/bash | ||
| set -o errexit | ||
| set -o nounset | ||
| set -o pipefail | ||
|
|
||
| ./test/aro-hcp-tests slot-manager release --shared-dir "${SHARED_DIR}" |
15 changes: 15 additions & 0 deletions
15
ci-operator/step-registry/aro-hcp/lease/release/aro-hcp-lease-release-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,15 @@ | ||
| { | ||
| "path": "aro-hcp/lease/release/aro-hcp-lease-release-ref.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "aro-hcp-sl-approvers", | ||
| "geoberle", | ||
| "deads2k" | ||
| ], | ||
| "reviewers": [ | ||
| "aro-hcp-sl-reviewers", | ||
| "geoberle", | ||
| "deads2k" | ||
| ] | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions
10
ci-operator/step-registry/aro-hcp/lease/release/aro-hcp-lease-release-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,10 @@ | ||
| ref: | ||
| as: aro-hcp-lease-release | ||
| from: aro-hcp-e2e-tests | ||
| commands: aro-hcp-lease-release-commands.sh | ||
| resources: | ||
| requests: | ||
| cpu: 10m | ||
| memory: 100Mi | ||
| documentation: |- | ||
| Release the runtime Boskos leases acquired for an ARO HCP E2E workflow. |
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
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
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.
Validate
CUSTOMER_SUBSCRIPTIONimmediately after sourcing runtime slot env.CUSTOMER_SUBSCRIPTIONis used later (Line 41) but not asserted at the env-file boundary. Add an explicit guard here so slot contract regressions fail early with a clear message.Suggested fix
# shellcheck disable=SC1090 source "${env_file}" export LOCATION="${SELECTED_LOCATION:-${LOCATION:-}}" : "${LOCATION:?LOCATION must be provided by SELECTED_LOCATION or the legacy runtime slot export file}" +: "${CUSTOMER_SUBSCRIPTION:?CUSTOMER_SUBSCRIPTION must be provided by the runtime slot export file}"📝 Committable suggestion
🤖 Prompt for AI Agents