Skip to content

hypershift: Add AWS v2 lifecycle step-registry components and update workflow - #82719

Open
ironcladlou wants to merge 1 commit into
openshift:mainfrom
ironcladlou:ws/e2e-v2-aws
Open

hypershift: Add AWS v2 lifecycle step-registry components and update workflow#82719
ironcladlou wants to merge 1 commit into
openshift:mainfrom
ironcladlou:ws/e2e-v2-aws

Conversation

@ironcladlou

@ironcladlou ironcladlou commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Add create-guests, destroy-guests, dump-guests, and run-e2e-v2 chains for AWS that use the Go binary lifecycle orchestration (create-guests, run-tests, destroy-guests, dump-guests). Update the hypershift-aws-e2e-v2 workflow to use these new chains instead of the shell-script based hypershift-aws-create and hypershift-e2e-v2 chains.

Part of CNTRLPLANE-3646

Summary by CodeRabbit

Adds AWS HyperShift CI step-registry chains for creating, testing, diagnosing, and destroying guest clusters.

Updates the hypershift-aws-e2e-v2 workflow to use Go-based lifecycle orchestration instead of shell-script-based chains. The workflow now provisions AWS guest clusters, runs run-tests, collects diagnostics, and performs best-effort guest cleanup.

Adds ownership and metadata definitions for the new step-registry components.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 1df4c46c-fe6b-4161-ad17-a4d4cbfe961d

📥 Commits

Reviewing files that changed from the base of the PR and between c994b1c and 05ef3da.

📒 Files selected for processing (17)
  • ci-operator/step-registry/hypershift/OWNERS
  • ci-operator/step-registry/hypershift/aws/create-guests/OWNERS
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.yaml
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-commands.sh
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.yaml
  • ci-operator/step-registry/hypershift/aws/destroy-guests/OWNERS
  • ci-operator/step-registry/hypershift/aws/destroy-guests/hypershift-aws-destroy-guests-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/destroy-guests/hypershift-aws-destroy-guests-chain.yaml
  • ci-operator/step-registry/hypershift/aws/dump-guests/OWNERS
  • ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.yaml
  • ci-operator/step-registry/hypershift/aws/e2e-v2/hypershift-aws-e2e-v2-workflow.yaml
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/OWNERS
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.yaml

Walkthrough

The change adds AWS HyperShift guest creation, e2e testing, diagnostics, and destruction chains. It updates the AWS e2e-v2 workflow to use these chains and adds ownership metadata.

Changes

AWS HyperShift e2e workflow

Layer / File(s) Summary
Create guest clusters
ci-operator/step-registry/hypershift/aws/create-guests/*
Adds the AWS guest-cluster creation step, command script, chain, metadata, credentials, release image settings, and resource configuration.
Run AWS e2e tests
ci-operator/step-registry/hypershift/aws/run-e2e-v2/*
Adds the AWS HyperShift e2e-v2 test chain with AWS credentials, management-cluster kubeconfig, release image dependency, resources, and timeout settings.
Diagnose and destroy guests
ci-operator/step-registry/hypershift/aws/dump-guests/*, ci-operator/step-registry/hypershift/aws/destroy-guests/*
Adds guest diagnostics with HyperShift debug and k8sgpt steps. Adds best-effort AWS guest destruction with credentials, resources, and timeout settings.
Wire the AWS workflow
ci-operator/step-registry/hypershift/aws/e2e-v2/hypershift-aws-e2e-v2-workflow.yaml, ci-operator/step-registry/hypershift/OWNERS
Updates the workflow description and chain references for nested AWS guest clusters. Sets HYPERSHIFT_PLATFORM=aws and adds ownership entries.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Workflow
  participant CreateGuests
  participant RunE2E
  participant DumpGuests
  participant DestroyGuests
  Workflow->>CreateGuests: create AWS guest clusters
  CreateGuests->>RunE2E: provide guest clusters
  RunE2E->>DumpGuests: run diagnostics after tests
  DumpGuests->>DestroyGuests: provide diagnostic results
  DestroyGuests->>Workflow: destroy AWS guest clusters
Loading
🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the added AWS v2 HyperShift lifecycle components and the related workflow update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The pull request changes only step-registry YAML, JSON, OWNERS, workflow, and shell files; no Ginkgo test declarations or dynamic test titles are present.
Test Structure And Quality ✅ Passed The PR changes only OWNERS, YAML, JSON, and shell orchestration files; it adds no Ginkgo test code or It blocks to review.
Microshift Test Compatibility ✅ Passed The pull request adds only step-registry YAML, JSON, shell, and OWNERS files; it adds no Ginkgo tests or test API references requiring MicroShift review.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The pull request adds only step-registry YAML, shell, JSON, and OWNERS files; it adds no Ginkgo tests or topology-sensitive test code.
Topology-Aware Scheduling Compatibility ✅ Passed The commit adds CI step-registry YAML, metadata, OWNERS, and shell invocations only; no deployment manifests or topology-sensitive scheduling constraints are introduced.
Ote Binary Stdout Contract ✅ Passed The PR adds only registry YAML, JSON, OWNERS, and shell wrappers; no Go process-level stdout writes or logging changes exist, and shell xtrace goes to stderr.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The commit adds only step-registry configuration, scripts, ownership files, and a workflow; it adds no Ginkgo test declarations or test source requiring IPv4 or public connectivity.
No-Weak-Crypto ✅ Passed The changed YAML and shell content contains no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, custom crypto, or secret/token comparisons; it only invokes lifecycle binaries and mounts credentials.
Container-Privileges ✅ Passed Changed step-registry YAML and workflow files contain no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, securityContext, or allowPrivilegeEscalation settings.
No-Sensitive-Data-In-Logs ✅ Passed Changed commands trace only file paths and binary invocations; no secret values are logged. Diagnostics use anonymized k8sgpt output, and the added email is documentation, not log output.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from bryan-cox and enxebre July 31, 2026 11:38
@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ironcladlou
Once this PR has been reviewed and has the lgtm label, please assign jparrill for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-commands.sh (1)

3-3: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Disable global shell tracing in the AWS credential step.

This script handles AWS credentials and sources a shared file while set -x is active. Remove -x from the default shell options. If diagnostics require tracing, enable it only around non-sensitive commands.

As per coding guidelines, step-registry command scripts must default to set -euo pipefail without -x and must limit tracing around sensitive operations.

Suggested fix
-set -exuo pipefail
+set -euo pipefail

Also applies to: 7-10

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-commands.sh`
at line 3, Remove the global xtrace option from the shell settings in the AWS
credential step, changing the default to set -euo pipefail. Keep sensitive
credential handling and shared-file sourcing untraced; only add narrowly scoped
tracing around non-sensitive diagnostics if required.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json`:
- Around line 3-20: Synchronize generated ownership metadata with OWNERS by
adding ironcladlou to both the approvers and reviewers arrays in
ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json
lines 3-20 and
ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.metadata.json
lines 3-20, or regenerate both metadata files.

In
`@ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.yaml`:
- Around line 11-20: Update the hypershift-aws-dump-guests chain environment
around the hypershift-debug and hypershift-k8sgpt refs so k8sgpt receives the
management cluster kubeconfig at the path it expects. Add the management
kubeconfig as the relevant ref environment default or copy it to
${SHARED_DIR}/kubeconfig before hypershift-k8sgpt runs, ensuring it scans the
management cluster.

In
`@ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json`:
- Around line 4-18: Regenerate both chain metadata files from their matching
OWNERS files: add ironcladlou to the approvers and reviewers arrays in
ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json
(lines 4-18) and
ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.metadata.json
(lines 4-18).

---

Nitpick comments:
In
`@ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-commands.sh`:
- Line 3: Remove the global xtrace option from the shell settings in the AWS
credential step, changing the default to set -euo pipefail. Keep sensitive
credential handling and shared-file sourcing untraced; only add narrowly scoped
tracing around non-sensitive diagnostics if required.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 1df4c46c-fe6b-4161-ad17-a4d4cbfe961d

📥 Commits

Reviewing files that changed from the base of the PR and between c994b1c and 05ef3da.

📒 Files selected for processing (17)
  • ci-operator/step-registry/hypershift/OWNERS
  • ci-operator/step-registry/hypershift/aws/create-guests/OWNERS
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.yaml
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-commands.sh
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.yaml
  • ci-operator/step-registry/hypershift/aws/destroy-guests/OWNERS
  • ci-operator/step-registry/hypershift/aws/destroy-guests/hypershift-aws-destroy-guests-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/destroy-guests/hypershift-aws-destroy-guests-chain.yaml
  • ci-operator/step-registry/hypershift/aws/dump-guests/OWNERS
  • ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.yaml
  • ci-operator/step-registry/hypershift/aws/e2e-v2/hypershift-aws-e2e-v2-workflow.yaml
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/OWNERS
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.yaml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 3

🧹 Nitpick comments (1)
ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-commands.sh (1)

3-3: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Disable global shell tracing in the AWS credential step.

This script handles AWS credentials and sources a shared file while set -x is active. Remove -x from the default shell options. If diagnostics require tracing, enable it only around non-sensitive commands.

As per coding guidelines, step-registry command scripts must default to set -euo pipefail without -x and must limit tracing around sensitive operations.

Suggested fix
-set -exuo pipefail
+set -euo pipefail

Also applies to: 7-10

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-commands.sh`
at line 3, Remove the global xtrace option from the shell settings in the AWS
credential step, changing the default to set -euo pipefail. Keep sensitive
credential handling and shared-file sourcing untraced; only add narrowly scoped
tracing around non-sensitive diagnostics if required.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json`:
- Around line 3-20: Synchronize generated ownership metadata with OWNERS by
adding ironcladlou to both the approvers and reviewers arrays in
ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json
lines 3-20 and
ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.metadata.json
lines 3-20, or regenerate both metadata files.

In
`@ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.yaml`:
- Around line 11-20: Update the hypershift-aws-dump-guests chain environment
around the hypershift-debug and hypershift-k8sgpt refs so k8sgpt receives the
management cluster kubeconfig at the path it expects. Add the management
kubeconfig as the relevant ref environment default or copy it to
${SHARED_DIR}/kubeconfig before hypershift-k8sgpt runs, ensuring it scans the
management cluster.

In
`@ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json`:
- Around line 4-18: Regenerate both chain metadata files from their matching
OWNERS files: add ironcladlou to the approvers and reviewers arrays in
ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json
(lines 4-18) and
ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.metadata.json
(lines 4-18).

---

Nitpick comments:
In
`@ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-commands.sh`:
- Line 3: Remove the global xtrace option from the shell settings in the AWS
credential step, changing the default to set -euo pipefail. Keep sensitive
credential handling and shared-file sourcing untraced; only add narrowly scoped
tracing around non-sensitive diagnostics if required.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 1df4c46c-fe6b-4161-ad17-a4d4cbfe961d

📥 Commits

Reviewing files that changed from the base of the PR and between c994b1c and 05ef3da.

📒 Files selected for processing (17)
  • ci-operator/step-registry/hypershift/OWNERS
  • ci-operator/step-registry/hypershift/aws/create-guests/OWNERS
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.yaml
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-commands.sh
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.yaml
  • ci-operator/step-registry/hypershift/aws/destroy-guests/OWNERS
  • ci-operator/step-registry/hypershift/aws/destroy-guests/hypershift-aws-destroy-guests-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/destroy-guests/hypershift-aws-destroy-guests-chain.yaml
  • ci-operator/step-registry/hypershift/aws/dump-guests/OWNERS
  • ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.yaml
  • ci-operator/step-registry/hypershift/aws/e2e-v2/hypershift-aws-e2e-v2-workflow.yaml
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/OWNERS
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.yaml
🛑 Comments failed to post (3)
ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json (1)

3-20: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Synchronize generated ownership metadata with OWNERS.

Both metadata files omit ironcladlou, although ci-operator/step-registry/hypershift/aws/create-guests/OWNERS lists that user as both approver and reviewer.

  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json#L3-L20: add ironcladlou to both owner arrays or regenerate the metadata.
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.metadata.json#L3-L20: add ironcladlou to both owner arrays or regenerate the metadata.
📍 Affects 2 files
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json#L3-L20 (this comment)
  • ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.metadata.json#L3-L20
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json`
around lines 3 - 20, Synchronize generated ownership metadata with OWNERS by
adding ironcladlou to both the approvers and reviewers arrays in
ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-ref.metadata.json
lines 3-20 and
ci-operator/step-registry/hypershift/aws/create-guests/hypershift-aws-create-guests-chain.metadata.json
lines 3-20, or regenerate both metadata files.
ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.yaml (1)

11-20: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

while IFS= read -r file; do
  rg -n -C 4 'KUBECONFIG|management_cluster_kubeconfig|mgmt_kubeconfig' "$file" || true
done < <(
  fd --type f --glob 'hypershift-debug*' ci-operator/step-registry/hypershift/debug
  fd --type f --glob 'hypershift-k8sgpt*' ci-operator/step-registry/hypershift/k8sgpt
)

Repository: openshift/release

Length of output: 207


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== locate chain file =="
fd -a 'hypershift-aws-dump-guests-chain.yaml' ci-operator/step-registry/hypershift || true

echo "== locate candidate ref files =="
fd --type f 'hypershift-debug|hypershift-k8sgpt|aws-dump-guests' ci-operator/step-registry || true

echo "== chain content =="
file="$(fd -a 'hypershift-aws-dump-guests-chain.yaml' ci-operator/step-registry/hypershift | head -n1 || true)"
if [ -n "${file:-}" ]; then
  cat -n "$file"
fi

Repository: openshift/release

Length of output: 1696


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== all kubeconfig mentions in hypershift step-registry =="
rg -n -C 3 'KUBECONFIG|kubeconfig|management_cluster_kubeconfig|mgmt_kubeconfig' ci-operator/step-registry/hypershift || true

echo "== candidate ref candidates with matching names =="
fd --type f --glob '*debug*' ci-operator/step-registry/hypershift | sed -n '1,80p'
fd --type f --glob '*k8sgpt*' ci-operator/step-registry/hypershift | sed -n '1,80p'

Repository: openshift/release

Length of output: 50374


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== hypershift-debug ref metadata =="
cat -n ci-notices 2>/dev/null || true
cat -n ci-operator/step-registry/hypershift/debug/hypershift-debug-ref.yaml
echo
cat -n ci-operator/step-registry/hypershift/debug/hypershift-debug-commands.sh

echo "== hypershift-k8sgpt ref metadata =="
cat -n ci-operator/step-registry/hypershift/k8sgpt/hypershift-k8sgpt-ref.yaml
echo
cat -n ci-operator/step-registry/hypershift/k8sgpt/hypershift-k8sgpt-commands.sh

echo "== config/env defaults for hypershift-k8sgpt-ref only =="
rg -n -C 2 'name: KUBECONFIG|from: |default:.*/management_cluster_kubeconfig|management_cluster_kubeconfig' \
  ci-operator/step-registry/hypershift/k8sgpt/hypershift-k8sgpt-ref.yaml \
  ci-operator/step-registry/hypershift/k8sgpt/hypershift-k8sgpt-commands.sh || true

