Skip to content

openstack: inherit TEST_ARGS in openstack-tests steps#80459

Open
mandre wants to merge 1 commit into
openshift:mainfrom
shiftstack:openstack-test-test-args
Open

openstack: inherit TEST_ARGS in openstack-tests steps#80459
mandre wants to merge 1 commit into
openshift:mainfrom
shiftstack:openstack-test-test-args

Conversation

@mandre

@mandre mandre commented Jun 12, 2026

Copy link
Copy Markdown
Member

The chain-level TEST_ARGS=--disable-monitor=termination-message-policy only affected the openshift-e2e-test step (step 1 of the chain). Both openstack-test-openstack-commands.sh and openstack-test-openstack-ote- commands.sh were clobbering TEST_ARGS with 'declare TEST_ARGS=""', so the monitor was still running in step 2.

Change to 'declare TEST_ARGS="${TEST_ARGS:-}"' so the scripts inherit the chain's value.

Summary by CodeRabbit

This PR fixes environment variable inheritance in the OpenShift CI OpenStack test chain (ci-operator step-registry). Two step command scripts were unconditionally resetting TEST_ARGS to an empty string, preventing a chain-level TEST_ARGS value (e.g. --disable-monitor=termination-message-policy) from applying to later steps.

Practical changes:

  • ci-operator/step-registry/openstack/test/openstack/openstack-test-openstack-commands.sh
  • ci-operator/step-registry/openstack/test/openstack-ote/openstack-test-openstack-ote-commands.sh

Both scripts now initialize TEST_ARGS with parameter expansion (declare TEST_ARGS="${TEST_ARGS:-}") instead of a literal empty string, so they inherit any TEST_ARGS set at the chain/job level while still defaulting to empty when unset.

Configuration additions:

  • ci-operator/step-registry/openstack/test/openstack/openstack-test-openstack-ref.yaml
  • ci-operator/step-registry/openstack/test/openstack-ote/openstack-test-openstack-ote-ref.yaml

Both ref YAMLs add a TEST_ARGS env entry with a default empty string and documentation describing it as additional arguments passed to (openstack-)openshift-tests.

Effect:

  • Ensures chain-level TEST_ARGS (such as disabling the monitor) is consistently applied across all OpenStack test steps rather than only the first step.

@openshift-ci

openshift-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mandre

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

The pull request process is described 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

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 12, 2026
@openshift-ci openshift-ci Bot requested review from gryf and stephenfin June 12, 2026 08:00
@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: d8ea8db3-aead-4b78-93d2-51bc58a07fe9

📥 Commits

Reviewing files that changed from the base of the PR and between a7cafe2 and bc89a80.

📒 Files selected for processing (4)
  • ci-operator/step-registry/openstack/test/openstack-ote/openstack-test-openstack-ote-commands.sh
  • ci-operator/step-registry/openstack/test/openstack-ote/openstack-test-openstack-ote-ref.yaml
  • ci-operator/step-registry/openstack/test/openstack/openstack-test-openstack-commands.sh
  • ci-operator/step-registry/openstack/test/openstack/openstack-test-openstack-ref.yaml
✅ Files skipped from review due to trivial changes (1)
  • ci-operator/step-registry/openstack/test/openstack/openstack-test-openstack-commands.sh
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/step-registry/openstack/test/openstack-ote/openstack-test-openstack-ote-commands.sh

Walkthrough

Step registry refs add a TEST_ARGS env entry and both OpenStack test command scripts now initialize TEST_ARGS via parameter expansion (${TEST_ARGS:-}) so externally provided test arguments propagate into the test invocations.

Changes

TEST_ARGS Environment Variable Propagation

Layer / File(s) Summary
Step registry env additions
ci-operator/step-registry/openstack/test/openstack-ote/openstack-test-openstack-ote-ref.yaml, ci-operator/step-registry/openstack/test/openstack/openstack-test-openstack-ref.yaml
Add TEST_ARGS env entries with empty-string defaults and docs indicating the value will be forwarded to the test runner.
Test script parameter expansion
ci-operator/step-registry/openstack/test/openstack-ote/openstack-test-openstack-ote-commands.sh, ci-operator/step-registry/openstack/test/openstack/openstack-test-openstack-commands.sh
Initialize TEST_ARGS using parameter expansion (declare TEST_ARGS="${TEST_ARGS:-}") instead of a hard-coded empty string so any externally set TEST_ARGS value is preserved when constructing the test command.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • openshift/release#80391: Also propagates TEST_ARGS into OpenStack test step flow to allow passing specific openstack-tests flags.

Suggested labels

lgtm, rehearsals-ack

Suggested reviewers

  • gryf
  • stephenfin
