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
Travis runs 'gradle assemble' even if project has custom script section. #8667
Comments
The description of this issue does not seem right. Since In addition, please note that the default behavior of the I think that the issue about how |
Yes, that's accurate, but only part of the issue. Issue description is a little bit off because I thought this behavior was changed recently.
Technically I agree, but if project defines custom But if you think that presence of Also, if
Whoa, surprised I haven't noticed this before and curious how much machine time Travis wasted because of that during 3 years… I guess, for now the way to avoid this Travis' behavior is to remove Reason why I'm asking is because there is one project that fails the build because of that ( Great response time btw! |
I am sorry to say, but this is not a feasible position to take. No other language has this sort of dependence among customizable steps.
Just override the |
It was that simple, huh!
I didn't say that it would be Made a PR to improve docs travis-ci/docs-travis-ci-com#1531, again thank you for fast responses and help in resolving the issue! |
Not to bring back a dead thread but the resolution was unclear to me. install:
- true Adding that to the |
Disabling install phase per: travis-ci/travis-ci#8667
…he `script` section. * More info: travis-ci/travis-ci#8667
OH SO YOU THINK YOU KNOW BETTER, TRAVIS? YOU'RE WRONG! I KNOW WHAT I NEED FOR MY BUILD AND I CAN FIGURE OUT WHAT'S MISSING IF SOMETHING GOES WRONG THANK YOU VERY MUCH! See travis-ci/travis-ci#8667 Signed-off-by: Ryan Cloherty <cloherty.ryan@gmail.com>
According to docs https://docs.travis-ci.com/user/languages/java/#Projects-Using-Gradle
gradle assemble
or
./gradlew assemble
There are multiple problems with this:
gradle assemble
not only resolves some dependencies, but actually builds all modules in projectgradle assemble
can take significant part of overall build time — minutes, depending on project (this is inefficient for Travis itself, I believe you waste tons of machine time on this every day even in projects that don't need this behavior)gradle assemble
duplicates significant part of build if user specifiedscript
section withgradle clean
task in it, basically removing results ofgradle assemble
run by Travisgradle assemble
can fail build because project doesn't expect this task to be run, ie Fix Travis CI build. uber/okbuck#547gradle assemble
consumes important Travis resource — log entries. Travis limits build logs in UI to 10k lines and overall log to 4mb. In our cases, 2-5k (300kb) of logs produced bygradle assemble
that we don't needgradle assemble
is running even if project has customscript
section, which is wrong. There are projects that happen to use Gradle but for instance need Docker to actually run it properly, Travis messes up with that. See Composer, Swarmer.TL;TR: please let users disable Travis' "Let's asssume we know how to build user's project better than user" behavior :)
Examples of affected projects (I believe I didn't see this behavior couple months ago):
gradle assemble
, turned out project usedbefore_script
instead ofbefore_install
)Happy to answer any questions, hope issue sounds reasonable, thanks!
The text was updated successfully, but these errors were encountered: