-
Notifications
You must be signed in to change notification settings - Fork 4
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
PF-1924: Add an action to run spotlessApply #310
base: main
Are you sure you want to change the base?
Conversation
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.
for some reason it has broken before. Dex may be able to speak more about why but he recently had to manually do a spotlessapply and that PR has hundreds of files. |
I still have the questions I asked on Aug 24. @dexamundsen , how did you generate your formatting PR? I also have the same questions that I had for #1938. This GHA is highly unusual. Usually for a formatting PR:
The output of the normal process and the output of this action (the resulting PR) are the same. There are many kids of PRs where you do one thing, then you send out a PR for review. We don't create actions for all those things. I don't understand the benefit of this action. |
#301
I didn't look at the 186 files to stamp it. So this kind of PR that can be done automatically shouldn't require human action. i could accidentally get some exploration changes into this PR and no one would notice it (186 files!) Google has those bots that generate PR to clean up dead code, etc. This is not a frequent thing. If spotlessCheck passes, nothing will be done. |
Apologies for the delayed response - on PR #301 -> I set the TDE to use google formatting and applied formatting manually (right click, format). Since the gradle build (both local and as part of PR) did not change any further files, did not second guess the IDE applied formatting |
Ah, that's not the usual way we do formatting. As I said on Aug 24, we run spotlessApply/spotlessCheck on all code before merging. We don't need an action to run spotlessApply. It would do nothing, since spotlessApply was already run on the code. FYI - google-java-format produces slightly different results from spotlessApply. If you want Intellij to run spotlessApply instead of google-java-format, here's how. |
No description provided.