Skip to content

chore(e2e): give each harness batch distinct call values - #297

Closed
yosriady wants to merge 1 commit into
mainfrom
chore/e2e-distinct-batches
Closed

chore(e2e): give each harness batch distinct call values#297
yosriady wants to merge 1 commit into
mainfrom
chore/e2e-distinct-batches

Conversation

@yosriady

@yosriady yosriady commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Companion to getformo/sdk's fix for #372 (dedup hash retained for its full 60s window, independent of flush timing).

The batch harness sent the same two calls (same to, value, data, same wallet, same chain) for the atomic, partialRevert and rejected steps within one second. transaction:started carries no batch id yet, so those later started rows are byte-identical to the first batch's and the SDK's double-fire guard drops them. That made the partialRevert and rejected scenarios fail against the fix for a reason unrelated to what they test.

Each batch now uses distinct values. Scenarios match on [index/size+id], so no expectation changes. Verified green against both the published 1.38.0 and the fix build: sweep.mjs 13/13, behaviours.mjs 35/35, browser/run.mjs all checks passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YEjK9qkwf3u1CpGkb5NvYG


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Review in cubic

The SDK's queue drops an event whose payload is identical to one accepted
within the last minute. getformo/sdk#372 makes that window independent of
flush timing, and transaction:started has no batch id yet, so three
identical batches in one second lost their later started rows to the guard
rather than to anything under test. Distinct values per batch keep every
row meaningful on the published 1.38.0 and on the fix.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YEjK9qkwf3u1CpGkb5NvYG

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

You’re at about 96% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.

Re-trigger cubic

@yosriady

Copy link
Copy Markdown
Contributor Author

Closing with getformo/sdk#375, which it accompanied. Harmless on its own (green against the published SDK) but no longer needed.

@yosriady yosriady closed this Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant