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

[e2e] Use Subnet UID to get NSX resources in the test #957

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

wenyingd
Copy link
Contributor

@wenyingd wenyingd commented Dec 12, 2024

The flaky issue may happen if the stale VpcSubnet resources exist on NSX in anohter VPC configured with the same Namespace name.
The fix is using the tested Subnet CR's UID to get NSX resources. This is because the K8s can ensure the CR's UID is unique.

Fix: #956

@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.42%. Comparing base (a49d090) to head (f93c2a7).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #957   +/-   ##
=======================================
  Coverage   73.42%   73.42%           
=======================================
  Files         118      118           
  Lines       16390    16390           
=======================================
  Hits        12034    12034           
  Misses       3571     3571           
  Partials      785      785           
Flag Coverage Δ
unit-tests 73.42% <ø> (ø)

@wenyingd
Copy link
Contributor Author

/e2e

2 similar comments
@wenyingd
Copy link
Contributor Author

/e2e

@wenyingd
Copy link
Contributor Author

/e2e

zhengxiexie
zhengxiexie previously approved these changes Dec 12, 2024
Copy link
Contributor

@zhengxiexie zhengxiexie left a comment

Choose a reason for hiding this comment

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

lgtm

timdengyun
timdengyun previously approved these changes Dec 12, 2024
Copy link
Contributor

@timdengyun timdengyun left a comment

Choose a reason for hiding this comment

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

LGTM

timdengyun
timdengyun previously approved these changes Dec 12, 2024
Copy link
Contributor

@timdengyun timdengyun left a comment

Choose a reason for hiding this comment

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

LGTM

The flaky issue may happen if stale VpcSubnet resources exist on NSX in anohter
VPC configured with the same Namespace name.
The fix is using the tested Subnet CR's UID to get NSX resources. This is
because the K8s can ensure the CR's UID is unique.
Copy link
Contributor

@timdengyun timdengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@wenyingd
Copy link
Contributor Author

/e2e

@wenyingd wenyingd merged commit e6a2c72 into vmware-tanzu:main Dec 12, 2024
2 checks passed
wenyingd added a commit to wenyingd/nsx-operator that referenced this pull request Dec 12, 2024
The flaky issue may happen if stale VpcSubnet resources exist on NSX in anohter
VPC configured with the same Namespace name.
The fix is using the tested Subnet CR's UID to get NSX resources. This is
because the K8s can ensure the CR's UID is unique.
wenyingd added a commit that referenced this pull request Dec 12, 2024
The flaky issue may happen if stale VpcSubnet resources exist on NSX in anohter
VPC configured with the same Namespace name.
The fix is using the tested Subnet CR's UID to get NSX resources. This is
because the K8s can ensure the CR's UID is unique.
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.

Flaky e2e test case: TestSubnetSet/case=SubnetCIDR
6 participants