Skip to content

Remove callable-specific Rust signature tests - #9562

Merged
youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:cleanup/remove-callable-signature-tests-20261103
Nov 3, 2026
Merged

youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:cleanup/remove-callable-signature-tests-20261103

Conversation

@youknowdot

Copy link
Copy Markdown
Contributor

Summary

  • Remove seven recently added Rust tests that assert signature metadata for individual Python callables: Struct, struct packing, regular-expression pattern methods, warnings, lazy import, Windows certificate stores, and epoll.modify.
  • Keep the production implementations and tests of signature-generation infrastructure unchanged.

Validation

  • Independent source review and normal repository pre-commit hooks passed; the changes remove only the named tests, their now-empty test modules/imports, and formatting-only blank lines.
  • Workspace compilation and tests are in progress. Python test coverage, the existing whats_left signature report, and exact-head CI remain to be checked.

Assisted by OpenAI Codex.

Retain coverage of signature infrastructure while removing tests tied to individual Python callables, as requested.

Assisted-by: OpenAI Codex:model version not exposed
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@youknowdot
youknowdot force-pushed the cleanup/remove-callable-signature-tests-20261103 branch from 08f089e to de9f028 Compare November 3, 2026 07:06
@youknowone
youknowone marked this pull request as ready for review November 3, 2026 10:22
@youknowone
youknowone merged commit 18fc82b into RustPython:main Nov 3, 2026
28 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-11-03T10:26:11.327124Z de9f028 Draft marked ready
ℹ️ 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 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: de9f0284de

ℹ️ 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 on lines 507 to 509
#[derive(FromArgs)]
struct EpollPollArgs {
#[pyarg(any, default, py_default = "None")]

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 Preserve the callable-specific regression tests

The root AGENTS.md explicitly says “NEVER comment out or delete any test code lines,” except expected-failure decorators and their TODO comments. This commit deletes seven regression tests without replacement. This test, for example, checks that epoll.modify retains keyword-capable parameters, required arguments, and matching signature metadata; the retained generic signature-generation tests do not verify these callable-specific annotations. Restore the deleted tests to preserve that coverage and comply with the repository rule.

AGENTS.md reference: AGENTS.md:L277-L277

Useful? React with 👍 / 👎.

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.

2 participants