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

[WIP] Try to improve CI build time #863

Merged
merged 8 commits into from
Jun 10, 2018
Merged

[WIP] Try to improve CI build time #863

merged 8 commits into from
Jun 10, 2018

Conversation

aballano
Copy link
Member

@aballano aballano commented May 26, 2018

Currently the ANK processor is executed before the unit tests, which wastes some time whenever the tests fail. This PR changes the execution order in order to fail fast.

For now:

  • Make build fail to get total time in CI. -> ~7min 15sec
  • Do improvements on build file
  • Check difference and apply if better

@aballano
Copy link
Member Author

@arrow-kt/maintainers I changed the order in the travis file to first run tests and then run ank in order to fail fast if tests are broken. The PR build is now ~5:57min instead of ~7:15min if there´s a failure.

.travis.yml Outdated
- ./gradlew codeCoverageReport
- bash <(curl -s https://codecov.io/bash)
- ./gradlew clean build :arrow-docs:runAnk
Copy link
Member

Choose a reason for hiding this comment

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

Don't we need to run the build before code coverage is reported?

Copy link
Member Author

Choose a reason for hiding this comment

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

AFAIK The coverage can be run at any time after ./gradlew codeCoverageReport runs. I´ll trigger a re-run to be sure :)

@aballano

This comment has been minimized.

@aballano
Copy link
Member Author

aballano commented Jun 7, 2018

@raulraja @pakoito Please verify it's ok and merge at will.

@raulraja raulraja merged commit 0fc7cb4 into master Jun 10, 2018
@raulraja raulraja deleted the ab/build_speedup branch June 10, 2018 18:43
RawToast pushed a commit to RawToast/kategory that referenced this pull request Jul 18, 2018
* Make build fail to get total time in CI.

* Do coverage report first in order to fail fast

* Remove test failure

* Update .travis.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants