-
Notifications
You must be signed in to change notification settings - Fork 113
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
e2e: Run on other architectures #799
e2e: Run on other architectures #799
Conversation
Hi @gquillar. Thanks for your PR. I'm waiting for a openshift 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. |
/ok-to-test |
/retest |
/test e2e-aws |
Did you run the e2e tests in your environment? Did they work OK? |
@jhrozek, e2e tests worked fine in my environment. I've rebased the patches atop origin/master and pushed again. |
I didn't understand why a lot of CI tests failed with scan timeouts although they worked fine in my environment. |
On Thu, Mar 03, 2022 at 06:53:17AM -0800, Gilles Quillard wrote:
I didn't understand why a lot of CI tests failed with scan timeouts although they worked fine in my environment.
I don't know if the rebase may have changed that. Let's see...
Yeah, I wanted to run the tests locally in my cluster to see what's
going on, but had issues applying the PR. Now I can at least check it
out, thanks.
|
@@ -37,8 +38,10 @@ RELATED_IMAGE_OPENSCAP_TAG?=1.3.5 | |||
# Image path to use. Set this if you want to use a specific path for building | |||
# or your e2e tests. This is overwritten if we bulid the image and push it to | |||
# the cluster or if we're on CI. | |||
DEFAULT_IMAGE_OPERATOR_PATH=quay.io/compliance-operator/$(APP_NAME):latest | |||
DEFAULT_IMAGE_OPENSCAP_PATH=quay.io/compliance-operator/$(RELATED_IMAGE_OPENSCAP_NAME):$(RELATED_IMAGE_OPENSCAP_TAG) |
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.
Do I see correctly that this variable definition is twice in the Makefile?
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.
This is not the same variable: one for operator and one for openscap
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.
Oups I see, DEFAULT_IMAGE_OPENSCAP_PATH declaration at line 2 was an extra paste. Need to be removed
Makefile
Outdated
@@ -300,24 +308,24 @@ test-benchmark: ## Run the benchmark tests -- Note that this can only be ran for | |||
e2e: namespace tear-down operator-sdk image-to-cluster openshift-user deploy-crds ## Run the end-to-end tests | |||
@echo "WARNING: This will temporarily modify deploy/operator.yaml" | |||
@echo "Replacing workload references in deploy/operator.yaml" | |||
@$(SED) 's%$(IMAGE_REPO)/$(RELATED_IMAGE_OPENSCAP_NAME):$(RELATED_IMAGE_OPENSCAP_TAG)%$(RELATED_IMAGE_OPENSCAP_PATH)%' deploy/operator.yaml | |||
@$(SED) 's%$(IMAGE_REPO)/$(APP_NAME):latest%$(RELATED_IMAGE_OPERATOR_PATH)%' deploy/operator.yaml | |||
@$(SED) 's%$(DEFAULT_IMAGE_OPENSCAP_PATH)%$(RELATED_IMAGE_OPENSCAP_PATH):$(RELATED_IMAGE_OPENSCAP_TAG)%' deploy/operator.yaml |
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.
Hmm, I wonder if this is the reason for failure I'm seeing..while running the e2e tests locally I see the tag twice in the scanner pods:
Warning InspectFailed 5s (x4 over 22s) kubelet Failed to apply default image tag "image-registry.openshift-image-registry.svc:5000/openshift/openscap-ocp:1.3.5:1.3.5": couldn't parse image reference "image-registry.openshift-image-registry.svc:5000/openshift/openscap-ocp:1.3.5:1.3.5": invalid reference format
I guess this might also be the reason for the CI failing. I'm sorry I didn't have enough time to dive deeper into why this is failing..
One test failed: |
/test e2e-aws |
@Vincent056 Thanks to point out this timeout issue. The log confirms that the 20mn timeout is reached due too many parallel tests within this delay. |
/test e2e-aws |
Thank you for your patience. There is only one test failing now, which is I uploaded the file to: |
/test e2e-aws |
/test e2e-aws |
Just going to kick the e2e test, the one that failed is occasionally flaky (and it's my fault, I added it recently) |
@gquillar: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Thanks @jhrozek, all tests are now passed. Waiting for approved, lgtm 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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gquillar, jhrozek 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 |
To support other architectures, we should be able to generate the e2e test content images on other architectures and run the e2e tests using these images.
To do that, this patch gathers all the e2e test content images to CO repo quay.io/compliance-operator/test-broken-content and reference these images by tags instead of by digest.
New rules are added in the Makefile to build theses images and the existing rules are fixed to be able to run e2e tests using images from a personal repository.
With this patch, e2e test content images can be built and used to run e2e tests on ppc64le or s390x arch with the following sequence: