Repository navigation
test(nightly): a seeded reset fuzz on the fault Worker - #3410
Merged
Merged
Conversation
…placed connections only for double ends (until #3330), README
|
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
Contributor
|
✅ agents import sizes: no significant changes ( |
…am; a run must reset the object at least once
…a request still streaming, the object must restart, the seed in each test's name, every connection's frames and the transcript in results/
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.
The nightly workspace gets a reset fuzz (
cd nightly && pnpm run fuzz) on the fault Worker. It runs four rooms at once (Think and AIChatAgent, each withqueueandlatestmessage concurrency), each with four tabs, for six minutes:Then the room settles, and the fault suite's invariants must hold, plus four of the fuzz's own:
The choices come from one seed, printed at the start. Each tab and the resetter draw from their own stream, so
FUZZ_SEEDreplays their choices. The server's timing still varies, and tool answers are drawn per call id, which the server makes up. A run must reset the object at least once. A red run prints the seed, the violations and the last of the driver's trace, and writes every request's frames and the full trace tofaults/results/.The driver is verify's
fuzz-trace.mjs, cut down to what it checks. A tab that reconnected is not yet told how the requests it sent before it went away ended, so on those connections only double ends are checked. #3330 adds that, and the check can then cover them. The waits between a tab's actions are the fuzz's own seeded think time; everything after the stop waits on the room's recorded state.Validated: 4 of 4 rooms passed twice against a deployment (about 600 requests and 5 resets per room, 9 to 10 minutes). Before the replaced-connection change, every failure was a request whose tab reconnected before its end arrived.