Skip to content

glutton: run the RunScript timing tests on a synctest bubble - #3090

Merged
Max Smythe (maxsmythe) merged 1 commit into
agent-substrate:mainfrom
maxsmythe:glutton-script-synctest
Oct 22, 2026
Merged

Max Smythe (maxsmythe) merged 1 commit into
agent-substrate:mainfrom
maxsmythe:glutton-script-synctest

Conversation

@maxsmythe

Copy link
Copy Markdown
Collaborator

TestRunScriptLoopsUntilTheBudget counted 3 passes on a slow CI machine: the disk writes between sleeps pushed the loop past its budget before the fourth pass. On the bubble's clock a pass costs only its sleep, so the pass counts and elapsed times are exact and the tests assert them.

This fixes a test flake.

Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.)

Fixes #

AI use:

  • [ X ] Tests pass
  • [ X ] Docs updated

Code written with help of AI. I have reviewed it.

TestRunScriptLoopsUntilTheBudget counted 3 passes on a slow CI machine:
the disk writes between sleeps pushed the loop past its budget before
the fourth pass. On the bubble's clock a pass costs only its sleep, so
the pass counts and elapsed times are exact and the tests assert them.
@bowei

Copy link
Copy Markdown
Collaborator

This is a unit test fix.

@bowei
Bowei Du (bowei) added this pull request to the merge queue Oct 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 21, 2026
@maxsmythe
Max Smythe (maxsmythe) added this pull request to the merge queue Oct 22, 2026
Merged via the queue into agent-substrate:main with commit 4d98981 Oct 22, 2026
15 checks passed
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.

2 participants