Skip to content

fix: eliminate flaky wall-clock timing in ready.test.ts parallelism check#2069

Merged
nick-inkeep merged 1 commit intomainfrom
fix/ready-test-flake
Feb 17, 2026
Merged

fix: eliminate flaky wall-clock timing in ready.test.ts parallelism check#2069
nick-inkeep merged 1 commit intomainfrom
fix/ready-test-flake

Conversation

@nick-inkeep
Copy link
Collaborator

Summary

  • Replaces performance.now() wall-clock assertions with event-ordering assertions in the "runs database checks in parallel" test
  • The old test used a hard < 50ms ceiling that flaked under CPU pressure (observed 59.79ms during pre-commit hook runs)
  • New approach records start/end events and asserts both checks started before either finished — a deterministic proof of parallelism immune to machine load

Test plan

  • ready.test.ts passes consistently (verified 5/5 runs locally)
  • Pre-commit hooks pass (full test suite ran during commit)
  • CI passes

🤖 Generated with Claude Code

… check in ready.test.ts

The "runs database checks in parallel" test used performance.now() with a
hard 50ms ceiling that flaked under CPU pressure (observed 59.79ms). Replace
with event-ordering assertions that prove both checks started before either
finished — a deterministic proof of parallelism immune to machine load.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 17, 2026 4:30pm
agents-manage-ui Ready Ready Preview, Comment Feb 17, 2026 4:30pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
agents-docs Skipped Skipped Feb 17, 2026 4:30pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

⚠️ No Changeset found

Latest commit: 3b88db8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot deleted a comment from claude bot Feb 17, 2026
@nick-inkeep nick-inkeep merged commit e88b38f into main Feb 17, 2026
9 checks passed
@nick-inkeep nick-inkeep deleted the fix/ready-test-flake branch February 17, 2026 17:01
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.

1 participant

Comments