-
-
Notifications
You must be signed in to change notification settings - Fork 632
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
Fix CI failures introduced by #6275 #6454
Merged
cosmicexplorer
merged 12 commits into
pantsbuild:master
from
cosmicexplorer:fix-6275-test-failures
Sep 5, 2018
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
cec28fb
rstrip -> strip to pass the py3 unit test shard
cosmicexplorer 1f6ac03
add PEX_VERBOSE=9 to a test failing with a resolution error
cosmicexplorer 93516af
reduce test shards to the failing ones
cosmicexplorer 5e63777
revert incorrect fix
cosmicexplorer a4862cf
plumb PEX_VERBOSE into executing pants test process
cosmicexplorer 8f1a49d
a clean-all shouldn't be necessary here...
cosmicexplorer 7ba39fd
remove everything but the integration test shard we really need
cosmicexplorer a451b3f
Revert "remove everything but the integration test shard we really need"
cosmicexplorer 9b3bdad
Revert "reduce test shards to the failing ones"
cosmicexplorer 4759e60
skip failing test
cosmicexplorer 52bf2c8
add another TODO describing a hack introduced into this PR
cosmicexplorer 10cfd9b
banish the offending bin target from the command line
cosmicexplorer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm not totally sure, but I'm pretty damn sure, the issue here is
allow_prereleases
. The native dists are always prereleases as things stand with their fingerprint version numbering scheme. Pants via pex (like pip), does not resolve prereleases by default - this has to be turned on. I think you'll need come up with a semi-substantial change to Pants' pex building code / PythonRequirement to allow for isolated resolves of only certain requirements with prereleases even if the overall resolve mode is the default ofallow_prereleases=False
. I dug a bit this am because hello_again resolution failures were blocking mygit commit
via the lint hook failing. I think it makes sense to uninstall this task pipeline by default until its working reliably. If twitter needs it installed, that could be done with a site-specific plugin register.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.
OK - this was tied up in a fairly subtle dance:
allow_prereleases
pantsbuild.pants
prereleases from tests into pants requirement resolution cache via:pants/tests/python/pants_test/backend/python/pants_requirement_integration_test_base.py
Line 43 in 46d5cb9
egg_info --tag-build=+[rest]
interacting badly when applied to a prerelease version.I'll file here shortly with all the details.
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.
I suspected something was funky when the version string had the
+
turned into an_
in the error message. I thought I remembered hearing thatallow_prereleases
was slightly different than the result of using the--tag-build
option from someone somewhere, but I don't recall exactly -- it would make sense if "prereleases" is a superset of tagged builds.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.
Also, uninstalling this task pipeline (the native backend as well as the
python_dist()
support) by default sounds great, and is the focus of #5970, which I was going to get to after this and another open PR got merged.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.
OK. #5970 is about contrib - I meant more - no matter where this is housed, have it turned off by default, even in pantsbuild/pants - until it is stable. It's caused more than its fair share of thrash due to instability.
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.
Sorry, I also didn't make it clear that my intention with #5970 was also absolutely to turn these off by default (I already wanted to do this just because downloading a huge binary compiler distribution alone feels like something I would want to have to opt in to).