Repository navigation
test(agents): the running-flag reset test's interval can't come due again while it reads - #3439
Closed
mattzcarey wants to merge 1 commit into
Closed
mattzcarey wants to merge 1 commit into
mattzcarey wants to merge 1 commit into
Conversation
… run can't come due while it reads
|
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 ( |
Member
Author
|
Closed under the drain rule (not next); the branch slim/std-tests-40 stays. It comes back when the open count is down. |
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.
schedule.test.ts"scheduleEvery › should reset running flag to 0 after interval execution completes" now uses a 60 s interval instead of 1 s. Tests only, no changeset.It failed at
retry: 0on #3406's CI (run 45969452796, "expected 1 to be 0"). The test backdates a 1 s interval, drives its alarm withrunDurableObjectAlarm, and then reads the row'srunningflag. With a 1 s interval, the real alarm armed for the next run can fire on a slow runner between the driven run and the read. The read then sees that next run in progress. This is the alarm trap: a schedule due again during the test is a second drive. With 60 s, the next run can't come due while the test reads, and it still checks the reset after the run it drove, with the same assertions.3/3 locally; CI runs the suite.