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

Support ipv6 in e2e test #621

Merged
merged 4 commits into from
Jul 25, 2024
Merged

Support ipv6 in e2e test #621

merged 4 commits into from
Jul 25, 2024

Conversation

noobwei
Copy link
Contributor

@noobwei noobwei commented Jul 21, 2024

What type of PR is this?

/kind enhancement

What this PR does / why we need it:

Support pure ipv6 in e2e test, to fit in the new feature in Kmesh

Which issue(s) this PR fixes:
Fixes #529

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Signed-off-by: noobwei <ta22230@bristol.ac.uk>
@kmesh-bot kmesh-bot added the kind/enhancement New feature or request label Jul 21, 2024
@kmesh-bot
Copy link
Collaborator

Welcome @noobwei! It looks like this is your first PR to kmesh-net/kmesh 🎉

@@ -28,7 +28,25 @@ function setup_kind_cluster() {
fi

# Create KinD cluster.
cat <<EOF | kind create cluster --name="${NAME}" -v4 --retain --image "${IMAGE}" --config=-

Copy link
Member

Choose a reason for hiding this comment

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

You should also add a line here for ipv6 e2e call:

https://github.com/kmesh-net/kmesh/blob/main/Makefile#L149

@@ -28,7 +28,25 @@ function setup_kind_cluster() {
fi

# Create KinD cluster.
cat <<EOF | kind create cluster --name="${NAME}" -v4 --retain --image "${IMAGE}" --config=-

if [[ -n "${IPV6:-}" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

This if has no corresponding fi?

Signed-off-by: noobwei <ta22230@bristol.ac.uk>
Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

Can you add a CI job for ipv6 like .github/workflows/e2e.yml

Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.14%. Comparing base (96f2545) to head (f5f92ac).
Report is 32 commits behind head on main.

see 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c929931...f5f92ac. Read the comment docs.

@@ -148,6 +148,8 @@ docker.push: docker

e2e:
Copy link
Member

Choose a reason for hiding this comment

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

Make ipv6 an env, if we want to run e2e test for ipv6 run:

IPFAMILY=ipv6 make e2e

Signed-off-by: noobwei <ta22230@bristol.ac.uk>
@kmesh-bot kmesh-bot added size/M and removed size/S labels Jul 23, 2024
@@ -20,3 +20,22 @@ jobs:
shell: bash
run: |
sudo make e2e

e2e-ipv6-test:
Copy link
Member

Choose a reason for hiding this comment

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

why not separate it to e2e-ipv6.yml

Signed-off-by: noobwei <ta22230@bristol.ac.uk>
Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/lgtm

@kmesh-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

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

@kmesh-bot kmesh-bot merged commit 024a177 into kmesh-net:main Jul 25, 2024
7 checks passed
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.

[E2E Enchancement] run e2e test in pure ipv6 environment
4 participants