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

feat(rpc/node): readiness check #3118

Merged
merged 7 commits into from
Jan 29, 2024
Merged

feat(rpc/node): readiness check #3118

merged 7 commits into from
Jan 29, 2024

Conversation

distractedm1nd
Copy link
Member

Implements a readiness check on the node module.

Question: I have set the permission level to public, but remember that we removed all public methods in favor of read. Is this fine or should this method also be read?


Comes from a conversation with @joroshiba from Astria

@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4850c90) 51.97% compared to head (44cb8f8) 52.01%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3118      +/-   ##
==========================================
+ Coverage   51.97%   52.01%   +0.03%     
==========================================
  Files         178      178              
  Lines       11239    11239              
==========================================
+ Hits         5842     5846       +4     
+ Misses       4899     4898       -1     
+ Partials      498      495       -3     

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

@ramin
Copy link
Contributor

ramin commented Jan 20, 2024

arguably fixes #739

@ramin
Copy link
Contributor

ramin commented Jan 20, 2024

@distractedm1nd read perms IMO, no public

Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

This needs a test imo

@distractedm1nd
Copy link
Member Author

will add

Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

CI needs a rerun

nodebuilder/tests/api_test.go Show resolved Hide resolved
renaynay
renaynay previously approved these changes Jan 23, 2024
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

Fine w me, utack on the RPC being started last. Does moving the construction of the rpc mod last affect the appends to the start hooks?

@renaynay
Copy link
Member

Why is this breaking @distractedm1nd ?

@distractedm1nd
Copy link
Member Author

distractedm1nd commented Jan 23, 2024

adds new field to config, ah so not really breaking ig

@distractedm1nd distractedm1nd changed the title feat(rpc/node)!: readiness check feat(rpc/node): readiness check Jan 29, 2024
@distractedm1nd distractedm1nd added kind:feat Attached to feature PRs and removed kind:break! Attached to breaking PRs labels Jan 29, 2024
@distractedm1nd distractedm1nd merged commit 9484e15 into main Jan 29, 2024
27 checks passed
@distractedm1nd distractedm1nd deleted the readiness branch January 29, 2024 12:58
@joroshiba
Copy link

@ramin I'd argue doesn't solve need for readiness endpoint because it's a json-rpc. HTTP probes in k8s are exclusively on GET, and JSON-RPC is exclusively post: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#http-probes

@ramin
Copy link
Contributor

ramin commented Jan 29, 2024

@joroshiba was the original convo / request for a non-rpc readiness endpoint and not this?

@jcstein
Copy link
Member

jcstein commented Feb 22, 2024

should this be documented? if so, how does one use it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rpc kind:feat Attached to feature PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants