e2e: add outbound and inbound probing to geoprobe E2E test#3263
Open
e2e: add outbound and inbound probing to geoprobe E2E test#3263
Conversation
snormore
approved these changes
Mar 15, 2026
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 of Changes
TestE2E_GeoprobeDiscoveryto verify the full geoprobe pipeline beyond DZD→agent discovery: outbound offset forwarding to a target (agent → target with signature chain), and inbound signed TWAMP probing (target-sender → agent with DZD offset embedding in replies), using CLI flags for probe identification.geoprobe-targetandgeoprobe-target-senderbinaries into the geoprobe Docker image so the test can run both processesstartGeoprobeAgentto externalize keypair generation (newgenerateKeypairhelper) and acceptallowedPubkeysfor inbound probe authorizationDiff Breakdown
Test-only change with supporting Docker image build steps.
Key files (click to expand)
e2e/geoprobe_test.go— add target container setup, inbound probing flow (target-sender → agent),generateKeypair/runTargetSender/waitForInboundProbeSuccesshelpers, refactorstartGeoprobeAgentto accept keypair path andallowedPubkeyse2e/docker/base.dockerfile— builddoublezero-geoprobe-targetanddoublezero-geoprobe-target-senderbinariese2e/docker/geoprobe/Dockerfile— copy target and target-sender binaries into geoprobe imageTesting Verification
TestE2E_GeoprobeDiscoverypasses end-to-end (204.91s), exercising: onchain probe creation → DZD discovery → TWAMP measurement → offset delivery → outbound composite offset to target with valid signature chain → inbound signed TWAMP probes with DZD offsets embedded in repliesreceived LocationOffsetwithsignature_valid=truereply1_sig_valid:trueand at least one offset withsig_valid:true