Skip to content

GH-55676: [Python][CI] Run type annotation checks independently - #55810

Open
ibrahimmaq14 wants to merge 1 commit into
apache:mainfrom
ibrahimmaq14:fix/55676-type-annotation-ci
Open

ibrahimmaq14 wants to merge 1 commit into
apache:mainfrom
ibrahimmaq14:fix/55676-type-annotation-ci

Conversation

@ibrahimmaq14

Copy link
Copy Markdown

Rationale for this change

Type annotation checks currently run after documentation validation in two jobs. A dedicated job gives annotation failures their own result and lets the checks run even when documentation validation fails.

What changes are included in this PR?

Add a Python 3.12 matrix job that builds PyArrow in the existing Conda Python image and runs the annotation script. Install pandas so the runtime stub tests exercise pandas conversion. Remove the annotation invocation from the shared documentation service and keep its existing validation steps.

Are these changes tested?

  • Validated the GitHub Actions matrix and rendered Docker Compose services, including both documentation workflow entry points. Archery's Docker tests passed (20 tests).
  • Ran the annotation script in the Conda Python 3.12 CI image using PyArrow nightly 27.0.0.dev166. MyPy, Pyright, and ty passed on 25 files, all 43 runtime stub tests passed, and stubtest passed on 143 modules.
  • git diff --check passed. Actionlint reported the same existing matrix.ubuntu diagnostic on upstream main and on this branch.

Are there any user-facing changes?

No. This changes CI configuration only.

Was AI used for this PR?

OpenAI Codex authored the workflow and Compose edits and this PR description, and reviewed the diff and validation results.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

Run the stub check script after building PyArrow in its own Conda Python job. Keep pandas available for runtime stub tests and preserve the existing documentation checks.

Generated-by: OpenAI Codex
Copilot AI balanced review requested due to automatic review settings November 27, 2026 06:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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