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

Run conformance tests for Arm images in this repo #6818

Conversation

antoninbas
Copy link
Contributor

This is a follow-up to #6486, which added support for building Antrea Arm images in the antrea-io/antrea repo, using Github-hosted Arm runners.

With this change, we will also be testing Arm images in this repo, hence finishing to remove our dependency on a private reposiotry, with self-hosted runners (vmware-tanzu/antrea-build-infra).

This change is very small, as we re-use the existing conformance.yml workflow, and add a dispatch step to the build.yml and build_tag.yml workflows (same repo dispatch, instead of dispatching to vmware-tanzu/antrea-build-infra, as was the case previously). Using Sonobuoy, we run the conformance test suite every time the main branch is updated, as well as for every release. Unfortunately, we have to re-build the image before running the tests, but thanks to caching it only represents a small amount of time.

We also remove some deprecated maintainer documentation.

Fixes #6453

Comment on lines 39 to 48
description: The Github runner to use for the workflow
default: ubuntu-latest
antrea-image-platform:
description: Platform argument to provide when building the Antrea images
default: "linux/amd64"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can these two be type: choice? So we don't have to figure what's other valid options if we want to run the conformance test manually with non-default values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, done

.github/workflows/conformance.yml Show resolved Hide resolved
token: ${{ secrets.ANTREA_BUILD_INFRA_WORKFLOW_DISPATCH_PAT }}
inputs: ${{ format('{{ "antrea-repository":"antrea-io/antrea", "antrea-ref":"{0}", "docker-tag":"{1}" }}', github.ref, env.DOCKER_TAG) }}
workflow: .github/workflows/conformance.yml
inputs: ${{ format('{{ "antrea-version":"{0}", "antrea-image-distro":"ubuntu", "test-suite":"conformance", "runner":"{1}", "antrea-image-platform":"{2}", "always-upload-logs":true }}', github.ref, matrix.runner, matrix.platform) }}
Copy link
Contributor

Choose a reason for hiding this comment

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

We can update the kind version to 0.25 as well. Since the default conformance test without given K8s version will use the default one as the kind's default. Now we are still using kind 0.23 and the conformance test image be 1.30 instead of 1.31.2.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will leave that to a future PR, given that ci/kind/version should be updated and it will affect other workflows

This is a follow-up to antrea-io#6486, which added support for building Antrea
Arm images in the antrea-io/antrea repo, using Github-hosted Arm
runners.

With this change, we will also be testing Arm images in this repo,
hence finishing to remove our dependency on a private reposiotry, with
self-hosted runners (vmware-tanzu/antrea-build-infra).

This change is very small, as we re-use the existing conformance.yml
workflow, and add a dispatch step to the build.yml and build_tag.yml
workflows (same repo dispatch, instead of dispatching to
vmware-tanzu/antrea-build-infra, as was the case previously). Using
Sonobuoy, we run the conformance test suite every time the main branch
is updated, as well as for every release. Unfortunately, we have to
re-build the image before running the tests, but thanks to caching it
only represents a small amount of time.

We also remove some deprecated maintainer documentation.

Fixes antrea-io#6453

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
@antoninbas antoninbas force-pushed the run-conformance-tests-for-arm-images-in-this-repo branch from 40d170d to 7049fa0 Compare November 20, 2024 18:24
Copy link
Contributor

@luolanzone luolanzone left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas antoninbas merged commit becd4ce into antrea-io:main Nov 21, 2024
53 of 57 checks passed
@antoninbas antoninbas deleted the run-conformance-tests-for-arm-images-in-this-repo branch November 21, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Arm image building and testing to this repo
3 participants