Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor beforeSuite in integration tests #508

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

ahg-g
Copy link
Contributor

@ahg-g ahg-g commented Mar 15, 2025

Another incremental cleanup to the integration tests.

@kfswain

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahg-g

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot requested review from Jeffwan and kfswain March 15, 2025 01:42
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 15, 2025
Copy link

netlify bot commented Mar 15, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 95359e7
🔍 Latest deploy log https://app.netlify.com/sites/gateway-api-inference-extension/deploys/67d4db18a000d70008e146a4
😎 Deploy Preview https://deploy-preview-508--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kfswain
Copy link
Collaborator

kfswain commented Mar 17, 2025

/lgtm
/hold

One little nit-level comment. Otherwise looks great. Thanks!

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 17, 2025
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 17, 2025
@ahg-g
Copy link
Contributor Author

ahg-g commented Mar 17, 2025

/lgtm /hold

One little nit-level comment. Otherwise looks great. Thanks!

I don't see the comment :)

pod := utiltesting.MakePod(pod.NamespacedName.Name).
Namespace(pod.NamespacedName.Namespace).Complete().ObjRef()

if err := k8sClient.Delete(context.Background(), pod); err != nil {
logutil.Fatal(logger, err, "Failed to delete pod", "pod", fakePod)
}
}
for _, m := range opts.models {
if err := k8sClient.Delete(context.Background(), m); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does DeleteAllOf() not work here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason it didn't work, I will look into it later.

@kfswain
Copy link
Collaborator

kfswain commented Mar 17, 2025

I don't see the comment :)

😭 It helps if I press the button. Apologies lol

@ahg-g
Copy link
Contributor Author

ahg-g commented Mar 17, 2025

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 17, 2025
@k8s-ci-robot k8s-ci-robot merged commit 3c6afd6 into kubernetes-sigs:main Mar 17, 2025
7 of 8 checks passed
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants