[Feature] Test Handling Incoming Events #22
Labels
No Label
backlog
beacon
bug
critical
documentation
duplicate
enhancement
epic
feature
good first issue
help wanted
in review
invalid
question
test
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/ipld-eth-beacon-indexer#22
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Table of contents generated with markdown-toc
Overview
Request
Potential Solution
Ensure we can adequately process a single
head
event.head
andreorgs
events to theBeaconClient
.head
andreorg_chain
events. This process should allow us to create an arbitrary number of events and should be easily changed depending on API changes by the lighthouse client. The events should be created based on a template in an automated fashion.Alternative Solutions
None yet
Additional Context
Testing Overview
@ashwinphatak and @i-norden (@AFDudley, @ABastionOfSanity , @erikdies, feel free to chime in as well): I wanted to get your opinion regarding unit testing server streamed events (SSE) sent from the beacon node. A few notes:
Potential Solution
The question I have is about creating a testing "framework." Should I:
[]byte
to the channel that receives the raw SSE messages.Current Thought
Personally, I have not done much work around streaming data using the HTTP library in Go so I am not sure how much more work it will be.
Let me know what you guys think. For the time being, I will send messages directly to the channel. I personally want to use the server but I won't make the investment into the integration if we, as a team, don't see the value.
Thank you
After further review, I am going to use the server approach instead of using the channels. I think it might end up being more work to bypass the server, while also lowering test quality.
I am strongly considering a mixed solution:
BeaconState
andSignedBeaconBlock
.In this solution:
I am open to discussing this solution and hoping to run it by someone to get an external opinion on Monday.
Find internal document here: https://www.notion.so/Testing-Head-Tracking-792c0bbaea7c4d15924580066effc708