Skip to content

chore(e2e): Use DeferCleanup for namespace cleanup in parallel tests 1-091 to 1-144 - #1534

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

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

Conversation

@Gabrielandre02

@Gabrielandre02 Gabrielandre02 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Refs #1464

Replaces defer cleanupFunc() and defer nsCleanup() with Ginkgo's DeferCleanup in 27 parallel specs (1-091 through 1-144). 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-120 banner, 1-121, 1-124, 1-133, 1-141) and the 1-120 system CA trust spec (cleanupNs). They need a different conversion and will follow separately.

Fourth of several small PRs, independent of #1531, #1532, #1533 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 adamsaleh 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 42c8611.

Files selected for processing: 27

  • test/openshift/e2e/ginkgo/parallel/1-091_argocd_app_validate-applicationset-status_test.go
  • test/openshift/e2e/ginkgo/parallel/1-095_validate_dex_clientsecret_test.go
  • test/openshift/e2e/ginkgo/parallel/1-096-validate_home_env_argocd_controller_test.go
  • test/openshift/e2e/ginkgo/parallel/1-098_validate_dex_clientsecret_deprecated.go
  • test/openshift/e2e/ginkgo/parallel/1-099_validate_server_autoscale_test.go
  • test/openshift/e2e/ginkgo/parallel/1-103_argocd_alpha_to_beta_conversion_test.go
  • test/openshift/e2e/ginkgo/parallel/1-104_validate_applicationset_tls_scm_volume_mount_test.go
  • test/openshift/e2e/ginkgo/parallel/1-106_validate_appcontroller_initcontainers_test.go
  • test/openshift/e2e/ginkgo/parallel/1-107_validate_server_initcontainers_test.go
  • test/openshift/e2e/ginkgo/parallel/1-108_validate_appcontroller_sidecar_test.go
  • test/openshift/e2e/ginkgo/parallel/1-109_validate_server_sidecar_test.go
  • test/openshift/e2e/ginkgo/parallel/1-111_validate_appcontroller_initcontainers_test.go
  • test/openshift/e2e/ginkgo/parallel/1-112_validate_server_initcontainers_test.go
  • test/openshift/e2e/ginkgo/parallel/1-113_validate_appcontroller_sidecar_test.go
  • test/openshift/e2e/ginkgo/parallel/1-114_validate_server_sidecar_test.go
  • test/openshift/e2e/ginkgo/parallel/1-115_validate_controller_extra_command_args_test.go
  • test/openshift/e2e/ginkgo/parallel/1-117_redis_SA_reconciliation_test.go
  • test/openshift/e2e/ginkgo/parallel/1-118_validate_redis_ssc_test.go
  • test/openshift/e2e/ginkgo/parallel/1-119_argocd_respectRBAC_test.go
  • test/openshift/e2e/ginkgo/parallel/1-120_validate_resource_health_persisted_in_application_status_test.go
  • test/openshift/e2e/ginkgo/parallel/1-125_validate_applicationset_cleanup_when_spec_field_omitted_test.go
  • test/openshift/e2e/ginkgo/parallel/1-125_validate_server_serving_cert_annotation_restore_test.go
  • test/openshift/e2e/ginkgo/parallel/1-126_validate_declarative_webhook_secrets_test.go
  • test/openshift/e2e/ginkgo/parallel/1-126_validate_servicemonitor_metrics_config_test.go
  • test/openshift/e2e/ginkgo/parallel/1-131_validate_rolebinding_no_tracking_annotation_propagation_test.go
  • test/openshift/e2e/ginkgo/parallel/1-143_dex_OpenshiftOAuth_test.go
  • test/openshift/e2e/ginkgo/parallel/1-144_validate_controller_go_runtime_tuning_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-091 to 1-144

Refs redhat-developer#1464

Replace defer cleanupFunc() and defer nsCleanup() inside It blocks with
Ginkgo's DeferCleanup. Specs that keep the cleanup func in a spec
variable and call it from AfterEach (1-120 banner, 1-121, 1-124, 1-133,
1-141) and the 1-120 system CA trust spec are left alone.

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

jgwest commented Nov 14, 2026

Copy link
Copy Markdown
Member

/ok-to-test

@Gabrielandre02

Copy link
Copy Markdown
Contributor Author

/retest-required

@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 815c237 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