Skip to content

tests: add new tx parents tests and fix flakies#1455

Merged
glevco merged 1 commit intomasterfrom
tests/tx-parents
Oct 10, 2025
Merged

tests: add new tx parents tests and fix flakies#1455
glevco merged 1 commit intomasterfrom
tests/tx-parents

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Oct 9, 2025

Motivation

PR #1448 was recently merged and caused a lot of flakiness in two tests in test_blockchain.py, because the asserted parents and the new algorithm has a slightly different behavior.

I removed those flaky asserts, and in order to make sure everything is correct, I added more tests covering all possible cases of generate_parent_txs.

Acceptance Criteria

  • Remove parents asserts from test_blockchain.py to fix flakiness.
  • Add new generate_parent_txs testes covering all possible return cases.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco self-assigned this Oct 9, 2025
@glevco glevco moved this from Todo to In Progress (Done) in Hathor Network Oct 9, 2025
@glevco glevco mentioned this pull request Oct 9, 2025
2 tasks
@github-actions
Copy link

🐰 Bencher Report

Branchtests/tx-parents
Testbedubuntu-22.04
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
minutes (m)
(Result Δ%)
Lower Boundary
minutes (m)
(Limit %)
Upper Boundary
minutes (m)
(Limit %)
sync-v2 (up to 20000 blocks)📈 view plot
🚷 view threshold
1.96 m
(+13.68%)Baseline: 1.73 m
1.55 m
(79.17%)
2.07 m
(94.73%)
🐰 View full continuous benchmarking report in Bencher

@codecov
Copy link

codecov bot commented Oct 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.99%. Comparing base (6ea3dc1) to head (8e4baa6).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1455      +/-   ##
==========================================
+ Coverage   85.97%   85.99%   +0.02%     
==========================================
  Files         434      434              
  Lines       33829    33829              
  Branches     5315     5315              
==========================================
+ Hits        29083    29092       +9     
+ Misses       3697     3690       -7     
+ Partials     1049     1047       -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-project-automation github-project-automation bot moved this from In Progress (Done) to In Review (WIP) in Hathor Network Oct 10, 2025
@glevco glevco merged commit 13b1c62 into master Oct 10, 2025
18 of 20 checks passed
@glevco glevco deleted the tests/tx-parents branch October 10, 2025 04:24
@github-project-automation github-project-automation bot moved this from In Review (WIP) to Waiting to be deployed in Hathor Network Oct 10, 2025
@jansegre jansegre moved this from Waiting to be deployed to Done in Hathor Network Oct 15, 2025
@jansegre jansegre mentioned this pull request Oct 16, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants