-
Notifications
You must be signed in to change notification settings - Fork 460
Add documentation and scripts on running e2e test locally #5489
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
Add documentation and scripts on running e2e test locally #5489
Conversation
|
I was able to get one test run locally For my reference, the chain of options used to run an e2e test is |
|
One more success; I have figured out the formula for running e2e tests locally for non-aks flavors. Will wire up a Readme explaining it. ------------------------------
[SynchronizedAfterSuite] PASSED [0.000 seconds]
[SynchronizedAfterSuite]
/Users/nawazhussain/msftcode/cluster-api-provider-azure/test/e2e/e2e_suite_test.go:123
Timeline >>
STEP: Tearing down the management cluster @ 03/06/25 00:07:12.08
<< Timeline
------------------------------
[ReportAfterSuite] PASSED [0.007 seconds]
[ReportAfterSuite] Autogenerated ReportAfterSuite for --junit-report
autogenerated by Ginkgo
------------------------------
Ran 1 of 31 Specs in 2405.318 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 30 Skipped |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5489 +/- ##
=======================================
Coverage 52.61% 52.61%
=======================================
Files 272 272
Lines 29485 29485
=======================================
Hits 15513 15513
Misses 13165 13165
Partials 807 807 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/test pull-cluster-api-provider-azure-windows-with-ci-artifacts |
|
/retest |
5 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
Failing |
|
@willie-yao @Jont828 , the above PR is ready for review. We can ignore Please take a look at this PR. We would want to ensure that the make targets are intact and do not break any other testings. |
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.
Wow nice work here Nawaz! This is super helpful for unblocking us. Honestly I think you can retitle this PR, as there is much more work here than just documentation. Also left a few comments that are mostly nits.
| wait_and_fix_nsg_rules() { | ||
| local tcp_ports="443 5986 6443" | ||
| local udp_ports="53 123" | ||
| local timeout=3000 # seconds to wait per NSG for the appearance of an NRMS-Rule-101 rule |
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.
Is this timeout a bit excessive? I know the rule takes a while to be populated but not sure if 50 minutes is too much. This is probably not a big issue though since I don't think we'll ever wait that long, and the rule always gets populated by some Azure job.
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.
It is definitely on the higher end. But in my testing, a 3 control plane - 2 worker node cluster takes about 30 mins to come up. And the NSG rules can take some more time.
3000 seemed like a good number.
1f48736 to
0c7bb63
Compare
Thank you for the review Willie, please take a look again! Addressed your comments! |
05eedd9 to
0431919
Compare
|
We have marked |
|
/hold Until comments are addressed. |
9b0659b to
6aff3aa
Compare
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
/hold cancel
Great work here!
|
LGTM label has been added. Git tree hash: 045e801382b8084000c7aa5d1896b18b0ddc9107
|
|
/test pull-cluster-api-provider-azure-e2e-optional |
- update Makefile targets for local e2e - Add script on peering vnets
6aff3aa to
687912b
Compare
|
/retest |
|
@nawazkh: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
|
/test pull-cluster-api-provider-azure-ci-entrypoint |
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
|
LGTM label has been added. Git tree hash: adad1494a06141ff6b0448c5a412ce030751e87a
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: willie-yao 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
peer_vnets.shscript that the user can use toWhich issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #5268
Special notes for your reviewer:
TODOs:
Release note: