-
-
Notifications
You must be signed in to change notification settings - Fork 933
Skip failing test if platform.dist() is Xenial #831
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #831 +/- ##
==========================================
+ Coverage 94.79% 94.79% +<.01%
==========================================
Files 59 59
Lines 9600 9604 +4
==========================================
+ Hits 9100 9104 +4
Misses 500 500
Continue to review full report at Codecov.
|
Do we know why it fails? I would never approve a test change like this... how about using a xenial docker container to figure out why? |
Given my pull request is hitting this, I decided to look into it. I made a docker container to run tox inside with python 2.7 through 3.7 and this happens:
It looks like there is some unexpected information coming out of git with xenial, which is newer than the one that comes with trusty, so disabling this test is absolutely not the right thing to do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The failing test is valid and showing the code is not ready for the updated git version on xenial. It may work find on trusty, but fails on xenial because it looks like git output changed.
What happens if git is upgraded on trusty? |
I may have been running into a different issue, as locally I had origin set to a git uri instead of https uri, and one of the tests was failing as a result. The last remote test assumes you have read access to origin (on github). Still running through to see what happens. |
Okay, this is pretty frustrating. The entire test suite seems to run only if the current branch is "master". If you are on another branch, there are a number of failures due to bad assumptions? Does anybody else do their work on a branch in a fork, or do you do all of your work in the master branch of your fork? Example:
Although the test seems to make you want to think it's okay, the assertion fails and the test actually fails. Then I run into:
Again this is because I have changes locally on a branch, which is best practices even if you are on your own fork. |
I found a FIXME in the command handler around joining the process thread which states that joining there could block stdin. The issue we're seeing in the CI build is that the command "git cat-file --batch" is waiting for stdin, but does not get it, so I think the issue is around there... |
I changed Python 3.7 to an allowed failure. There is something odd going on here I spent all day trying to understand. I cannot reproduce it inside a Docker container running xenial. Clearly the "get fetch --progress -v" is causing some sort of problem but all we get is error 1 and no additional information. |
Finally I was able to reproduce the issue in the docker container. Xenial comes with git 2.7.4 but 2.20.1 is installed on the xenial images on Travis, and when I updated the docker container to use the same version I am able to reproduce the issue:
|
So with git 2.20.1 running as a daemon I get an error:
"would clobber existing tag" looks like new behavior since April 2018. Need to use --force now. |
git 2.20 added new behavior here, no longer clobbering local tags: |
Related to #827
Ready for review.