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

RHOAIENG-15772: tests(odh-nbc): wait for controller manager to stop before stopping envtest #463

Merged

Conversation

jiridanek
Copy link
Member

@jiridanek jiridanek commented Nov 17, 2024

https://issues.redhat.com/browse/RHOAIENG-15772

Relates to

Description

Otherwise, there will be some errors printed in the output. It was not breaking anything, but it was unpleasant to look at.

The notebook-controller does not seem to be suffering from this. Probably because it does not use a webhook.

Example of the error message that's prevented by this

2024-11-17T20:19:57+01:00       ERROR   controller-runtime.certwatcher  error re-reading certificate    {"error": "open /var/folders/f1/3m518k5d34l72v_9nqyjzqm80000gn/T/envtest-serving-certs-737480808/tls.crt: no such file or directory"}

How Has This Been Tested?

make test

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

…efore stopping envtest

Otherwise, there will be some errors printed in the output.
It was not breaking anything, but it was unpleasant to look at.

The notebook-controller does not seem to be suffering from this.
Probably because it does not use a webhook.

Example of the error message that's prevented by this

```
2024-11-17T20:19:57+01:00       ERROR   controller-runtime.certwatcher  error re-reading certificate    {"error": "open /var/folders/f1/3m518k5d34l72v_9nqyjzqm80000gn/T/envtest-serving-certs-737480808/tls.crt: no such file or directory"}
```
@openshift-ci openshift-ci bot requested review from atheo89 and dibryant November 17, 2024 20:14
cfg *rest.Config
cli client.Client
envTest *envtest.Environment
cfg *rest.Config
Copy link
Member Author

Choose a reason for hiding this comment

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

The linter is right, but that's issue that has been in the repo for a long time already. See here for fix

Copy link
Member Author

Choose a reason for hiding this comment

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

/override "Code static analysis / golangci-lint (components/odh-notebook-controller)"

Copy link
Member Author

Choose a reason for hiding this comment

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

/override "Code static analysis / golangci-lint (components/odh-notebook-controller)"

Copy link
Member Author

Choose a reason for hiding this comment

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

/override "golangci-lint (components/odh-notebook-controller)"

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, I rebased merged

@jstourac
Copy link
Member

/lgtm

Thank you for this!

@jiridanek
Copy link
Member Author

/approve
the failing test should go away when prow retests, or maybe I'd need to retrigger manually

This comment was marked as outdated.

This comment was marked as outdated.

Copy link

openshift-ci bot commented Nov 19, 2024

@jiridanek: Overrode contexts on behalf of jiridanek: golangci-lint (components/odh-notebook-controller)

In response to this:

/override "golangci-lint (components/odh-notebook-controller)"

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.

@jstourac
Copy link
Member

/approve the failing test should go away when prow retests, or maybe I'd need to retrigger manually

shouldn't you rebase first to make this work? or we can just override?

@jiridanek
Copy link
Member Author

jiridanek commented Nov 19, 2024

I guess I'll have to do that. My reasoning was that I did not want to lose the lgtm; updated the PR now

@jiridanek jiridanek closed this Nov 19, 2024
@jiridanek jiridanek reopened this Nov 19, 2024
@openshift-ci openshift-ci bot removed the lgtm label Nov 19, 2024
@jiridanek
Copy link
Member Author

wow, the update of a PR branch with merge really shows much more cleanly in GH ui; but I'm still partial to rebases, old habits

@jiridanek
Copy link
Member Author

/approve

Copy link

openshift-ci bot commented Nov 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jiridanek

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

@jstourac
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 19, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit adc6db1 into opendatahub-io:main Nov 19, 2024
12 checks passed
@jiridanek jiridanek linked an issue Dec 1, 2024 that may be closed by this pull request
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.

TODO: unclean shutdown of envtest e2e tests
2 participants