-
Notifications
You must be signed in to change notification settings - Fork 186
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
[Test Fix / Bug Fix] [fix:TestEpochJoinAndLeaveAN
] [fix:TestEpochJoinAndLeaveVN
] Handle registering node without machine account
#2699
Conversation
Previously the epoch tests would pass in an argument representing a machine account key, even for nodes which had no machine account. This worked because the SDK accepted an empty account key and the argument was ignored. An SDK API change caused this to no longer work, because the SDK will not accept empty account keys. Instead, we handle the case of an empty machine account explicitly by passing in a nil optional for this parameter.
Codecov Report
@@ Coverage Diff @@
## master #2699 +/- ##
=======================================
Coverage 56.57% 56.57%
=======================================
Files 679 679
Lines 62475 62470 -5
=======================================
- Hits 35345 35343 -2
+ Misses 24120 24118 -2
+ Partials 3010 3009 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Can you add the names of all tests that should be fixed by this in the This would help when we quickly scan the list of open PRs in our master Epic tracking all flaky test work: [Test][Epic] Fix flaky tests #6255 |
TestEpochJoinAndLeaveAN
] [fix:TestEpochJoinAndLeaveVN
] Handle registering node without machine account
bors merge |
TestEpochJoinAndLeaveAN
] [fix:TestEpochJoinAndLeaveVN
] Handle registering node without machine account TestEpochJoinAndLeaveAN
] [fix:TestEpochJoinAndLeaveVN
] Handle registering node without machine account
Previously the epoch tests would pass in an argument representing a machine account key, even for nodes which had no machine account. This worked because the SDK accepted an empty account key and the argument was ignored.
An SDK API change caused this to no longer work, because the SDK will not accept empty account keys.
Instead, we handle the case of an empty machine account explicitly by passing in a nil optional for this parameter. This should address the 0% success rate for AN/VN tests, which do not use machine accounts:
TestEpochJoinAndLeaveAN
TestEpochJoinAndLeaveVN