Skip to content

Improve parallel suite scheduling and correctness#33

Merged
mavam merged 8 commits intomainfrom
topic/scheduling-tweaks
Feb 27, 2026
Merged

Improve parallel suite scheduling and correctness#33
mavam merged 8 commits intomainfrom
topic/scheduling-tweaks

Conversation

@mavam
Copy link
Copy Markdown
Member

@mavam mavam commented Feb 26, 2026

Summary

Parallel suite scheduling improvements to prevent concurrency bugs and ensure correct test execution:

  • Suite prioritization: Workers now dequeue parallel suites before standalone tests, ensuring interdependent test groups (e.g., publisher/subscriber pairs) start together instead of being delayed by unrelated test backlogs

  • min_jobs correctness guard: Parallel suites can declare min_jobs in test.yaml to specify the minimum --jobs value required for correct execution. The harness fails fast with a clear error if --jobs is too low

  • Oversubscription warning: When a parallel suite has more tests than available jobs, the harness emits a warning so users know effective parallelism is capped

  • Slot acquisition improvements: Parallel suites acquire all slots upfront and run members without per-member slot acquisition. New synchronization primitives (slot_lock and queue_lock) prevent races when multiple workers share slot budgets and work queues

Documentation

Companion docs PR: tenzir/docs#227

Test Plan

  • All existing tests pass
  • New unit tests for _validate_parallel_suite_min_jobs, _warn_parallel_suite_oversubscription, _pop_next_queue_item
  • New integration tests for min_jobs guard at Worker and CLI level
  • New test verifying suite prioritization ordering

🤖 Generated with Claude Code

mavam and others added 3 commits February 26, 2026 19:16
Add min_jobs field to parallel suites so they can declare the minimum
job count required for correct execution. Validate this upfront and fail
fast if underprovisioned. Prioritize parallel suite execution over
standalone tests to ensure interdependent test groups start together.
Warn when parallel suites have more tests than available jobs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mavam mavam marked this pull request as ready for review February 27, 2026 11:36
@mavam
Copy link
Copy Markdown
Member Author

mavam commented Feb 27, 2026

@codex review

Copy link
Copy Markdown

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

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: ae651341a7

ℹ️ 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".

Copy link
Copy Markdown

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

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: c2ef56a2b1

ℹ️ 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".

Copy link
Copy Markdown

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

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: 16f87cd656

ℹ️ 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".

Copy link
Copy Markdown

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

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: aa1da6f236

ℹ️ 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".

@mavam mavam merged commit 2b28052 into main Feb 27, 2026
6 checks passed
@mavam mavam deleted the topic/scheduling-tweaks branch February 27, 2026 20:57
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