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

Run contrib tests with unit tests and integration tests for fewer CI delays #7709

Merged
merged 8 commits into from
Jun 5, 2019

Conversation

Eric-Arellano
Copy link
Contributor

Problem

The contrib shards consistently are the blocker for CI runs because they appear near the end of the shards.

While discussing options to fix this, we realized that there is no compelling reason for the contrib folder to have its own dedicated shard(s). Instead, it would be valuable to use the split between unit tests vs. integration tests with the contrib code too.

Solution

Merge contrib tests into the unit tests and integration tests shards.

Result

The unit tests and integration tests shards will take slightly longer, but we will no longer be blocked by contrib at the end of the run.

Copy link
Contributor

@blorente blorente left a comment

Choose a reason for hiding this comment

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

Cool! I think the bottleneck are still the integration tests, so this change is cool :)

build-support/bin/ci.sh Show resolved Hide resolved
The contrib folders have these, but we don't want to run them.
Copy link
Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks!

@Eric-Arellano Eric-Arellano changed the title Run contrib tests with unit tests and integration tests for less CI delays WIP: Run contrib tests with unit tests and integration tests for less CI delays May 13, 2019
@Eric-Arellano
Copy link
Contributor Author

This fails due to running contrib unit tests with --chroot. I'm going to punt on this for now and maybe have a precursor PR that uses --chroot with contrib unit tests.

@Eric-Arellano Eric-Arellano changed the title WIP: Run contrib tests with unit tests and integration tests for less CI delays WIP: Run contrib tests with unit tests and integration tests for fewer CI delays Jun 3, 2019
@Eric-Arellano
Copy link
Contributor Author

Closing in favor of #7845. This solution is now out of sync with master as well. If we wanted to move forward with this approach, we should start by getting chroot to work for contrib.

@Eric-Arellano Eric-Arellano deleted the merge-contrib-ci branch June 4, 2019 12:46
@Eric-Arellano Eric-Arellano restored the merge-contrib-ci branch June 4, 2019 14:32
@Eric-Arellano Eric-Arellano reopened this Jun 4, 2019
@Eric-Arellano Eric-Arellano changed the title WIP: Run contrib tests with unit tests and integration tests for fewer CI delays Run contrib tests with unit tests and integration tests for fewer CI delays Jun 4, 2019
Copy link
Contributor Author

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Now ready for review.

This PR means that the unit tests will take even longer :/ @blorente and I discussed creating our own manual shards for unit tests: one to run V2 and one to run V1 + contrib + ci.sh -l. I punted on that work to do in a followup PR.

@@ -27,18 +27,9 @@ Usage: $0 (-h|-2fxbkmrjlpuneycitzsw)
-j run core jvm tests
-l run internal backends python tests
-p run core python tests
-u SHARD_NUMBER/TOTAL_SHARDS
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should have been removed from #7724.

build-support/bin/ci.sh Outdated Show resolved Hide resolved
build-support/bin/ci.sh Outdated Show resolved Hide resolved
Copy link
Contributor Author

@Eric-Arellano Eric-Arellano 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 the review John!

build-support/bin/ci.sh Outdated Show resolved Hide resolved
build-support/bin/ci.sh Outdated Show resolved Hide resolved
@Eric-Arellano Eric-Arellano merged commit 922cd76 into pantsbuild:master Jun 5, 2019
@Eric-Arellano Eric-Arellano deleted the merge-contrib-ci branch June 5, 2019 04:26
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