feat: strengthen edge reporter module - #25
Open
Gavriel-lab wants to merge 1 commit into
Open
Conversation
Author
|
Follow-up on the full-suite validation note: I opened a separate minimal baseline fix for the existing That PR keeps the fix isolated from this edge API work. Locally, after the gene selector tie-breaker fix, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the Edge Reporter Module bounty scope from the Clawland bounty board and closes #24.
This PR strengthens
pkg/edge/reporter.goso PicClaw can act as a Fleet/MoltClaw reporting edge node with:/fleet/register/fleet/heartbeat/fleet/status/fleet/eventsStop()to avoid double-close panics during shutdownI also added focused
httptestcoverage for registration, heartbeat, status, events, auth headers, HTTP error handling, default interval fallback, and idempotent stop behavior.Validation
I also ran
go test ./.... The new edge package passed, but the full suite currently fails in the existing untouchedpkg/genepackage:This PR only changes
README.md,pkg/edge/reporter.go, andpkg/edge/reporter_test.go.