openstack: inherit TEST_ARGS in openstack-tests steps#80459
Conversation
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.
|
[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 DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
[REHEARSALNOTIFIER]
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-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
WalkthroughTwo OpenStack test command scripts are updated to preserve externally provided ChangesTEST_ARGS Environment Variable Propagation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn |
|
@mandre: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn |
|
@mandre: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
infra issues? /pj-rehearse pull-ci-openshift-installer-main-e2e-openstack-ovn |
|
@mandre: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@mandre: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
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_ARGSenvironment variable (set to--disable-monitor=termination-message-policy) was only affecting the first test step because two subsequent scripts were unconditionally resettingTEST_ARGSto an empty string.The fix updates two OpenStack test command scripts (
openstack-test-openstack-commands.shandopenstack-test-openstack-ote-commands.sh) to preserve anyTEST_ARGSvalue defined at the chain level. By changing fromdeclare TEST_ARGS=""todeclare 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.