Skip to content

fix(runtime): give sandbox boundary wait a time budget - #4387

Merged
Astro-Han merged 1 commit into
apache:mainfrom
vyrnsynx:fix/sandbox-boundary-wait-deadline
Sep 2, 2026
Merged

fix(runtime): give sandbox boundary wait a time budget#4387
Astro-Han merged 1 commit into
apache:mainfrom
vyrnsynx:fix/sandbox-boundary-wait-deadline

Conversation

@vyrnsynx

@vyrnsynx vyrnsynx commented Aug 31, 2026

Copy link
Copy Markdown

Fixes #4383. Test-only: waitForBoundaryRequest now polls until a 5s wall-clock deadline instead of 100 macrotask ticks. Production runtime is unchanged. 15/15 sandbox-boundary tests passed locally. No behavior change.

Poll waitForBoundaryRequest against a wall-clock deadline so loaded CI
filesystem work can still emit sandbox_boundary_request before the helper
gives up. Test-only; production runtime is unchanged.

Fixes apache#4383

Generated-by: Cursor

Co-authored-by: MarkGus0 <MarkGus0@users.noreply.github.com>
@github-actions github-actions Bot added the effort/S Under 100 readable lines label Aug 31, 2026

@Astro-Han Astro-Han left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving. The helper this reaches for already exists — waitFor in @maka/core/test-only/async-primitives — and the 5s / 10ms pair matches what shell-run-manager.test.ts already uses, so this is one fewer hand-rolled wait rather than one more. Strictly more patient than the 100 unbounded macrotask ticks it replaces, and the production runtime is untouched.

@Astro-Han
Astro-Han merged commit 114f20f into apache:main Sep 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/S Under 100 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(runtime): sandbox boundary request wait has no time budget and flakes on CI

2 participants