Skip to content

NO-JIRA: e2e: fix label-filter shell quoting in test-e2e target#456

Open
tashirj wants to merge 1 commit into
openshift:masterfrom
tashirj:fix/e2e-label-filter-quotingsync
Open

NO-JIRA: e2e: fix label-filter shell quoting in test-e2e target#456
tashirj wants to merge 1 commit into
openshift:masterfrom
tashirj:fix/e2e-label-filter-quotingsync

Conversation

@tashirj

@tashirj tashirj commented Jul 9, 2026

Copy link
Copy Markdown

Problem

make test-e2e fails immediately with a Ginkgo label-filter syntax error because bash word-splits the unquoted $(E2E_GINKGO_LABEL_FILTER) expansion at spaces and &&.

Fix

Wrap $(E2E_GINKGO_LABEL_FILTER) in single quotes at the Makefile call site.

Same fix as #447 (merged to cert-manager-1.19).

Note

A companion PR to openshift/release is required to remove embedded " from CI E2E_GINKGO_LABEL_FILTER job values once this lands.

Test plan

  • make test-e2e with default filter parses correctly
  • CI e2e jobs pass after openshift/release update

Summary by CodeRabbit

  • Tests
    • Updated end-to-end test execution to handle label filters more reliably during test runs.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Walkthrough

The test-e2e Makefile target's go test invocation now wraps the E2E_GINKGO_LABEL_FILTER variable in single quotes when passed to the -ginkgo.label-filter flag, rather than leaving it unquoted.

Changes

Makefile e2e label filter quoting

Layer / File(s) Summary
Quote label filter argument
Makefile
The -ginkgo.label-filter flag now uses '$(E2E_GINKGO_LABEL_FILTER)' instead of the unquoted variable form.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
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 Only Makefile changed; no Ginkgo It/Describe/Context titles were added or modified.
Test Structure And Quality ✅ Passed Only Makefile changed; no Ginkgo test files or test logic were modified, so the test-quality checklist is not applicable.
Microshift Test Compatibility ✅ Passed Only Makefile quoting changed; no Ginkgo tests, APIs, namespaces, or MicroShift-sensitive e2e logic were added or modified.
Single Node Openshift (Sno) Test Compatibility ✅ Passed Only Makefile changed; no new or modified Ginkgo e2e tests were added, so the SNO compatibility check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed Only a Makefile quoting fix in test-e2e changed; no manifests, controllers, or scheduling logic were modified.
Ote Binary Stdout Contract ✅ Passed Only Makefile quoting changed; no process-level code or stdout writes were modified.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed Only a Makefile label-filter quoting change was made; no new Ginkgo tests or network-dependent code were added.
No-Weak-Crypto ✅ Passed Only change is shell quoting in Makefile; no crypto, weak cipher, or secret-comparison code was added.
Container-Privileges ✅ Passed PASS: The PR only changes Makefile quoting for test-e2e; HEAD^..HEAD shows no container/K8s manifest edits or added privileged/hostPID/hostNetwork settings.
No-Sensitive-Data-In-Logs ✅ Passed Only a Makefile quoting fix changed; no logging or sensitive-data exposure was added.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: quoting the E2E label filter in the test-e2e target.
✨ 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 TrilokGeer and swghosh July 9, 2026 14:21
@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 9, 2026
@openshift-ci

openshift-ci Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Hi @tashirj. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@arun717

arun717 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 9, 2026
@arun717

arun717 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

override failing jobs, which is because of label parsing issue, addressed in openshift/release#81499

/override ci/prow/e2e-operator

@openshift-ci

openshift-ci Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@arun717: arun717 unauthorized: /override is restricted to Repo administrators, approvers in top level OWNERS file, and the following github teams:openshift: openshift-release-oversight openshift-staff-engineers openshift-sustaining-engineers.

Details

In response to this:

override failing jobs, which is because of label parsing issue, addressed in openshift/release#81499

/override ci/prow/e2e-operator

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.

@bharath-b-rh

Copy link
Copy Markdown
Contributor

The e2e CI jobs are failing because of the missing dependent change in openshift/release repo. Overriding here and will rehearsed in release repo with required changes.

/lgtm
/approve
/label docs-approved
/label qe-approved
/label px-approved

/override ci/prow/e2e-operator
/override ci/prow/e2e-operator-tech-preview

@openshift-ci openshift-ci Bot added docs-approved Signifies that Docs has signed off on this PR qe-approved Signifies that QE has signed off on this PR px-approved Signifies that Product Support has signed off on this PR labels Jul 10, 2026
@openshift-ci

openshift-ci Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arun717, bharath-b-rh, tashirj

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 Jul 10, 2026
@openshift-ci

openshift-ci Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@bharath-b-rh: Overrode contexts on behalf of bharath-b-rh: ci/prow/e2e-operator, ci/prow/e2e-operator-tech-preview

Details

In response to this:

The e2e CI jobs are failing because of the missing dependent change in openshift/release repo. Overriding here and will rehearsed in release repo with required changes.

/lgtm
/approve
/label docs-approved
/label qe-approved
/label px-approved

/override ci/prow/e2e-operator
/override ci/prow/e2e-operator-tech-preview

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.

@openshift-ci

openshift-ci Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@tashirj: 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/prow/e2e-operator-tech-preview 0e23ea7 link false /test e2e-operator-tech-preview
ci/prow/e2e-operator 0e23ea7 link true /test e2e-operator

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.

@bharath-b-rh

Copy link
Copy Markdown
Contributor

/ok-to-test

@openshift-ci openshift-ci Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 10, 2026
@bharath-b-rh

Copy link
Copy Markdown
Contributor

/retitle NO-JIRA: e2e: fix label-filter shell quoting in test-e2e target

@openshift-ci openshift-ci Bot changed the title e2e: fix label-filter shell quoting in test-e2e target NO-JIRA: e2e: fix label-filter shell quoting in test-e2e target Jul 10, 2026
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 10, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@tashirj: This pull request explicitly references no jira issue.

Details

In response to this:

Problem

make test-e2e fails immediately with a Ginkgo label-filter syntax error because bash word-splits the unquoted $(E2E_GINKGO_LABEL_FILTER) expansion at spaces and &&.

Fix

Wrap $(E2E_GINKGO_LABEL_FILTER) in single quotes at the Makefile call site.

Same fix as #447 (merged to cert-manager-1.19).

Note

A companion PR to openshift/release is required to remove embedded " from CI E2E_GINKGO_LABEL_FILTER job values once this lands.

Test plan

  • make test-e2e with default filter parses correctly
  • CI e2e jobs pass after openshift/release update

Summary by CodeRabbit

  • Tests
  • Updated end-to-end test execution to handle label filters more reliably during test runs.

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 openshift-eng/jira-lifecycle-plugin repository.

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. docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants