Skip to content

Bump pytest to 9.0.3, pytest-cov to 6.1.1, hypothesis to 6.131.15#19172

Open
kirklandsign wants to merge 1 commit intomainfrom
export-D102679505
Open

Bump pytest to 9.0.3, pytest-cov to 6.1.1, hypothesis to 6.131.15#19172
kirklandsign wants to merge 1 commit intomainfrom
export-D102679505

Conversation

@kirklandsign
Copy link
Copy Markdown
Contributor

@kirklandsign kirklandsign commented Apr 27, 2026

Summary:
Brings executorch's open-source CI test-dependency pins forward:

  • pytest: 7.2.0 → 9.0.3
  • pytest-cov: 4.1.0 → 6.1.1 (required for pytest 9.x compatibility;
    pytest-cov 4.x predates pytest 8/9 support)
  • hypothesis: 6.84.2 → 6.131.15

`requirements-ci.txt` is the pinned dependency set used by the CI Docker
images. The previous pins predated pytest 8 and 9 entirely; bumping in
one go avoids stacking incompatible Dependabot PRs.

Also drops the `pytest<9.0` upper bound in `requirements-dev.txt`. That
cap pre-dated pytest 8/9 support and now actively conflicts with the CI
pin — without lifting it, contributors hit pip resolver errors when
trying to reproduce CI failures locally.


overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: ai_infra_mobile_platform

Differential Revision: D102679505

Copilot AI review requested due to automatic review settings April 27, 2026 21:49
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Apr 27, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19172

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 5 New Failures

As of commit 6566850 with merge base cb4e5ae (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 27, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Apr 27, 2026

@kirklandsign has exported this pull request. If you are a Meta employee, you can view the originating Diff in D102679505.

@github-actions
Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates ExecuTorch’s pinned Python test dependencies used by the CI Docker images to newer, mutually-compatible versions (pytest 9.x + matching pytest-cov, plus a newer Hypothesis) to modernize OSS CI and avoid stacking incompatible bumps.

Changes:

  • Bump pytest from 7.2.0 to 9.0.3
  • Bump pytest-cov from 4.1.0 to 6.1.1 (to match newer pytest)
  • Bump hypothesis from 6.84.2 to 6.131.15

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +12 to +15
pytest==9.0.3
pytest-cov==6.1.1
expecttest==0.1.6
hypothesis==6.84.2
hypothesis==6.131.15
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

After bumping CI to pytest 9.x, the repo’s development requirements are now inconsistent: requirements-dev.txt still caps pytest<9.0. This makes it harder to reproduce CI failures locally and can lead to dependency resolver conflicts for contributors. Consider updating/removing that cap in the same PR (or explicitly linking a landed follow-up) so dev and CI environments stay aligned.

Copilot uses AI. Check for mistakes.
Summary:
Brings executorch's open-source CI test-dependency pins forward:
- pytest:       7.2.0   → 9.0.3
- pytest-cov:   4.1.0   → 6.1.1   (required for pytest 9.x compatibility;
                                     pytest-cov 4.x predates pytest 8/9 support)
- hypothesis:   6.84.2  → 6.131.15

\`requirements-ci.txt\` is the pinned dependency set used by the CI Docker
images. The previous pins predated pytest 8 and 9 entirely; bumping in
one go avoids stacking incompatible Dependabot PRs.

Also drops the \`pytest<9.0\` upper bound in \`requirements-dev.txt\`. That
cap pre-dated pytest 8/9 support and now actively conflicts with the CI
pin — without lifting it, contributors hit pip resolver errors when
trying to reproduce CI failures locally.

___

overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: ai_infra_mobile_platform

Differential Revision: D102679505
@meta-codesync meta-codesync Bot force-pushed the export-D102679505 branch from 0024498 to 6566850 Compare April 27, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants