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

Use correct jgit artifact #129

Merged
merged 6 commits into from
May 18, 2017
Merged

Use correct jgit artifact #129

merged 6 commits into from
May 18, 2017

Conversation

leonardehrenfried
Copy link

This PR introduces org.eclipse.jgitas the main artifact for use in this plugin.

I cannot find any information on what org.eclipse.jgit.pgm is but it includes a large amount of unnecessary dependencies like the servlet API, jetty and other things that this plugin definitely doesn't need.

@bchazalet
Copy link
Contributor

That looks awesome!

@leonardehrenfried
Copy link
Author

leonardehrenfried commented May 17, 2017

Hmm, the JVM seemed to have crashed during the test job. I'm going to rerun it.

@leonardehrenfried
Copy link
Author

Hmm, the JVM still crashes. Does anybody know what this could mean:

Downloading sbt launcher for 0.13.16-M1:
  From  http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.16-M1/sbt-launch.jar
    To  /home/travis/.sbt/launchers/0.13.16-M1/sbt-launch.jar
*** buffer overflow detected ***: java terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7ff6f76bcdb7]
/lib/x86_64-linux-gnu/libc.so.6(+0x10bcb0)[0x7ff6f76bbcb0]
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so(Java_java_net_Inet4AddressImpl_getLocalHostName+0x190)[0x7ff6db11d8e0]
[0x7ff6ed014e98]

@leonardehrenfried
Copy link
Author

Okay, the newer version of the artifact doesn't work with Java 7. I'm going to be using an older version of the artifact that has been compiled with Java 7.

Why is Java 7, which has been EOL since April 2015, required?

@bchazalet
Copy link
Contributor

@leonardehrenfried I don't think you're getting the same error in travis now, do you? It looks like it's a java.lang.UnsupportedClassVersionError: org/eclipse/jgit/storage/file/FileRepositoryBuilder : Unsupported major.minor version 52.0

@bchazalet
Copy link
Contributor

bchazalet commented May 18, 2017

We didn't want to force java 8 on our users, at least without releasing a newest version for java 7 (that's 0.9.x). But, in my opinion, we could now switch to java 8. @hseeberger what do you think?

@leonardehrenfried
Copy link
Author

@bchazalet I hadn't committed the fix yet. The build is running now.

@leonardehrenfried
Copy link
Author

Bintray is very slow today. :(

[error] SERVER ERROR: Internal Server Error url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.16-M1/ivys/ivy.xml
[warn] problem while downloading module descriptor: https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.16-M1/ivys/ivy.xml: The HTTP response code for https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.16-M1/ivys/ivy.xml did not indicate a success. See log for more detail. (13454ms)

I'm going to try again.

@leonardehrenfried
Copy link
Author

This is getting very annoying:

[FAILED     ] org.scala-sbt#interface;0.13.16-M1!interface.jar: The HTTP response code for https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/interface/0.13.16-M1/jars/interface.jar did not indicate a success. See log for more detail. (22572ms)

@leonardehrenfried
Copy link
Author

Closed and reopened in order to trigger a rebuild on travis.

@leonardehrenfried
Copy link
Author

Again, retrigger travis build.

@leonardehrenfried
Copy link
Author

leonardehrenfried commented May 18, 2017

I give up. Something is wrong with bintray.

@dvic
Copy link

dvic commented May 18, 2017

Wow, is bintray having these problems often? Downloading a 252 kb jar takes 40 seconds:

[SUCCESSFUL ] org.scala-sbt#compile;0.13.16-M1!compile.jar (40274ms)

(taken from current build on TravisCI)

@leonardehrenfried
Copy link
Author

I have no hard data but to me bintray "feels" slower than Maven Central.

https://travis-ci.org/sbt/sbt-git/builds/233559905 has been resolving and downloading dependencies for ~30 minutes.

@bchazalet bchazalet requested review from hseeberger and dwijnand May 18, 2017 10:22
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

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

I have 1 comment, but it's not a blocker.

addons:
hosts:
- myshorthost
hostname: myshorthost
Copy link
Member

Choose a reason for hiding this comment

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

Can we use sudo: false? I.e the fast docker containers?

Copy link
Author

Choose a reason for hiding this comment

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

Sure we can.

@leonardehrenfried
Copy link
Author

Build also passes with sudo:false.

@dwijnand
Copy link
Member

Thanks, @leonardehrenfried.

@dwijnand dwijnand merged commit 54f8a68 into sbt:master May 18, 2017
oliverlockwood pushed a commit to oliverlockwood/sbt-git that referenced this pull request Nov 8, 2017
* Update dependency on self
* Fix crashing JVM with workaround
* Use older version of jgit in order to stay compatible with Java 7
* Cache dependencies between travis builds
* Disable sudo in order to use fast container infrastructure
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