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

Revert "make GoTest subclass PartitionedTestRunnerTaskMixin to test transitively" #7212

Merged

Conversation

stuhood
Copy link
Member

@stuhood stuhood commented Feb 4, 2019

See #7188.

@stuhood stuhood added this to the 1.14.x milestone Feb 4, 2019
@stuhood stuhood merged commit b8999e1 into pantsbuild:master Feb 4, 2019
@stuhood stuhood deleted the stuhood/revert-go-partitioned-test-runner branch February 4, 2019 21:26
stuhood pushed a commit that referenced this pull request Feb 5, 2019
cosmicexplorer added a commit to cosmicexplorer/pants that referenced this pull request Mar 7, 2019
cosmicexplorer added a commit to cosmicexplorer/pants that referenced this pull request Mar 24, 2019
cosmicexplorer added a commit that referenced this pull request Mar 31, 2019
…7326)

### Problem

Resolves #7188. #7145 allowed go tests to test their transitive dependencies (necessary because go targets contain both sources and test files), but it was broken in a few ways, leading to the revert in #7212.

### Solution

- Return an iterable (`[]`) from `collect_files()` so the background cache insertion doesn't fail.
- Make `PartitionedTestRunnerTaskMixin` no-op when there are no invalid targets instead of first calling `run_tests()`.
- Turn `--build-and-test-flags` into a list of shlexed strings instead of a single string.

### Result

The go testing from #7145 should have all its issues fixed!
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.

2 participants