Draft
Conversation
ce19925 to
b5cd6a2
Compare
packethog
commented
Mar 17, 2026
e2e/qa_settlement_test.go
Outdated
Comment on lines
+25
to
+27
| // Use a single client for the settlement test. | ||
| client := test.RandomClient() | ||
| log.Info("Selected client", "host", client.Host) |
Contributor
Author
There was a problem hiding this comment.
Starting with a random client but we can expand once this is running
Comment on lines
+37
to
+40
| // Step 1: Enable the reconciler. | ||
| log.Info("Enabling reconciler") | ||
| err = client.Enable(ctx) | ||
| require.NoError(t, err, "failed to enable reconciler") |
Contributor
Author
There was a problem hiding this comment.
This is a no-op on the QA hosts but trying to capture the user workflow.
default seat amount to 100 USDC so only the flag is needed to run.
- add cleanup to withdraw seat if test fails after payment - validate reservation program id at config load time - avoid context shadowing in agent handlers
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
Enable,SeatPay,SeatWithdrawRPCs to qaagent proto and handlers (doublezero enable,doublezero-solana shreds pay,doublezero-solana shreds withdraw --unsafe-now)ClosestDevicehelper that picks the lowest-latency reachable device--url) and reservation program ID (RESERVATION_PROGRAM_IDenv var) through todoublezero-solanaper environmentdzshrr3yL57SB13sJPYHYo3TV8Bo1i1FxkyrZr3bKNE) to config constants-enable-settlement-testsflag so existing CI pipelines are unaffected-settlement-hostto target a specific client (defaults to random)-seat-amountUsage
Testing Verification
go build ./e2e/... ./config/...andgo vetpass cleanly-enable-settlement-testsis not set