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

Development: Fix server style job that fails due to known issue in spotless #4173

Merged
merged 4 commits into from
Oct 22, 2021

Conversation

lschlesinger
Copy link
Contributor

@lschlesinger lschlesinger commented Oct 21, 2021

Motivation and Context

The server-style job fails since X due to an error shown in the picture.
People tend to not check the result of this job anymore, cause if "fails anyways", so a failure does not raise the awareness of the developers, which is a risk on introducing server-style issues. Furthermore, the task of removing unused imports could not be executed properly -> we had one unused import in develop, it is removed in this PR as well.

Description

This is a false positive, as it is a reported bug in spotless-> check the according ticket here.
As reported in the bugticket "that's because google-java-format now requires additional JVM flags during compilation: https://github.com/google/google-java-format/releases/tag/v1.10.0".

I applied the fix proposed in the conversation of the bugticket.
With this changes, the server-style check passes again.

Bildschirmfoto 2021-10-21 um 20 44 15

Bildschirmfoto 2021-10-21 um 20 44 54

@lschlesinger lschlesinger self-assigned this Oct 21, 2021
@github-actions github-actions bot added the server Pull requests that update Java code. (Added Automatically!) label Oct 21, 2021
@lschlesinger lschlesinger changed the title test work-around for failing server-style Development: Fix server-style Github workflow that breaks due to known issue Oct 21, 2021
@lschlesinger lschlesinger changed the title Development: Fix server-style Github workflow that breaks due to known issue Development: Fix server-style Job in Github pipeline that fails due to known issue in spotless Oct 21, 2021
@lschlesinger lschlesinger marked this pull request as ready for review October 21, 2021 19:07
@krusche krusche added this to the 5.2.5 milestone Oct 22, 2021
@krusche krusche changed the title Development: Fix server-style Job in Github pipeline that fails due to known issue in spotless Development: Fix server style job that fails due to known issue in spotless Oct 22, 2021
@krusche krusche merged commit 5d36e82 into develop Oct 22, 2021
@krusche krusche deleted the bugfix/spottless-server-style branch October 22, 2021 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix ready for review server Pull requests that update Java code. (Added Automatically!)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google-java-format (and removeUnusedImports) broken on JDK 16+ (has workaround)
2 participants