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

move platform-specific testing to its own subdirectory of python tasks for 1:1:1 #6841

Conversation

cosmicexplorer
Copy link
Contributor

Problem

The haphazard distribution of the test targets tagged with 'platform_specific_behavior' in tests/python/pants_test/backend/python/tasks/BUILD is not only hard to follow, it also causes mysterious errors -- see this comment on #6816.

Solution

  • Move the tests tagged with 'platform_specific_behavior' into a new subdirectory named platform_specific_behavior/.

@baroquebobcat
Copy link
Contributor

It looks like some of the CI failures are related to the changes.

@cosmicexplorer
Copy link
Contributor Author

The integration test failure (specifically error: command 'x86_64-linux-gnu-gcc' failed with exit status 1) implies we're not appropriately preparing the environment for setup.py execution (because distutils is very sneaky and will choose the compiler for you if you're not careful) -- if a fix is required it will be done separately, this is stalled just for now until I figure that out. This concerns me a little since we have been trying to ensure the compilation is isolated (i.e. uses our own compiler -- x86_64-linux-gnu-gcc is what's on the travis image, not ours). I need to set aside some time to look into this post #6800.

@cosmicexplorer cosmicexplorer force-pushed the split-python-native-code-testing-targets-111 branch from c8a1665 to 022ed8c Compare December 7, 2018 21:18
@jsirois
Copy link
Contributor

jsirois commented Dec 8, 2018

Please ping when this is ready for review (green).

cosmicexplorer added a commit that referenced this pull request Jan 25, 2019
…tensions in setup.py (#7126)

### Problem

Resolves #7016 (see [mirrored `pants-devel` post](https://groups.google.com/forum/#!topic/pants-devel/Y37d0tf4bKo)). This unblocks #6855 and #7046, as well as further work on #7122.

Closes #5661, closes #6841. I also made a long, long-overdue [github project for native code](https://github.com/pantsbuild/pants/projects/11).

### Solution

- Use the host environment to invoke compilers and linkers as desired in distutils, don't try to inject our own toolchain. See #5661 and #7016 for why this is extremely difficult to maintain. 

### Result

Further native backend iteration is unblocked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants