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

[PoC] Activation Service builds and publishes ATXs with Node Service help #6355

Merged
merged 18 commits into from
Oct 31, 2024

Conversation

poszu
Copy link
Contributor

@poszu poszu commented Sep 26, 2024

Motivation

Implements step 2 of #6354.

Description

  • added an OpenAPI spec defining the interface of the Node Service
  • implemented the server side
  • implemented the client side
  • added configuration options to go-spacemesh so that it can run either as the client or server side.

Test Plan

So far manual tests. The "client" go-spacemesh" successfully builds an ATX and tries to publish it via the node-service, which fails on the NodeService side because of missing PoET proof (expected).

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 49.55839% with 514 lines in your changes missing coverage. Please review.

Project coverage is 79.0%. Comparing base (98cac64) to head (2fe872b).
Report is 11 commits behind head on node-split-poc.

Files with missing lines Patch % Lines
api/node/client/client.gen.go 41.5% 195 Missing and 34 partials ⚠️
api/node/server/server.gen.go 49.0% 143 Missing and 16 partials ⚠️
api/node/server/server.go 65.2% 35 Missing and 5 partials ⚠️
node/node.go 43.3% 29 Missing and 5 partials ⚠️
api/node/client/client.go 61.9% 23 Missing and 4 partials ⚠️
activation/poetdb.go 5.0% 18 Missing and 1 partial ⚠️
api/node/client/logger.go 25.0% 6 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           node-split-poc   #6355   +/-   ##
==============================================
  Coverage            79.0%   79.0%           
==============================================
  Files                 336     336           
  Lines               44022   44030    +8     
==============================================
+ Hits                34789   34799   +10     
+ Misses               7226    7225    -1     
+ Partials             2007    2006    -1     

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

@poszu poszu mentioned this pull request Oct 4, 2024
4 tasks
@poszu poszu force-pushed the node-split/abstract-db-in-atx-builder branch from 11a68ea to 378063b Compare October 15, 2024 09:59
Base automatically changed from node-split/abstract-db-in-atx-builder to node-split-poc October 29, 2024 19:51
@poszu poszu marked this pull request as ready for review October 29, 2024 19:52
@acud
Copy link
Contributor

acud commented Oct 30, 2024

bors try

spacemesh-bors bot added a commit that referenced this pull request Oct 30, 2024
node/node.go Outdated Show resolved Hide resolved
api/node/server/server.go Show resolved Hide resolved
api/node/server/server.go Show resolved Hide resolved
@spacemesh-bors
Copy link

try

Build succeeded:

@poszu poszu merged commit 559a443 into node-split-poc Oct 31, 2024
15 of 16 checks passed
@poszu poszu deleted the node-split/node-service branch October 31, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants