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

fix(test) - fix flaky test #11508

Merged
merged 2 commits into from
Jun 6, 2024
Merged

fix(test) - fix flaky test #11508

merged 2 commits into from
Jun 6, 2024

Conversation

wacban
Copy link
Contributor

@wacban wacban commented Jun 6, 2024

The test_in_memory_trie_node_consistency was failing occasionally because the config with disabled congestion control wasn't properly passed into the nightshade runtime. Also setting the threshold for rejecting transactions from 1 to 2 because otherwise some could still get rejected under full congestion.

@wacban wacban requested a review from jakmeier June 6, 2024 15:05
@wacban wacban requested a review from a team as a code owner June 6, 2024 15:05
@@ -203,7 +203,7 @@ impl CongestionControlConfig {
allowed_shard_outgoing_gas: max_value,
max_tx_gas: max_value,
min_tx_gas: max_value,
reject_tx_congestion_threshold: 1.0,
reject_tx_congestion_threshold: 2.0,
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting fix 😆

Copy link

codecov bot commented Jun 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.31%. Comparing base (d7d7118) to head (e8570e3).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #11508   +/-   ##
=======================================
  Coverage   71.31%   71.31%           
=======================================
  Files         787      787           
  Lines      159389   159391    +2     
  Branches   159389   159391    +2     
=======================================
+ Hits       113661   113671   +10     
+ Misses      40789    40782    -7     
+ Partials     4939     4938    -1     
Flag Coverage Δ
backward-compatibility 0.23% <0.00%> (ø)
db-migration 0.23% <0.00%> (ø)
genesis-check 1.36% <0.00%> (-0.01%) ⬇️
integration-tests 37.48% <100.00%> (+<0.01%) ⬆️
linux 68.76% <100.00%> (+0.01%) ⬆️
linux-nightly 70.83% <100.00%> (+<0.01%) ⬆️
macos 50.77% <0.00%> (+<0.01%) ⬆️
pytests 1.58% <0.00%> (-0.01%) ⬇️
sanity-checks 1.38% <0.00%> (-0.01%) ⬇️
unittests 66.03% <0.00%> (-0.01%) ⬇️
upgradability 0.28% <0.00%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wacban wacban requested a review from jakmeier June 6, 2024 15:34
@wacban
Copy link
Contributor Author

wacban commented Jun 6, 2024

it turns out that the config wasn't actually passed in to the runtime and I was unlucky when testing it..
@jakmeier Can you have another quick look? I'm just passing the config where it needs to be.

Copy link
Contributor

@jakmeier jakmeier left a comment

Choose a reason for hiding this comment

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

Yeah makes sense. And it looks like the test is no longer flaky now.

@wacban wacban added this pull request to the merge queue Jun 6, 2024
Merged via the queue into master with commit f4557ec Jun 6, 2024
28 of 29 checks passed
@wacban wacban deleted the waclaw-flaky branch June 6, 2024 17:26
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.

2 participants