-
Notifications
You must be signed in to change notification settings - Fork 252
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
Update api version, vendor & enhance testing #605
Update api version, vendor & enhance testing #605
Conversation
Hi @jchunkins. Thanks for your PR. I'm waiting for a operator-framework member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
Codecov Report
@@ Coverage Diff @@
## master #605 +/- ##
=======================================
Coverage 50.59% 50.59%
=======================================
Files 68 68
Lines 5483 5483
=======================================
Hits 2774 2774
Misses 2097 2097
Partials 612 612
Continue to review full report at Codecov.
|
/ok-to-test |
/retest |
/test ? |
@jchunkins: The following commands are available to trigger jobs:
Use In response to this:
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/test-infra repository. |
@dinhxuanvu any idea on how to restart e2e-minikube and e2e-kind ? |
You need to manually kick those failed jobs. I'm not entirely sure prow has the ability to requeue GitHub actions, but I requeued them in the meantime. When you click on one of the failed checks, there's an option to re-test - It's possible that requires some level of permissions in the organization. |
@timflannagan Thanks for the assist. Since I am not in the org, I don't see the UI controls to allow restarting GitHub Actions. Maybe someday I'll get added. At any rate, thanks again for your help. |
Hmm, it looks like that recently added bundle unpack command has been producing more flakes recently. Going to retest the jobs again, but we may need to start diving into those errors. |
I edited the make file on my local system and added
And then executed the test:
And it repeatedly runs without failing. Must be some combination of running with other tests that makes it fail? |
Same, I wasn't able to reproduce it consistently when I was attempting to dive into those errors locally a couple of weeks back. It seems like it pops up often enough in the e2e-[minikube,kind] tests. @njhale Any idea why that bundle unpack command occasionally fails the e2e suite? It seems like we're expecting that command will purposefully fail when feeding it an invalid bundle, but the error output is nil. |
@timflannagan @njhale I am not sure if the unpack flake is due to TLS in some oddball circumstances? Or maybe it only happens on linux? Since @timflannagan saw the issue previously it seems unlikely to be related to my changes in this PR. While I am thinking about TLS, I have included some changes relating to This effectively makes the To see all of the places where Is there anyone else I should tag on this PR to discuss this? I can always open up a separate PR to handle this sort of change if we think its worthwhile. |
Regarding the flakes in |
Yeah, agreed and we just merged a fix that disabled those problematic/flaky tests, with the intention of re-enabling in the next couple of weeks. It looks like GitHub actions will run out-of-date workflows/tests, so we may need to open/close this PR and re-apply any labels if the flakes are too overwhelming, or force an empty commit. |
But just to clarify, those bundle unpack errors are known and tracked, and we won't block merging PR content with e2e failures that fail solely for something that's difficult to reproduce locally. |
OK... I updated |
Excellent, all tests pass now. Now we just need review labels. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly a bunch of non-blocking nits, though I'm interested in the choice to match error strings in their entirety.
Also, is it necessary to include the api and k8s bump in the same PR as the other changes? It seems like it could be a good idea to make that dependency bump a standalone PR.
/hold cancel |
@jchunkins Looks like the checks are being populated with a |
@timflannagan rebased and pushed |
/lgtm |
@timflannagan can you poke the git actions for e2e-kind and e2e-minikube it appears Podman installs are not happening via apt-get. Hopefully whatever was wrong with the repos is fixed or its a transient issue 🤷 |
@jchunkins I'm working on fixing that in the background right now as it's affecting other PRs too. Ever since I joined the team, that podman dependency has been real problematic, so hopefully it's as simple as reverting the changes (i.e. workarounds) that were made over the last month or so. |
@jchunkins Alright those fixes landed in #635 - I re-spun the e2e-* jobs but they're still running tests against a stale master commit, which makes sense as you're also introducing changes to those same workflows that were touched. Can you rebase again 😆? |
As an aside, this is one of the obvious pain points of migrating from largely prow-based tests to GH actions, but hopefully, we're almost there with merging this. |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/hold |
OK merged again... we'll see how it goes |
- update api project to v0.7.1 to pick up validator (and other) changes - update code paths which support skip tls but did not expose it - add test case and test data for annotation case sensitive validation - update test case to handle multiple errors - add .gitignore for artifacts generated from e2e tests - use mkcerts for better crossplatform SSL cert generation - create dedicated script for starting regsitry with & without SSL - implement e2e ctx (i.e. context) package - Provision impl for kind servers - Provision impl for kubeconfig (i.e. all other server types) - adjust makefile to account for `kind` build tag - allow e2e target to use focus flag - allow e2e target to use skip tls flag for local testing - adjust test.yml git action workflow to use start_registry script - adjust test.yml git action to remove kind (since its now dynamic) - add e2e documentation for all scenarios - use regex to determine possible kind control plane names - add --name argument for kind load docker-image call - update vendor Implements operator-framework#568 Signed-off-by: John Hunkins <[email protected]>
/lgtm |
/hold cancel |
@timflannagan Thank you very much for your help getting this across the finish line. |
Description of the change:
The original purpose for this PR was to update the
api
project to v0.6.1 to pick up validator changes, but I decided to use this opportunity to add further testing enhancements and improve documentation. I wanted to run the e2e tests locally without needing to setup a TLS enabled registry, and discovered some code paths which are capable of handling "skip TLS" but did not expose the feature. I've executed unit tests and e2e tests using my local development machine (a Mac) and all run cleanly (with exception of one e2e test which requires a linux executable to function correctly, so it should work in the GitHub Actions environment).kind
build tagImplements #568
Closes #568
Signed-off-by: John Hunkins [email protected]
Motivation for the change:
See Description
Reviewer Checklist
/docs