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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jgit is causing long execution time in GitLab Pipeline #726

Closed
MM-Hahn opened this issue Oct 30, 2020 · 1 comment
Closed

Jgit is causing long execution time in GitLab Pipeline #726

MM-Hahn opened this issue Oct 30, 2020 · 1 comment

Comments

@MM-Hahn
Copy link

MM-Hahn commented Oct 30, 2020

Hello 馃憢

we are using Spotless for our verification tasks in our Pipeline and are experiencing long waiting times. This is only related when executing Spotless in a docker environment.

Gradle version: 6.5.1 (We got many projects with slightly different versions)
Spotless version: 3.27.1 & 5.7

Spot of issue in GitLab Pipeline:

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.2/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
locking FileBasedConfig[/root/.gitconfig] failed after 5 retries

After some research I found a corresponding bug from Jgit: https://bugs.eclipse.org/bugs/show_bug.cgi?id=566170
The bug is now resolved with version 5.9.0.202009080501-r and spotless is using 5.8.0.202006091008-r

Are any others of you experiencing this issue? The Pipeline stops for about 2 minutes at this point.

Possible workaround in Gradle:

buildscript {
    configurations.classpath {
        resolutionStrategy {
            force("org.eclipse.jgit:org.eclipse.jgit:5.9.0.202009080501-r")
        }
    }
}

EDIT:

This failure does not affect the execution time of the pipeline. Nevertheless it is an error and can be solved by updating jGit (like above).

@nedtwigg
Copy link
Member

Published in plugin-gradle 5.8.1 and plugin-maven 2.6.0.

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

No branches or pull requests

2 participants