Skip to content

perf: speed up the test suite - #4171

Merged
seratch merged 3 commits into
mainfrom
perf/faster-test-suite
Aug 4, 2026
Merged

perf: speed up the test suite#4171
seratch merged 3 commits into
mainfrom
perf/faster-test-suite

Conversation

@seratch

@seratch seratch commented Aug 4, 2026

Copy link
Copy Markdown
Member

This pull request improves test-suite performance while preserving and, in some cases, strengthening existing behavioral coverage.

It updates pytest-xdist scheduling from loadfile to worksteal, consolidates related cases with parameterization, replaces unnecessary wall-clock waits with deterministic test doubles, and runs independent read-only shell probes concurrently. It also captures the two expected Pydantic non-serializable-default warnings locally instead of emitting them during the full test run.

Local results on the same machine included:

  • Non-serial full suite: 53.85s → 28.71s, approximately 47% faster. This measurement is load-dependent.
  • Blaxel test file: 5.24s → 1.14s.
  • Import side-effect tests: 10.60s → 5.55s.
  • Read-path shell probe: 1.46s → 0.75s.
  • MCP retry tests: eliminated two fixed one-second backoff waits; the full file now runs in 0.14s.
  • Test warnings: 2 → 0.

The final verification completed successfully with formatting, linting, type checking, parallel tests, and the serial test pass.

@seratch seratch added the project label Aug 4, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7fba314c8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/extensions/sandbox/test_blaxel.py
Comment thread tests/extensions/sandbox/test_blaxel.py Outdated
@seratch
seratch enabled auto-merge (squash) August 4, 2026 08:31
@seratch
seratch merged commit 19e364c into main Aug 4, 2026
9 checks passed
@seratch
seratch deleted the perf/faster-test-suite branch August 4, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant