pytest-dev / pytest-dev/pytest-rerunfailures

Add ability to raise runtime warnings on reruns

Open
#318 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
477
Forks
107
Avg merge
2d 14h
Merged PRs (30d)
21

Description

I want to make the reruns more visible on CI by making use of github actions annotations.

This can be achieved easily using a plugin like pytest-github-actions-annotate-failures/ which can also translated runtime warnings into github annotations.

Now the only thing we need is to be able to configure pytest-rerunfailures to raise runtime warnings when it does reruns, so they will be visible.

AFAIK there is no option to hook into how reruns are made to make this happen.

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 by examining how pytest-rerunfailures currently performs reruns and whether it exposes a hook or configuration point for reporting them. Compare the desired behavior with pytest-github-actions-annotate-failures, especially how runtime warnings become GitHub annotations. Done means reruns can be configured to emit warnings that the annotation plugin surfaces in CI.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.