Skip to content

chore(e2e): Use DeferCleanup for namespace cleanup in parallel tests 1-001 to 1-009 - #1535

Merged
jgwest merged 1 commit into
redhat-developer:masterfrom
Gabrielandre02:e2e-defercleanup-parallel-5
Nov 17, 2026
Merged

jgwest merged 1 commit into
redhat-developer:masterfrom
Gabrielandre02:e2e-defercleanup-parallel-5

Conversation

@Gabrielandre02

@Gabrielandre02 Gabrielandre02 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Refs #1464

Replaces defer nsCleanup() and defer cleanupFunc1/2() with Ginkgo's DeferCleanup in 5 parallel specs (1-001, 1-003, 1-004, 1-005, 1-009). Cleanups still run in reverse registration order.

Left alone: specs that keep the cleanup func in a spec variable and call it from AfterEach (1-007 x2, 1-008). They need a different conversion and will follow separately.

Fifth of several small PRs, independent of #1531 to #1534 and #1504.

Testing

go vet ./test/openshift/e2e/ginkgo/parallel/ is clean. E2E specs not run locally (no cluster).

@openshift-ci

openshift-ci Bot commented Nov 12, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jannfis 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 Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 6 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5fb7a03 and b0ad9d7.

Files selected for processing: 5

  • test/openshift/e2e/ginkgo/parallel/1-001_alpha_to_beta_dex_conversion_test.go
  • test/openshift/e2e/ginkgo/parallel/1-003_alpha_to_beta_sso_conflict_conversion_test.go
  • test/openshift/e2e/ginkgo/parallel/1-004_beta_to_alpha_conversion_test.go
  • test/openshift/e2e/ginkgo/parallel/1-005_validate_route_tls_test.go
  • test/openshift/e2e/ginkgo/parallel/1-009_validate-manage-other-namespace_test.go

@openshift-ci

openshift-ci Bot commented Nov 12, 2026

Copy link
Copy Markdown

Hi @Gabrielandre02. Thanks for your PR.

I'm waiting for a redhat-developer 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.

…1-001 to 1-009

Refs redhat-developer#1464

Replace defer nsCleanup() and defer cleanupFunc1/2() inside It blocks
with Ginkgo's DeferCleanup. Specs that call the cleanup func from
AfterEach (1-007 x2, 1-008) are left alone.

Signed-off-by: gabriel.carmo <admin@gabrielandre.com.br>
@Gabrielandre02
Gabrielandre02 force-pushed the e2e-defercleanup-parallel-5 branch from ec5ae4a to b0ad9d7 Compare November 13, 2026 23:41
@jgwest

jgwest commented Nov 14, 2026

Copy link
Copy Markdown
Member

/ok-to-test

@jgwest

jgwest commented Nov 16, 2026

Copy link
Copy Markdown
Member

/retest

1 similar comment
@jgwest

jgwest commented Nov 17, 2026

Copy link
Copy Markdown
Member

/retest

@jgwest
jgwest merged commit 7bd0d0a into redhat-developer:master Nov 17, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants