Skip to content

Handle flaky windows test by rerunning #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 13, 2020

Conversation

BeyondEvil
Copy link
Contributor

@BeyondEvil BeyondEvil commented Dec 12, 2020

I'm thinking about opening a PR with pytest-rerunfailures so that we can provide a condition for the rerun. I only want it to rerun on windows machines.

The styling/indentation changes to .pre-commit-config.yml was made by my yaml linter.

I'm reluctant to set #395 to "fixed" by this PR.

Comment on lines 902 to 922
"with_ansi",
[True, False],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was introduced by the new version of Black.

Pipfile Outdated
Comment on lines 9 to 10
flake8 = "==3.8.4"
black = "==20.8b1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pin versions in Pipfile to same as the ones in .pre-commit-config.yml to avoid inconsistencies.

- repo: https://github.com/psf/black
rev: 19.10b0
- repo: https://github.com/psf/black
rev: 20.8b1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

new version of Black

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.2
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
Copy link
Contributor Author

Choose a reason for hiding this comment

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

new version of Flake8

@gnikonorov
Copy link
Member

Can we split the changes due to the version upgrades of flake8 and black into a different PR since it's not related to the flaky test?

It would be a cleaner commit history.

@BeyondEvil
Copy link
Contributor Author

Sure @gnikonorov! I can sort it tomorrow. 👍

@gnikonorov
Copy link
Member

Thank you, @BeyondEvil !

@BeyondEvil
Copy link
Contributor Author

Fixed @gnikonorov , will update/rebase this once #416 is merged.

@gnikonorov gnikonorov added skip-changelog Can be missed from the changelog. test This PR relates to tests, QA, CI. labels Dec 13, 2020
@BeyondEvil
Copy link
Contributor Author

Let's get this reviewed and merged @gnikonorov 🙏

Copy link
Member

@gnikonorov gnikonorov left a comment

Choose a reason for hiding this comment

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

LGTM! 🚢 it

@gnikonorov
Copy link
Member

Can you update the description of this PR too ( or just removed the blocked part )

@BeyondEvil BeyondEvil merged commit a0a5916 into pytest-dev:master Dec 13, 2020
@BeyondEvil BeyondEvil deleted the rerun-flaky-test branch December 13, 2020 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Can be missed from the changelog. test This PR relates to tests, QA, CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants