twitter / cassovary

Cassovary is a simple big graph processing library for the JVM
http://twitter.com/cassovary
Apache License 2.0
1.05k stars 150 forks source link

Suddenly failing Travis CI #180

Closed pankajgupta closed 9 years ago

pankajgupta commented 9 years ago

https://travis-ci.org/twitter/cassovary/builds shows that version with git tag 5.1.1 suddenly started failing travis ci builds, and every build since then has failed with the same message: error sbt.ResolveException: unresolved dependency: com.twitter.common#metrics;0.0.29: not found

This is particularly strange since doing $ git diff 5.1.0 5.1.1 shows no change.

Further, I created a branch called old-state-good-travis which goes back to the tip at 5.1.0 and it now also fails Travis build. https://travis-ci.org/twitter/cassovary/builds/59096320

I'm out of ideas -- @caniszczyk : any help when you get a chance would be really appreciated.

pankajgupta commented 9 years ago

Created a new branch "new-travis-file" to play with different .travis.yml but doesn't seem to help. Throws the mysterious message while downloading metrics.jar. See https://travis-ci.org/twitter/cassovary/jobs/59100775 [warn] [FAILED ] com.twitter.common#metrics;0.0.29!metrics.jar: The HTTP response code for http://maven.twttr.com/com/twitter/common/metrics/0.0.29/metrics-0.0.29.jar did not indicate a success. See log for more detail. (1ms)

pankajgupta commented 9 years ago

Wonder if this is related to http://stackoverflow.com/questions/18208224/force-sbt-to-follow-redirects-for-an-explicit-github-releases-url

travisbrown commented 9 years ago

Hi @pankajgupta, I've just sent you an email about this issue—it's an intermittent problem with the maven.twttr.com repository that needs more investigation.

pankajgupta commented 9 years ago

Thanks for looking into it! I didn't seem to have gotten your email. Please resend to pankaj@yogins.com

On Sunday, April 19, 2015, Travis Brown notifications@github.com wrote:

Hi @pankajgupta https://github.com/pankajgupta, I've just sent you an email about this issue—it's an intermittent problem with the maven.twttr.com repository that needs more investigation.

— Reply to this email directly or view it on GitHub https://github.com/twitter/cassovary/issues/180#issuecomment-94279763.

pankajgupta commented 9 years ago

@travisbrown any suggested fixes apart from just including that jar in repo.

travisbrown commented 9 years ago

You can use - travis_retry sbt ++$TRAVIS_SCALA_VERSION test to make Travis retry the entire failed command three times—this has fixed the issue for us for other projects.

caniszczyk commented 9 years ago

@pankajgupta checking through your dependencies, why do you need something from maven.twttr.com? Can we refactor something to remove the dependency? That should help with the flakiness and in the future, maven.twttr.com will eventually go away

travisbrown commented 9 years ago

@caniszczyk At a glance it looks like it might not be too hard to remove the direct com.twitter.common dependencies here, but metrics is also needed by finagle-stats, which would be a lot harder to disentangle. We just need to start publishing this stuff to Maven Central.

pankajgupta commented 9 years ago

That's right. Currently, we are using finagle-stats which needs metrics.

I am not sure if retries will help. Looks like very single travis build has failed in the last few days.

What again is the intermittent problem with maven.twttr.com -- is it unsolvable ?

On Mon, Apr 20, 2015 at 7:54 AM, Travis Brown notifications@github.com wrote:

@caniszczyk https://github.com/caniszczyk At a glance it looks like it might not be too hard to remove the direct com.twitter.common dependencies here, but metrics is also needed by finagle-stats, which would be a lot harder to disentangle. We just need to start publishing this stuff to Maven Central.

— Reply to this email directly or view it on GitHub https://github.com/twitter/cassovary/issues/180#issuecomment-94474657.

pankajgupta commented 9 years ago

Solved for now by doing retries.