🚥 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 'openstack: inherit TEST_ARGS in openstack-tests steps' accurately and concisely describes the main change: updating OpenStack test scripts to inherit the TEST_ARGS environment variable from the chain level instead of resetting it.
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 PR #80459 only updates OpenStack step-registry bash scripts and YAML; no Go/Ginkgo test titles (It/Describe/Context/When) are modified, so no unstable/dynamic test names are introduced.
Test Structure And Quality ✅ Passed PR #80459 changes only OpenStack CI step shell scripts and YAML ref files (no Go/Ginkgo *_test.go code), so the Ginkgo test structure/quality check is not applicable.
Microshift Test Compatibility ✅ Passed PR #80459 changes only OpenStack step-registry bash scripts and ref YAMLs (TEST_ARGS init); no new/changed Ginkgo e2e *_test.go tests, so MicroShift API-compat scan is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PR commit bc89a80 touches OpenStack shell/yaml files; changed _test.go are only in tools/ (unit tests), with no e2e/Ginkgo spec files added—no SNO assumptions to evaluate.
Topology-Aware Scheduling Compatibility ✅ Passed Repo inspection shows only TEST_ARGS env/command changes in openstack test scripts and step-registry YAML; no affinity/topology/nodeSelector/PDB scheduling constraints detected.
Ote Binary Stdout Contract ✅ Passed PR only modifies bash shell scripts and YAML CI/CD configuration; no OTE binary or Go code changes. The check about OTE binary stdout JSON contracts is not applicable.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR only updates OpenStack step-registry shell scripts and YAML env (TEST_ARGS) for inheritance; no new Ginkgo e2e tests or IPv4/external connectivity code to flag. citeturn2view0turn3view0turn0...
No-Weak-Crypto ✅ Passed Only TEST_ARGS init changes to ${TEST_ARGS:-} and YAML env adds; no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB/custom crypto found. citeturn3view0turn6view0turn6view1
Container-Privileges ✅ Passed Reviewed the PR’s modified OpenStack step registry shell scripts and ref YAMLs; none contain privileged/hostPID/hostNetwork/hostIPC/SYS_ADMIN/allowPrivilegeEscalation:true settings.
No-Sensitive-Data-In-Logs ✅ Passed PR only changes TEST_ARGS init; scripts echo only test/skip info and OPENSTACK_TEST_SKIPS, with no set -x or logging of passwords/tokens/PII/hostnames.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@mandre

mandre commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

/pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@mandre

mandre commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

/pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@mandre

mandre commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

infra issues?

/pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@mandre

mandre commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

/pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

The chain-level TEST_ARGS=--disable-monitor=termination-message-policy
only affected the openshift-e2e-test step (step 1 of the chain). Both
openstack-test-openstack-commands.sh and openstack-test-openstack-ote-
commands.sh were clobbering TEST_ARGS with 'declare TEST_ARGS=""',
so the monitor was still running in step 2.

Change to 'declare TEST_ARGS="${TEST_ARGS:-}"' so the scripts
inherit the chain's value.
@mandre mandre force-pushed the openstack-test-test-args branch from a7cafe2 to bc89a80 Compare June 12, 2026 19:47
@mandre

mandre commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

/pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@mandre: 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]
@mandre: 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-cloud-network-config-controller-main-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-5.1-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-5.0-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.23-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.22-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.21-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.20-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.19-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.18-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.17-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.16-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.15-e2e-openstack-sdn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.15-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.14-e2e-openstack-sdn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.14-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.13-e2e-openstack-sdn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.13-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.12-e2e-openstack-sdn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-cloud-network-config-controller-release-4.12-e2e-openstack-ovn-serial-e2e-only openshift/cloud-network-config-controller presubmit Registry content changed
pull-ci-openshift-kubernetes-autoscaler-main-e2e-openstack-periodic-pre openshift/kubernetes-autoscaler presubmit Registry content changed
pull-ci-openshift-kubernetes-autoscaler-release-5.1-e2e-openstack-periodic-pre openshift/kubernetes-autoscaler presubmit Registry content changed
pull-ci-openshift-kubernetes-autoscaler-release-5.0-e2e-openstack-periodic-pre openshift/kubernetes-autoscaler presubmit Registry content changed
pull-ci-openshift-kubernetes-autoscaler-release-4.23-e2e-openstack-periodic-pre openshift/kubernetes-autoscaler presubmit Registry content changed
pull-ci-openshift-kubernetes-autoscaler-release-4.22-e2e-openstack-periodic-pre openshift/kubernetes-autoscaler presubmit Registry content changed
pull-ci-openshift-kubernetes-autoscaler-release-4.21-e2e-openstack-periodic-pre openshift/kubernetes-autoscaler presubmit Registry content changed

A total of 929 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs.

A full list of affected jobs can be found here

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.

@mandre

mandre commented Jun 13, 2026

Copy link
Copy Markdown
Member Author

/pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@openshift-ci

openshift-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

@mandre: The following test 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/openshift/installer/main/e2e-openstack-ovn bc89a80 link unknown /pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn

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

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant