feat: add standalone UDP multicast competency test script#573
Open
alibaba0010 wants to merge 2 commits intocameri:mainfrom
Open
feat: add standalone UDP multicast competency test script#573alibaba0010 wants to merge 2 commits intocameri:mainfrom
alibaba0010 wants to merge 2 commits intocameri:mainfrom
Conversation
|
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.
This PR replaces the previous
task3.jsimplementation with a standalone Node.js UDP multicast competency test script.The new script:
dgrammoduleDefaults are configurable via environment variables:
MULTICAST_GROUP(default:239.255.0.1)MULTICAST_PORT(default:29999)RECEIVE_TIMEOUT_MS(default:5000)Related Issue
N/A (competency test submission task)
Motivation and Context
The competency test requires a standalone script that demonstrates multicast UDP broadcast + self-receive + JSON parsing for a dummy Nostr event.
This change provides that exact behavior in a single runnable script while following repository style and validation expectations.
How Has This Been Tested?
Validated locally using project/CI-aligned checks:
npm run lintnpm run build:checknpm run test:unitnpm run knip(run from a clean temp worktree due local.nostr/datapermission constraints)npm run docker:test:integration(69 scenarios passed)npm run docker:cover:integrationnpm run cover:unit(run from clean temp worktree for same local permission constraint)node task3.js(confirmed multicast send, self-receive, JSON parse, and success exit)Screenshots (if appropriate):
N/A
Types of changes
Checklist: