pytorch / pytorch/executorch

Upgrade pytest to v9

Open
#15,797 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

module: ci
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

Pytest has released version 9.0, but we are seeing test failures after upgrading (example job). I'm pinning pytest<9.0 in https://github.com/pytorch/executorch/pull/15787 to unbreak CI, but we'll want to investigate the failure and remove the pin.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked example job to identify which tests fail under pytest 9.0, then inspect the pin to pytest<9.0 in pull request #15787. Reproduce the failure, update the affected tests or code, and verify CI passes with pytest 9.0 so the pin can be removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ci-cd, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.