Skip to content

Wire runtime scheduler stress tests#437

Merged
heartwilltell merged 1 commit into
mainfrom
codex/runtime-stress-tests
Apr 26, 2026
Merged

Wire runtime scheduler stress tests#437
heartwilltell merged 1 commit into
mainfrom
codex/runtime-stress-tests

Conversation

@heartwilltell

Copy link
Copy Markdown
Contributor

Summary

  • add test_stress.c to the runtime test executable and suite
  • cover high-volume spawn, producer/consumer channels, asymmetric scheduler load, tight-loop progress, concurrent nested spawn, channel ping-pong, and mixed poller I/O with CPU-bound Gs
  • allow RUN_MAXPROCS overrides while keeping default runtime tests deterministic; strict multi-P/preemption assertions are opt-in with RUN_STRESS_MULTIP=1 and RUN_STRESS_PREEMPT=1

Fixes #411

Test Plan

  • zig fmt build.zig
  • clang-format -i src/runtime/tests/test_main.c src/runtime/tests/test_stress.c
  • zig build
  • zig build test (passes with expected bad_check.run missing() negative diagnostic)
  • zig build test-runtime

@heartwilltell heartwilltell self-assigned this Apr 26, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 26, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
runlang 61a864e Commit Preview URL

Branch Preview URL
Apr 26 2026, 09:21 PM

@heartwilltell heartwilltell marked this pull request as ready for review April 26, 2026 21:21
@heartwilltell heartwilltell force-pushed the codex/runtime-stress-tests branch from 61a864e to f2a4bea Compare April 26, 2026 21:29
@heartwilltell heartwilltell merged commit f7f9666 into main Apr 26, 2026
14 checks passed
@heartwilltell heartwilltell deleted the codex/runtime-stress-tests branch April 26, 2026 21:29
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.

Create comprehensive scheduler stress tests

1 participant