Skip to content

Automate Reliability tests on Prow - #83100

Open
mehabhalodiya wants to merge 1 commit into
openshift:mainfrom
mehabhalodiya:automate_reliability
Open

Automate Reliability tests on Prow#83100
mehabhalodiya wants to merge 1 commit into
openshift:mainfrom
mehabhalodiya:automate_reliability

Conversation

@mehabhalodiya

@mehabhalodiya mehabhalodiya commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Each 5.0 config now has 3 tests: reliability-v2-68h, reliability-v2-20h, reliability-v2-1h.

The 68h reliability duration leaves ~4h buffer within the 72h job timeout for cluster provisioning, Dittybopper deployment, must-gather collection, and teardown.

12 Prow jobs total (3 durations x 4 platforms) are now generated and ready to trigger with commands like:

  • /test reliability-v2-aws-5.0-nightly-x86-reliability-v2-68h
  • /test reliability-v2-azure-5.0-nightly-x86-reliability-v2-68h
  • /test reliability-v2-rosa-5.0-nightly-x86-reliability-v2-68h
  • /test reliability-v2-rosa_hcp-5.0-nightly-x86-reliability-v2-68h

What each test automates end-to-end:

  1. Cluster provisioning — handled by platform-specific workflows (IPI for AWS/Azure, ROSA CLI for ROSA/HCP)
  2. IDP setupidp-htpasswd for self-managed; ROSA workflows handle it natively
  3. Dittybopper (Grafana dashboards)openshift-qe-deploy-dittybopper step deploys monitoring dashboards
  4. Reliability test executionopenshift-svt-reliability-v2 runs the test for the configured duration
  5. Must-gather collection — included in all standard post/deprovision chains automatically
  6. Cluster teardown — handled by workflow post steps

Summary by CodeRabbit

Adds 12 Prow jobs for OpenShift 5.0 Reliability v2 nightly tests across AWS, Azure, ROSA, and ROSA HCP. Each platform runs 1-hour, 20-hour, and 68-hour tests with platform-specific provisioning and deployment workflows.

The jobs automate cluster provisioning, identity provider setup where required, Dittybopper deployment, reliability testing, must-gather collection, and cluster teardown. The 68-hour tests reserve time for setup and cleanup within the 72-hour job limit.

Increases the Reliability v2 step timeout and the openshift/svt Plank timeout to 72 hours. Protects SLACK_API_TOKEN while the test command reads and exports it.

@openshift-ci

openshift-ci Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mehabhalodiya
Once this PR has been reviewed and has the lgtm label, please assign svetsa-rh, wking 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 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Added four OpenShift 5.0 nightly reliability-v2 CI variants for AWS, Azure, ROSA, and ROSA HCP. Each variant defines 68-hour, 20-hour, and 1-hour jobs. Reliability and Plank timeouts now allow 72-hour runs.

Changes

Reliability v2 nightly CI

Layer / File(s) Summary
Provider reliability configurations
ci-operator/config/openshift/svt/*aws-5.0-nightly-x86.yaml, ci-operator/config/openshift/svt/*azure-5.0-nightly-x86.yaml
Added AWS and Azure nightly inputs, resources, provider workflows, cluster settings, and reliability-v2 jobs for 68-hour, 20-hour, and 1-hour runs.
ROSA reliability configurations
ci-operator/config/openshift/svt/*rosa-5.0-nightly-x86.yaml, ci-operator/config/openshift/svt/*rosa_hcp-5.0-nightly-x86.yaml
Added ROSA and ROSA HCP nightly inputs, AWS STS workflows, multi-AZ cluster settings, Dittybopper deployment, and reliability-v2 jobs.
Execution timeout and secret handling
ci-operator/step-registry/openshift/svt/reliability-v2/openshift-svt-reliability-v2-ref.yaml, ci-operator/step-registry/openshift/svt/reliability-v2/openshift-svt-reliability-v2-commands.sh, core-services/prow/02_config/_config.yaml
Increased reliability and Plank timeouts to 72 hours. Disabled shell tracing while exporting the Slack token.

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

Suggested reviewers: mffiedler, prucek

Sequence Diagram(s)

sequenceDiagram
  participant CI as CI configuration
  participant Workflow as Installer workflow
  participant Cluster as Cloud cluster
  participant Chain as Reliability v2 chain
  CI->>Workflow: Start 68-hour, 20-hour, or 1-hour job
  Workflow->>Cluster: Provision provider-specific cluster
  Cluster->>Chain: Run reliability-v2 deployment and test chain
Loading

Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 error)

Check name Status Explanation Resolution
No-Sensitive-Data-In-Logs ❌ Error The wrapper re-enables tracing and runs start.sh with bash -x; start.sh expands SLACK_API_TOKEN in a sed command, so xtrace prints the token. Disable xtrace while invoking start.sh, or prevent the token from being interpolated into traced commands. Verify Prow logs contain no credential values.
✅ Passed checks (14 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 main change: automating Reliability tests on Prow.
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 PR adds only literal CI test aliases and job identifiers for 68h, 20h, and 1h; no Ginkgo It/Describe/Context/When titles or dynamic values were introduced.
Test Structure And Quality ✅ Passed The PR changes YAML, generated Prow jobs, and a shell wrapper; it adds or modifies no Ginkgo test files or Ginkgo constructs, so these test-quality requirements do not apply.
Microshift Test Compatibility ✅ Passed The pull request changes only CI YAML, Prow configuration, and a shell script; it adds no Ginkgo e2e tests requiring MicroShift compatibility review.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The patch changes only CI YAML, generated Prow jobs, and a shell/step timeout; it adds no Ginkgo test declarations or test source files, so the SNO check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed The PR adds CI configs, generated Prow jobs, timeout settings, and a shell secret-handling change; it adds no deployment/controller code or topology scheduling constraints.
Ote Binary Stdout Contract ✅ Passed The diff contains no OTE binary or Go suite code. It adds only YAML and two shell tracing lines, so it introduces no process-level stdout violation.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The pull request changes only YAML, Prow configuration, and a shell command; it adds no Ginkgo e2e tests or test declarations requiring IPv4 or public-network review.
No-Weak-Crypto ✅ Passed The PR diff adds no MD5, SHA1, DES, RC4, Blowfish, ECB, custom crypto, or secret comparisons; the only source change disables tracing while reading SLACK_API_TOKEN.
Container-Privileges ✅ Passed Changed YAML, generated Prow jobs, and referenced step files contain no privileged, host namespace, SYS_ADMIN, allowPrivilegeEscalation, capability, or explicit root settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci
openshift-ci Bot requested review from Prucek and mffiedler August 7, 2026 12:57

@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: 1

🤖 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/config/openshift/svt/openshift-svt-master__reliability-v2-aws-5.0-nightly-x86.yaml`:
- Around line 25-72: Add the intended periodic cron schedule to each
reliability-v2-68h, reliability-v2-20h, and reliability-v2-1h test in
ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-aws-5.0-nightly-x86.yaml
lines 25-72,
ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-azure-5.0-nightly-x86.yaml
lines 25-78,
ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-rosa-5.0-nightly-x86.yaml
lines 29-89, and
ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-rosa_hcp-5.0-nightly-x86.yaml
lines 29-92, preserving their existing job configuration while ensuring all 12
tests run periodically.
🪄 Autofix

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: Enterprise

Run ID: b371c976-b598-4145-b981-df097669f711

📥 Commits

Reviewing files that changed from the base of the PR and between 707fde9 and b1876d1.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift/svt/openshift-svt-master-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (6)
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-aws-5.0-nightly-x86.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-azure-5.0-nightly-x86.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-rosa-5.0-nightly-x86.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-rosa_hcp-5.0-nightly-x86.yaml
  • ci-operator/step-registry/openshift/svt/reliability-v2/openshift-svt-reliability-v2-ref.yaml
  • core-services/prow/02_config/_config.yaml

Signed-off-by: mehabhalodiya <mehabhalodiya@gmail.com>
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@mehabhalodiya: 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-svt-master-reliability-v2-aws-5.0-nightly-x86-reliability-v2-1h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-aws-5.0-nightly-x86-reliability-v2-20h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-aws-5.0-nightly-x86-reliability-v2-68h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-azure-5.0-nightly-x86-reliability-v2-1h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-azure-5.0-nightly-x86-reliability-v2-20h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-azure-5.0-nightly-x86-reliability-v2-68h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-rosa-5.0-nightly-x86-reliability-v2-1h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-rosa-5.0-nightly-x86-reliability-v2-20h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-rosa-5.0-nightly-x86-reliability-v2-68h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-rosa_hcp-5.0-nightly-x86-reliability-v2-1h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-rosa_hcp-5.0-nightly-x86-reliability-v2-20h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-rosa_hcp-5.0-nightly-x86-reliability-v2-68h openshift/svt presubmit Presubmit changed
pull-ci-openshift-svt-master-reliability-v2-rosa_hcp-4.17-nightly-x86-reliability-v2-20h openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-rosa_hcp-4.17-nightly-x86-reliability-v2-1h openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-rosa-4.17-nightly-x86-reliability-v2-20h openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-rosa-4.17-nightly-x86-reliability-v2-1h openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-aws-4.17-nightly-x86-reliability-v2-20h openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-aws-4.17-nightly-x86-reliability-v2-1h openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-aws-4.18-nightly-x86-reliability-v2-install-only openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-aws-4.18-nightly-x86-reliability-v2-20h openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-aws-4.18-nightly-x86-reliability-v2-1h openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-azure-4.17-nightly-x86-reliability-v2-10h openshift/svt presubmit Registry content changed
pull-ci-openshift-svt-master-reliability-v2-azure-4.17-nightly-x86-reliability-v2-1h openshift/svt presubmit 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.

@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: 1

🤖 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/openshift/svt/reliability-v2/openshift-svt-reliability-v2-commands.sh`:
- Around line 21-24: Disable xtrace for the child process by changing the
command that invokes ./start.sh from “bash -x” to an untraced invocation, while
preserving the existing token-loading guard. Add a comment immediately before
the set +x block explaining that tracing is disabled to prevent SLACK_API_TOKEN
from appearing in CI logs during configuration generation.
🪄 Autofix

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: Enterprise

Run ID: 52772d4a-dab1-44bd-baed-a139250c30fe

📥 Commits

Reviewing files that changed from the base of the PR and between 881c823 and 9855cb2.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift/svt/openshift-svt-master-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (7)
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-aws-5.0-nightly-x86.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-azure-5.0-nightly-x86.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-rosa-5.0-nightly-x86.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-rosa_hcp-5.0-nightly-x86.yaml
  • ci-operator/step-registry/openshift/svt/reliability-v2/openshift-svt-reliability-v2-commands.sh
  • ci-operator/step-registry/openshift/svt/reliability-v2/openshift-svt-reliability-v2-ref.yaml
  • core-services/prow/02_config/_config.yaml
🚧 Files skipped from review as they are similar to previous changes (6)
  • core-services/prow/02_config/_config.yaml
  • ci-operator/step-registry/openshift/svt/reliability-v2/openshift-svt-reliability-v2-ref.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-rosa_hcp-5.0-nightly-x86.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-rosa-5.0-nightly-x86.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-aws-5.0-nightly-x86.yaml
  • ci-operator/config/openshift/svt/openshift-svt-master__reliability-v2-azure-5.0-nightly-x86.yaml

Comment on lines +21 to +24
set +x
SLACK_API_TOKEN=$(cat "/token/reliability-v2-slack-api-token")
export SLACK_API_TOKEN
set -x

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.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Do not trace the child process that consumes SLACK_API_TOKEN.

The guard protects only the cat command and the export. Line 32 then runs bash -x ./start.sh. The current upstream reliability-v2/start.sh expands $SLACK_API_TOKEN in a sed command while generating its configuration. Xtrace can print the expanded command and expose the token in Prow logs. (raw.githubusercontent.com)

Remove -x from Line 32. Add a comment before Line 21 that explains why tracing is disabled.

As per coding guidelines, step-registry command scripts must avoid leaking tokens into CI logs and must document tracing-disabled scopes.

Proposed fix
+# Disable tracing while reading and exporting the Slack API token.
 set +x
 SLACK_API_TOKEN=$(cat "/token/reliability-v2-slack-api-token")
 export SLACK_API_TOKEN
 set -x
 ...
-bash -x ./start.sh -n reliability -t $RELIABILITY_DURATION -c $CONFIG_TEMPLATE -r $TOLERANCE_RATE
+bash ./start.sh -n reliability -t $RELIABILITY_DURATION -c $CONFIG_TEMPLATE -r $TOLERANCE_RATE
🤖 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/openshift/svt/reliability-v2/openshift-svt-reliability-v2-commands.sh`
around lines 21 - 24, Disable xtrace for the child process by changing the
command that invokes ./start.sh from “bash -x” to an untraced invocation, while
preserving the existing token-loading guard. Add a comment immediately before
the set +x block explaining that tracing is disabled to prevent SLACK_API_TOKEN
from appearing in CI logs during configuration generation.

Sources: Coding guidelines, MCP tools

@openshift-ci

openshift-ci Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@mehabhalodiya: all tests passed!

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.

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.

1 participant