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

[Test Fix / Bug Fix] [fix:TestEpochJoinAndLeaveAN] [fix:TestEpochJoinAndLeaveVN] Handle registering node without machine account #2699

Merged
merged 1 commit into from
Jun 30, 2022

Conversation

jordanschalm
Copy link
Member

@jordanschalm jordanschalm commented Jun 24, 2022

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

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-commenter
Copy link

Codecov Report

Merging #2699 (915a82d) into master (29ac012) will increase coverage by 0.00%.
The diff coverage is 82.60%.

@@           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     
Flag Coverage Δ
unittests 56.57% <82.60%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
fvm/state/state.go 70.35% <0.00%> (ø)
fvm/transaction.go 69.35% <ø> (ø)
engine/execution/computation/computer/computer.go 83.69% <80.00%> (-0.25%) ⬇️
fvm/meter/basic/meter.go 90.16% <83.33%> (ø)
fvm/meter/weighted/meter.go 79.20% <88.88%> (ø)
engine/execution/computation/manager.go 79.26% <100.00%> (ø)
fvm/script.go 71.08% <100.00%> (ø)
fvm/scriptEnv.go 43.86% <100.00%> (ø)
fvm/transactionEnv.go 52.34% <100.00%> (ø)
fvm/transactionInvoker.go 74.14% <100.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

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

@gomisha
Copy link
Contributor

gomisha commented Jun 24, 2022

Can you add the names of all tests that should be fixed by this in the
a) PR title and
b) PR description?

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

@jordanschalm jordanschalm changed the title [Flakey Test] Handle registering node without machine account [fix:TestEpochJoinAndLeaveAN] [fix:TestEpochJoinAndLeaveVN] Handle registering node without machine account Jun 24, 2022
@jordanschalm
Copy link
Member Author

bors merge

@bors
Copy link
Contributor

bors bot commented Jun 30, 2022

Build succeeded:

@bors bors bot merged commit a984e61 into master Jun 30, 2022
@bors bors bot deleted the jordan/epoch-flakey-integration-tests branch June 30, 2022 18:45
@jordanschalm jordanschalm changed the title [fix:TestEpochJoinAndLeaveAN] [fix:TestEpochJoinAndLeaveVN] Handle registering node without machine account [Test Fix / Bug Fix] [fix:TestEpochJoinAndLeaveAN] [fix:TestEpochJoinAndLeaveVN] Handle registering node without machine account Aug 8, 2022
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.

4 participants