Skip to content

test(python): type maintained fixtures for stricter analysis - #351

Merged
swkeever merged 2 commits into
mainfrom
skeever/python-typed-test-boundaries
Sep 24, 2026
Merged

swkeever merged 2 commits into
mainfrom
skeever/python-typed-test-boundaries

Conversation

@swkeever

Copy link
Copy Markdown
Collaborator

Typed test fixtures replace broad dynamic values at the maintained test boundaries, so stricter Python analysis can inspect facade calls, generated-script exports, refresh payloads, and lock behavior without changing the SDK's runtime or public API. The lock tests use dedicated inspection subclasses instead of reaching into protected methods from unrelated test classes. The policy test also rejects Pyright ignore directives outside intentional-invalid type fixtures.

Validation: uvx --from uv==0.12.17 uv run --locked poe quality passes: Ruff, mypy, basedpyright, 1,964 unit tests, 100% runtime line and branch coverage, generated-client comparison, contract dry run, wheel/sdist and optional-dependency checks, dependency audit, and 501/501 scoped mutants killed.

@swkeever

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-24T03:25:14.495206Z 2664a90 Manual request
🔒 Security Review Completed 2026-09-24T03:26:54.626162Z 2664a90 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 3d24c9194b

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@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: 3d24c9194b

ℹ️ 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 scripts/check_quality_policy.py Outdated
Comment on lines +223 to +225
remaining = (
PYRIGHT_IGNORE.sub("", token.string) if name in TYPE_FIXTURES else token.string
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep Pyright suppressions behind reviewed exceptions

For any path in TYPE_FIXTURES, this strips a rule-scoped Pyright ignore before the forbidden-suppression scan, thereby creating a new blanket quality-policy exception even though this commit adds no corresponding entry to maintainers/quality-exceptions.json. A future # pyright: ignore[...] in any listed fixture will therefore bypass attestation without the required human approval and exact exception record; retain the prohibition until that process is completed.

AGENTS.md reference: AGENTS.md:L6-L9

Useful? React with 👍 / 👎.

@swkeever

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 2664a9049b

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

@swkeever
swkeever marked this pull request as ready for review September 24, 2026 03:25
@swkeever
swkeever requested a review from a team as a code owner September 24, 2026 03:25
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 2664a9049b

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@swkeever
swkeever merged commit e3285b6 into main Sep 24, 2026
9 checks passed
@swkeever
swkeever deleted the skeever/python-typed-test-boundaries branch September 24, 2026 03:27
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