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 OpenStack test chain for the OpenShift CI infrastructure. The chain-level TEST_ARGS environment variable (set to --disable-monitor=termination-message-policy) was only affecting the first test step because two subsequent scripts were unconditionally resetting TEST_ARGS to an empty string.

The fix updates two OpenStack test command scripts (openstack-test-openstack-commands.sh and openstack-test-openstack-ote-commands.sh) to preserve any TEST_ARGS value defined at the chain level. By changing from declare TEST_ARGS="" to declare TEST_ARGS="${TEST_ARGS:-}", these scripts now inherit the chain-level configuration while still providing a safe default empty string if no value was previously set.

This ensures the monitor termination-message-policy configuration is consistently applied across all OpenStack test steps, not just the first one.

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.
@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
@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-cluster-cloud-controller-manager-operator-release-4.11-e2e-openstack-ccm openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.10-e2e-openstack-ccm openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.9-e2e-openstack-ccm openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-main-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-5.1-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-5.0-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.23-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.22-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.21-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.20-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.19-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.18-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.17-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.16-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.15-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.14-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.13-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.12-e2e-openstack-ovn openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.8-e2e-openstack openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-cloud-controller-manager-operator-release-4.7-e2e-openstack openshift/cluster-cloud-controller-manager-operator presubmit Registry content changed
pull-ci-openshift-cluster-ingress-operator-master-e2e-openstack-operator openshift/cluster-ingress-operator presubmit Registry content changed
pull-ci-openshift-cluster-ingress-operator-release-5.1-e2e-openstack-operator openshift/cluster-ingress-operator presubmit Registry content changed
pull-ci-openshift-cluster-ingress-operator-release-5.0-e2e-openstack-operator openshift/cluster-ingress-operator presubmit Registry content changed
pull-ci-openshift-cluster-ingress-operator-release-4.23-e2e-openstack-operator openshift/cluster-ingress-operator presubmit Registry content changed
pull-ci-openshift-cluster-ingress-operator-release-4.22-e2e-openstack-operator openshift/cluster-ingress-operator 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
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals.

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 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: dc60647e-9d1a-4762-8b20-430583afc287

📥 Commits

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

📒 Files selected for processing (2)
  • 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

Walkthrough

Two OpenStack test command scripts are updated to preserve externally provided TEST_ARGS environment variables. The initialization now uses parameter expansion (${TEST_ARGS:-}) instead of hard-coded empty strings, enabling test arguments passed from parent CI workflows to propagate into the actual test commands.

Changes

TEST_ARGS Environment Variable Propagation

Layer / File(s) Summary
Enable TEST_ARGS environment variable propagation in OpenStack test scripts
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
TEST_ARGS initialization changed from hard-coded empty strings to parameter expansion defaults in both the main OpenStack and OpenStack OTE test command scripts, allowing external TEST_ARGS values to propagate through to the test invocations.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • openshift/release#80391: The main PR's change to initialize TEST_ARGS from the existing environment supports that PR's e2e chain setting env.TEST_ARGS (e.g., --disable-monitor=termination-message-policy) so the intended flags are propagated into the openstack-tests command.

Suggested labels

lgtm

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 directly summarizes the main change: updating OpenStack test scripts to inherit TEST_ARGS 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 The PR modifies only the two OpenStack step command bash scripts; they contain no Ginkgo It/Describe/Context/When test titles, so no unstable/dynamic test names were introduced.
Test Structure And Quality ✅ Passed This PR modifies shell scripts in the ci-operator step registry, not Ginkgo test code. The check is inapplicable since the PR contains no Go test files or Ginkgo blocks.
Microshift Test Compatibility ✅ Passed PR only updates TEST_ARGS initialization in two OpenStack bash scripts; no new Ginkgo e2e tests were added, so MicroShift API compatibility check is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PR #80459 only updates two .sh OpenStack command scripts (TEST_ARGS declaration); no new/changed Ginkgo e2e tests exist to assess for SNO multi-node assumptions.
Topology-Aware Scheduling Compatibility ✅ Passed The PR only changes TEST_ARGS initialization to ${TEST_ARGS:-} in two OpenStack test command scripts; inspected files contain no scheduling/affinity/topology/PDB/nodeSelector constraints.
Ote Binary Stdout Contract ✅ Passed PR only changes TEST_ARGS initialization in two OpenStack shell scripts; no OTE/extension Go code (main/init/TestMain) was modified, so stdout JSON contract isn’t affected.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo e2e test code added (changed *_test.go are only tool tests); PR only updates TEST_ARGS init in the OpenStack step scripts.
No-Weak-Crypto ✅ Passed Inspected the two changed bash scripts; they only adjust TEST_ARGS initialization and contain no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB usage or custom crypto/secret token comparisons.
Container-Privileges ✅ Passed PR 80459 modifies only two OpenStack command .sh scripts (TEST_ARGS init). Keyword search shows no hostPID/hostNetwork/hostIPC/SYS_ADMIN/allowPrivilegeEscalation/privileged.
No-Sensitive-Data-In-Logs ✅ Passed Both changed scripts only echo dry-run test lists and OPENSTACK_TEST_SKIPS; no set -x and no logs/echoes of passwords, tokens, API keys, session IDs, or hostnames. Change only adjusts TEST_ARGS def...

✏️ 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.

@openshift-ci

openshift-ci Bot commented Jun 12, 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 a7cafe2 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