Repository: openshift/release

Length of output: 10760


Set kubeconfig for the k8sgpt diagnostic step.

hypershift-k8sgpt only points KUBECONFIG to ${SHARED_DIR}/kubeconfig, but this chain writes the management kubeconfig to ${SHARED_DIR}/management_cluster_kubeconfig and the dump step does not propagate it as chain environment. Add the management kubeconfig as a ref environment default, or copy/provide ${SHARED_DIR}/kubeconfig from that file, so k8sgpt scans the management cluster instead of skipping it from an incorrect kubeconfig.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.yaml`
around lines 11 - 20, Update the hypershift-aws-dump-guests chain environment
around the hypershift-debug and hypershift-k8sgpt refs so k8sgpt receives the
management cluster kubeconfig at the path it expects. Add the management
kubeconfig as the relevant ref environment default or copy it to
${SHARED_DIR}/kubeconfig before hypershift-k8sgpt runs, ensuring it scans the
management cluster.
ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json (1)

4-18: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Regenerate both chain metadata files from their matching OWNERS files.

Both metadata files omit ironcladlou, while their matching OWNERS files list that identity as both an approver and reviewer.

  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json#L4-L18: add ironcladlou to both arrays to match ci-operator/step-registry/hypershift/aws/run-e2e-v2/OWNERS.
  • ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.metadata.json#L4-L18: add ironcladlou to both arrays to match ci-operator/step-registry/hypershift/aws/dump-guests/OWNERS.
📍 Affects 2 files
  • ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json#L4-L18 (this comment)
  • ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.metadata.json#L4-L18
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json`
around lines 4 - 18, Regenerate both chain metadata files from their matching
OWNERS files: add ironcladlou to the approvers and reviewers arrays in
ci-operator/step-registry/hypershift/aws/run-e2e-v2/hypershift-aws-run-e2e-v2-chain.metadata.json
(lines 4-18) and
ci-operator/step-registry/hypershift/aws/dump-guests/hypershift-aws-dump-guests-chain.metadata.json
(lines 4-18).

@ironcladlou

Copy link
Copy Markdown
Contributor Author

/pj-rehearse list

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@ironcladlou: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove sjennings from the approvers and reviewers. This applies to the rest of the owners files in this PR too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to keep this one as small as possible I'd prefer to leave OWNERS as is and make a followup at the root of the tree to remove Seth and add myself since it'll touch everything

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering for tests, would it be possible to cut this number down to 2?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you were reviewing a commit I erased before I fixed unwanted OWNERS changes, can you add the comment to the new line? github isn't showing me what you're commenting on

@ironcladlou

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-hypershift-main-e2e-v2-aws periodic-ci-openshift-hypershift-release-5.0-periodics-e2e-v2-aws periodic-ci-openshift-hypershift-release-4.22-periodics-e2e-v2-aws

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@ironcladlou: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

@ironcladlou: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/rehearse/periodic-ci-openshift-hypershift-release-5.0-periodics-e2e-v2-aws 6b1a2f8 link unknown /pj-rehearse periodic-ci-openshift-hypershift-release-5.0-periodics-e2e-v2-aws
ci/rehearse/periodic-ci-openshift-hypershift-release-4.22-periodics-e2e-v2-aws 6b1a2f8 link unknown /pj-rehearse periodic-ci-openshift-hypershift-release-4.22-periodics-e2e-v2-aws
ci/rehearse/openshift/hypershift/main/e2e-v2-aws 6b1a2f8 link unknown /pj-rehearse pull-ci-openshift-hypershift-main-e2e-v2-aws

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Add create-guests, destroy-guests, dump-guests, and run-e2e-v2 chains
for AWS that use the Go binary lifecycle orchestration (create-guests,
run-tests, destroy-guests, dump-guests). Update the hypershift-aws-e2e-v2
workflow to use these new chains instead of the shell-script based
hypershift-aws-create and hypershift-e2e-v2 chains.
@ironcladlou

Copy link
Copy Markdown
Contributor Author

New tests failed because I didn't mount the guest AWS credentials

/pj-rehearse pull-ci-openshift-hypershift-main-e2e-v2-aws periodic-ci-openshift-hypershift-release-5.0-periodics-e2e-v2-aws periodic-ci-openshift-hypershift-release-4.22-periodics-e2e-v2-aws

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@ironcladlou: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@ironcladlou: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-hypershift-main-e2e-v2-aws openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-release-5.1-e2e-v2-aws openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-release-5.0-e2e-v2-aws openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-release-4.23-e2e-v2-aws openshift/hypershift presubmit Registry content changed
pull-ci-openshift-hypershift-release-4.22-e2e-v2-aws openshift/hypershift presubmit Registry content changed
periodic-ci-openshift-hypershift-release-5.0-periodics-e2e-v2-aws N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.23-periodics-e2e-v2-aws N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.22-periodics-e2e-v2-aws N/A periodic Registry content changed
Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants