Skip to content
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

Disallow failures for tests we expect to pass #8301

Merged
merged 1 commit into from
May 27, 2020

Conversation

uranusjr
Copy link
Member

Since we’re skipping tests with fails_on_new_resolver in group 1 and 2, disallowing them to fail would help us catch regressions.

@uranusjr uranusjr added skip news Does not need a NEWS file entry (eg: trivial changes) C: new resolver labels May 22, 2020
@uranusjr uranusjr force-pushed the disallow-failure-in-new-resolver branch from 1468ea8 to e89ba7d Compare May 22, 2020 10:29
Copy link
Member

@pfmoore pfmoore left a comment

Choose a reason for hiding this comment

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

Thanks for doing this, I didn't know how to get Travis to just allow failures in the one case.

@uranusjr
Copy link
Member Author

And it’s immediately catching regressions…

@uranusjr uranusjr force-pushed the disallow-failure-in-new-resolver branch from e89ba7d to 17d953c Compare May 22, 2020 11:18
@pfmoore
Copy link
Member

pfmoore commented May 22, 2020

Sigh.

Should I revert #8298 so we can get this in, or leave this on hold until we get a fix for #8298 sorted out? I'm inclined to revert, as we've now confirmed that having this in place is useful 🙂

@uranusjr
Copy link
Member Author

The weird thing is those three tests are all passing locally on my machine, otherwise I could have just fixed them here 😕 So yeah maybe it’d be best to revert and work on investigating the problems in another PR.

@pradyunsg
Copy link
Member

Yea, let's revert. :)

@pfmoore
Copy link
Member

pfmoore commented May 22, 2020

Reverting in #8304

@pfmoore
Copy link
Member

pfmoore commented May 22, 2020

The weird thing is those three tests are all passing locally on my machine

And the way the tests capture the subprocess output, and then assert and use the output as the assertion message, which pytest then abbreviates, makes it so hard to work out what went on. That's a really bad pattern we use in our tests, and I'd love to fix it somehow. But maybe not right now 🙂

@pfmoore
Copy link
Member

pfmoore commented May 22, 2020

This should probably be rebased on master before merging, to confirm that the tests now pass...

@pradyunsg
Copy link
Member

pradyunsg commented May 22, 2020

fix it somehow

leans in from edge of a wall

Pssst! Look over here! Is more stuff like #8303 what you want?

@uranusjr uranusjr closed this May 24, 2020
@uranusjr
Copy link
Member Author

uranusjr commented May 24, 2020

🦶 I hope this passes now the output thing is fixed.

@uranusjr uranusjr reopened this May 24, 2020
@uranusjr uranusjr force-pushed the disallow-failure-in-new-resolver branch from 17d953c to 1f14c91 Compare May 24, 2020 20:01
@pradyunsg
Copy link
Member

@uranusjr uranusjr force-pushed the disallow-failure-in-new-resolver branch from 1f14c91 to 9238fc3 Compare May 25, 2020 05:01
@uranusjr
Copy link
Member Author

uranusjr commented May 25, 2020

The test has been failing ever since #7996 was merged. It needs to somehow be fixed first. (It’s quite weird though; I imagine the logic should be entirely in the finder, which is the same between the two resolvers.)

@uranusjr
Copy link
Member Author

Found the issue; we broke the candidate ordering PackageFinder gave us. Fix proposed in #8319.

@pradyunsg
Copy link
Member

pradyunsg commented May 25, 2020

Let's add the GROUP=1 job to "allow failures" here, merge this, and remove that job in #8319? That'll reduce the need to do yet-another-rebase of this PR.

Note from 2-minutes-later-me: well, we'd need to rebase either PR if we want to ensure that CI passes the entire time. FWIW, we could merge that and then this PR and things will be hunky-dory, so... this entire comment adds basically no value and you just wasted your time reading this.

@pfmoore
Copy link
Member

pfmoore commented May 27, 2020

#8319 is merged now. Does this need rebasing to merge? I'm getting so confused... 🙁

Is there any way I can rebase someone else's PR? I feel like I'm spending my time getting @uranusjr to rebase stuff that I could quite happily do myself if only I knew how...

@uranusjr
Copy link
Member Author

With the situation with the resolvelib PR in mind, I think we should just merge all the things first and take a complete look at the regressions. These test config PRs are blocking too many things…

@pradyunsg
Copy link
Member

@pfmoore

git remote add uranusjr https://github.com/uranusjr/pip.git
git fetch uranusjr

git checkout disallow-failure-in-new-resolver
git rebase master
git push uranusjr disallow-failure-in-new-resolver -f

@pradyunsg
Copy link
Member

I think we should just merge this and then make a follow up fixing the finer issues. Travis CI is already flaky/not-required, so this wouldn't break anything.

@uranusjr
Copy link
Member Author

I don’t mind if you don’t.

@pradyunsg
Copy link
Member

merge this and then make a follow up fixing the finer issues. Travis CI is already flaky/not-required, so this wouldn't break anything.

@pfmoore If you're OK with this plan, let's do that. Feel free to click merge on this one. :P

@pfmoore pfmoore merged commit 7c10d3e into pypa:master May 27, 2020
@uranusjr uranusjr deleted the disallow-failure-in-new-resolver branch September 28, 2020 14:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants