Skip to content

feat(nano): implement runner [part 11]#1288

Merged
jansegre merged 1 commit intomasterfrom
feat/nano/runner
Jun 17, 2025
Merged

feat(nano): implement runner [part 11]#1288
jansegre merged 1 commit intomasterfrom
feat/nano/runner

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Jun 3, 2025

Motivation

Continue with the nano merges, adding the Runner and related structures.

Acceptance Criteria

  • Add Runner.
  • Update Blueprint with now available methods.
  • Update code that used previously removed methods.

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 3, 2025
@glevco glevco requested a review from jansegre as a code owner June 3, 2025 21:44
@glevco glevco requested a review from msbrogli as a code owner June 3, 2025 21:44
@glevco glevco moved this from Todo to In Review (WIP) in Hathor Network Jun 3, 2025
@glevco glevco changed the title feat(nano): implement runner feat(nano): implement runner [part 11] Jun 3, 2025
@glevco glevco moved this from In Review (WIP) to In Progress (WIP) in Hathor Network Jun 3, 2025
@glevco glevco moved this from In Progress (WIP) to In Progress (Done) in Hathor Network Jun 3, 2025
@glevco glevco force-pushed the feat/nano/metadata branch from e583324 to 4a6ac38 Compare June 3, 2025 22:30
@glevco glevco force-pushed the feat/nano/runner branch 2 times, most recently from a1992c9 to 1d16e19 Compare June 3, 2025 22:32
@codecov
Copy link

codecov bot commented Jun 3, 2025

Codecov Report

Attention: Patch coverage is 27.59197% with 433 lines in your changes missing coverage. Please review.

Project coverage is 76.49%. Comparing base (a249336) to head (197095e).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
hathor/nanocontracts/runner/runner.py 20.70% 383 Missing ⚠️
hathor/nanocontracts/blueprint_env.py 59.45% 30 Missing ⚠️
hathor/nanocontracts/fields/nc_type_field.py 0.00% 11 Missing ⚠️
hathor/nanocontracts/fields/container_field.py 0.00% 5 Missing ⚠️
hathor/nanocontracts/blueprint.py 75.00% 3 Missing ⚠️
hathor/builder/builder.py 85.71% 0 Missing and 1 partial ⚠️

❌ Your project status has failed because the head coverage (76.49%) 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    #1288      +/-   ##
==========================================
- Coverage   77.40%   76.49%   -0.92%     
==========================================
  Files         415      417       +2     
  Lines       30127    30724     +597     
  Branches     4686     4798     +112     
==========================================
+ Hits        23321    23503     +182     
- Misses       5994     6414     +420     
+ Partials      812      807       -5     

☔ 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/metadata branch 2 times, most recently from 08811ee to 5fffa3a Compare June 11, 2025 20:19
@glevco glevco force-pushed the feat/nano/runner branch 2 times, most recently from b218b30 to fa7540e Compare June 11, 2025 20:39
@glevco glevco force-pushed the feat/nano/metadata branch 2 times, most recently from 2e560a5 to ed4b8db Compare June 16, 2025 19:02
@glevco glevco force-pushed the feat/nano/runner branch from fa7540e to 1fbbf91 Compare June 16, 2025 19:03
@glevco glevco moved this from In Progress (Done) to In Review (WIP) in Hathor Network Jun 16, 2025
Comment on lines +56 to +61
try:
obj = instance.syscall.__storage__.get_obj(self.__storage_key(), self.__nc_type)
instance.syscall.__cache__[self.__name] = obj
return obj
except KeyError:
raise AttributeError(f'Contract has no attribute \'{self.__name}\'')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move the cache set to outside the try

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Postponed thread.

@glevco glevco force-pushed the feat/nano/runner branch from 1fbbf91 to ae60bb0 Compare June 16, 2025 19:34
@glevco glevco changed the base branch from feat/nano/metadata to master June 16, 2025 19:57
@glevco glevco force-pushed the feat/nano/runner branch from ae60bb0 to fd019e7 Compare June 16, 2025 20:01
@github-actions
Copy link

github-actions bot commented Jun 16, 2025

🐰 Bencher Report

Branchfeat/nano/runner
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
(+1.33%)Baseline: 1.63 m
1.47 m
(88.82%)
1.79 m
(92.12%)
🐰 View full continuous benchmarking report in Bencher

jansegre
jansegre previously approved these changes Jun 17, 2025
@jansegre jansegre moved this from In Review (WIP) to In Review (Done) in Hathor Network Jun 17, 2025
@glevco glevco force-pushed the feat/nano/runner branch from 7127176 to 197095e Compare June 17, 2025 15:38
@glevco
Copy link
Contributor Author

glevco commented Jun 17, 2025

LGTM ✅

@jansegre jansegre merged commit 8fcb384 into master Jun 17, 2025
6 of 8 checks passed
@jansegre jansegre deleted the feat/nano/runner branch June 17, 2025 16:32
@github-project-automation github-project-automation bot moved this from In Review (Done) to Waiting to be deployed in Hathor Network Jun 17, 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