Skip to content

tests(nano): add basic structures and resources tests [part 14]#1291

Merged
jansegre merged 1 commit intomasterfrom
tests/nano/resources
Jun 24, 2025
Merged

tests(nano): add basic structures and resources tests [part 14]#1291
jansegre merged 1 commit intomasterfrom
tests/nano/resources

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Jun 4, 2025

Motivation

Proceed with the nano merge on master.

Acceptance Criteria

  • Add basic test structures.
  • Add resource tests.

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 Jun 4, 2025
@glevco glevco requested review from jansegre and msbrogli as code owners June 4, 2025 00:14
@glevco glevco force-pushed the tests/nano/resources branch 2 times, most recently from e3f9298 to 9c202ba Compare June 4, 2025 00:34
@glevco glevco changed the title tests(nano): add basic structures and resources tests tests(nano): add basic structures and resources tests [part 14] Jun 4, 2025
@glevco glevco moved this from Todo to In Progress (WIP) in Hathor Network Jun 4, 2025
@glevco glevco moved this from In Progress (WIP) to In Progress (Done) in Hathor Network Jun 4, 2025
@codecov
Copy link

codecov bot commented Jun 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.80%. Comparing base (ad46131) to head (60366fd).
Report is 2 commits behind head on master.

❌ Your project status has failed because the head coverage (81.80%) is below the target coverage (82.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1291      +/-   ##
==========================================
+ Coverage   77.97%   81.80%   +3.83%     
==========================================
  Files         426      426              
  Lines       31904    31908       +4     
  Branches     4950     4950              
==========================================
+ Hits        24877    26103    +1226     
+ Misses       6074     4752    -1322     
- Partials      953     1053     +100     

☔ 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.

@glevco glevco force-pushed the feat/nano/consensus branch 2 times, most recently from 0b6f616 to d5fb072 Compare June 11, 2025 20:41
@glevco glevco force-pushed the tests/nano/resources branch 2 times, most recently from dc5c03f to 43f2ee1 Compare June 11, 2025 20:41
@glevco glevco force-pushed the feat/nano/consensus branch 7 times, most recently from d394b7b to 6b09bf8 Compare June 18, 2025 20:57
@glevco glevco moved this from In Progress (Done) to In Review (WIP) in Hathor Network Jun 23, 2025
@glevco glevco force-pushed the feat/nano/consensus branch from 6b09bf8 to 13588c1 Compare June 23, 2025 18:07
@glevco glevco force-pushed the tests/nano/resources branch 2 times, most recently from 83a5aaa to 65f1efc Compare June 23, 2025 19:50
"""Create a HathorManager instance."""
return self.create_peer('testnet', nc_indices=True, nc_log_config=NCLogConfig.FAILED, wallet_index=True)

def register_blueprint_class(self, blueprint_id: BlueprintId, blueprint_class: type[Blueprint]) -> None:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of receiving a mandatory blueprint_id, we could generate one, use it, and return it. Most tests won't need to pass this argument.

def build_runner(self) -> TestRunner:
"""Create a Runner instance."""
nc_storage_factory = NCMemoryStorageFactory()
store = MemoryNodeTrieStore()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use RocksDB?

@glevco glevco changed the base branch from feat/nano/consensus to master June 23, 2025 23:11
@glevco glevco force-pushed the tests/nano/resources branch from 65f1efc to bf557d8 Compare June 23, 2025 23:30
@glevco glevco requested a review from pedroferreira1 June 23, 2025 23:36
@github-actions
Copy link

github-actions bot commented Jun 23, 2025

🐰 Bencher Report

Branchtests/nano/resources
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.65 m
(+0.63%)Baseline: 1.63 m
1.47 m
(89.43%)
1.80 m
(91.49%)
🐰 View full continuous benchmarking report in Bencher

@glevco glevco force-pushed the tests/nano/resources branch 2 times, most recently from a17bc17 to 35bd094 Compare June 23, 2025 23:45
@glevco
Copy link
Contributor Author

glevco commented Jun 23, 2025

LGTM ✅

jansegre
jansegre previously approved these changes Jun 24, 2025
@glevco glevco force-pushed the tests/nano/resources branch from 35bd094 to 60366fd Compare June 24, 2025 15:24
@glevco glevco moved this from In Review (WIP) to In Review (Done) in Hathor Network Jun 24, 2025
@jansegre jansegre merged commit c8cc9a3 into master Jun 24, 2025
6 of 8 checks passed
@jansegre jansegre deleted the tests/nano/resources branch June 24, 2025 16:06
@github-project-automation github-project-automation bot moved this from In Review (Done) to Waiting to be deployed in Hathor Network Jun 24, 2025
@jansegre jansegre mentioned this pull request Jul 22, 2025
2 tasks
@jansegre jansegre moved this from Waiting to be deployed to Done in Hathor Network Jul 22, 2025
@jansegre jansegre mentioned this pull request Aug 7, 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.

2 participants