-
Notifications
You must be signed in to change notification settings - Fork 508
Pull #18820: Consolidate CI to fix error-prone rewrite and spotbugs execution #2825
#2847
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
base: main
Are you sure you want to change the base?
Conversation
| - name: assemble testClasses | ||
| run: ./gradlew assemble testClasses | ||
| - name: Spotbugs 🐞 | ||
| run: ./gradlew spotbugsMain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here seems to be no gate keeper, calling this goal:
.github/workflows/ci.yml
Outdated
| - name: Error Prone 🚧️ | ||
| run: ./gradlew assemble -DERROR_PRONE=true | ||
| - name: OpenRewrite ☑️ # 4m 55s | ||
| run: ./gradlew rewriteDryRun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might extract this job to CRON job to make it optional as requested.
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionSha256Sum=0d585f69da091fc5b2beced877feab55a3064d43b8a1d46aeb07996b0915e0e0 | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rewrite update.
| return spotless.getRegisterDependenciesTask().getTaskService().get().provisionerFor(spotless); | ||
| } | ||
|
|
||
| protected final com.diffplug.spotless.extra.P2Provisioner p2Provisioner() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prone stuff but rewrite could cover this as well of course.
|
|
||
| This makes it easier for the maintainers to quickly release your changes :) | ||
|
|
||
| ## Check and format code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems to be the critical point left behind last time. Communicating properly will help everybody to follow up as its done all over the other projects giving the convention and standard we also following.
This will make sure its better digested by the community.
|
prone example, should be simple to follow (c&p or allow patching later on) normally we have strong foundation no need to make invasive change. |
86f0156 to
de1215b
Compare
| * Spotless ✨ | ||
| * `./gradlew spotlessApply` | ||
| * Spotbugs 🐞 | ||
| * `./gradlew spotbugsMain` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b9059ab to
3544119
Compare
.github/workflows/ci.yml
Outdated
| - name: Error Prone 🚧️ | ||
| run: ./gradlew assemble -Derror-prone=true | ||
| - name: OpenRewrite ☑️ # 4m 55s | ||
| run: ./gradlew rewriteDryRun -DfailOnDryRunResults=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will let corrupt code pass which is kind of the same having it optional, so its not applied at the end result. This makes it easy to activate once the community has adapted.
its just the same like spotless the the mechanism is nothing new at all. Let some time pass to see how its possible to integrate and then activate.
it takes some time yes 5 mins. the rewrite guys have 2 jobs because there war a hard 15 mins limit so in comparison it seems fast and acceptable.
whole build takes 8 mins with test so its in the range.
CI fix error-prone rewrite and spotbugs execution #2825CI to fix error-prone rewrite and spotbugs execution #2825
3544119 to
f8d95f6
Compare
| } | ||
| // if there is \n on the end, remove it | ||
| if (!template.isEmpty() && ImportSorter.N.equals(template.get(template.size() - 1))) { | ||
| template.remove(template.size() - 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is clearly more complicated and therefore error-prone.
4379ec6 to
b973e5c
Compare
b973e5c to
7ae6c8a
Compare


No description provided.