Skip to content

test: make parallel guardrail overlap deterministic - #4187

Merged
seratch merged 1 commit into
mainfrom
fix/deterministic-parallel-guardrail-tests
Aug 5, 2026
Merged

test: make parallel guardrail overlap deterministic#4187
seratch merged 1 commit into
mainfrom
fix/deterministic-parallel-guardrail-tests

Conversation

@seratch

@seratch seratch commented Aug 5, 2026

Copy link
Copy Markdown
Member

This pull request takes over the test-stability improvement proposed in #4158. It replaces timing-sensitive wall-clock assertions with a two-way event rendezvous, preserving the blocking-before-model and blocking-before-parallel checks while proving that the model is invoked while the parallel guardrail is genuinely active in both streaming and non-streaming runs.

The implementation includes the additional synchronization needed to prevent the tests from passing when the model starts before the parallel guardrail. The original contributor is credited with a Co-authored-by commit trailer.

Replace timing-sensitive wall-clock assertions with a two-way event rendezvous in the streaming and non-streaming mixed input guardrail tests.

Co-authored-by: LeSingh1 <sshaurya914@gmail.com>
@seratch seratch added this to the 0.19.x milestone Aug 5, 2026
@seratch seratch added the project label Aug 5, 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: 0896a0563d

ℹ️ 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/test_guardrails.py
@seratch
seratch merged commit afbadd0 into main Aug 5, 2026
9 checks passed
@seratch
seratch deleted the fix/deterministic-parallel-guardrail-tests branch August 5, 2026 01:01
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