Repository navigation
Add lint action for PR title length - #2481
Conversation
ScottTodd
left a comment
There was a problem hiding this comment.
I imagine this will be annoying :D let's try it out though...
|
Hmm yeah, this will be annoying if it's blocking. Too much tooling can be a bad thing. |
I think none of our checks are blocking on GitHub [yet]. It will show up as a red error on the PR/commit though. |
The only thing that's blocking is the CLA check. |
* f4f2fec Update Bazel version in docs workflow (#2511) * 19e6574 Add lint action for PR title length (#2481) * 57a9ae3 Moved CompiledModule and BackendInfo to `tf_utils.py` (#2509) * 7d50357 Update Bazel to 3.3.1 (#2496) * afa7d8e [ModelBuilder] Fix leak when using llvm::createLowerMatrixIntrinsicsPass (#2499) * 90ffb71 [ci] Enable build tests for Android cross compilation (#2507) * 62490cb Add Bazel 3.3.1 to docker images (#2497) * 028a883 [ci] Run cmake --build twice to temporary fix the flaky build (#2501) * 8096658 Start creating $async functions as part of public ABI generation. (#2411) * 27a1f3d Removed gather lowering test (#2503) * 02cc1e3 Merge google -> main (#2505) * 6706f3d Add GitHub action to create PRs merging google -> main (#2482) * 645a88b Add buildifier lint action (#2243) * fc812fe Support iree-run-mlir to read input values from a file. (#2352) * 8078fc6 Use iree_py_binary in keras test binaries (#2488) * 9f22404 Treat warnings as errors and silence them in third party code (#2489) * cb000c7 Avoid unused result warning (#2469) * b06a482 Fix some minor typos (#2486) * ce6c171 Create cooperative matrix performance test (#2443) * 0880ee9 Add android build badge to README (#2473) * 8e14d1f [vulkan] Guard against 0-byte buffer allocation (#2467) * ef019df Improve TF submodule bump action descriptions (#2471) * c53ad00 Refactors tf_test_utils, creating tf_utils and simplifying module specificatio.. * a90df48 Merge google -> main (#2468) PiperOrigin-RevId: 321174064
|
Yeah, this is super annoying. Going to revert. |
Can you go into a bit more detail rather than just pushing a revert directly to So to have that discussion: The goal of this check is to encourage (in a non-blocking way) commit titles that follow established conventions (e.g. https://chris.beams.io/posts/git-commit/) which are also followed by our sister projects (https://mlir.llvm.org/getting_started/DeveloperGuide/#style-guide). Limited-length commit titles make it easier to scan history and a lot of tooling (ours and others') will automatically truncate messages and those longer than a certain cutoff will just get split: e.g. 3c8954c looks crap in the GitHub history, or in #2504, one of these things is not like the others. Like obviously this is not the most important thing in the world, but have you considered just trying to write shorter summaries? |
|
Github shows a giant red x in both the chrome tab and on the check status
when this fails. It's not blocking but it is noise, and it's noise that has
marginal value at best.
When I answer "google tooling gets in the way of me being productive" this
is precisely the kind of nitpicky over-tooling that I'm referring to. I'd
much rather have better searchable descriptions than stick to some 2010
tweet length word mangling. We should have ASAN, and a Windows bot, and
clang-tidy, etc. Not this.
(the time for discussion was on the PR, which you didn't respond to my
comment and just merged, so...)
…On Fri, Jul 17, 2020 at 9:06 AM Geoffrey Martin-Noble < ***@***.***> wrote:
Yeah, this is super annoying. Going to revert.
Can you go into a bit more detail rather than just pushing a revert
directly to main without a PR or review? Given that this is a
non-blocking check, I don't think there's really anything that would
warrant that level of urgency.
So to have that discussion:
The goal of this check is to encourage (in a non-blocking way) commit
titles that follow established conventions (e.g.
https://chris.beams.io/posts/git-commit/) which are also followed by our
sister projects (
https://mlir.llvm.org/getting_started/DeveloperGuide/#style-guide).
Limited-length commit titles make it easier to scan history and a lot of
tooling (ours and others') will automatically truncate messages and those
longer than a certain cutoff will just get split: e.g. 3c8954c
<3c8954c>
looks crap in the GitHub history, or in #2504
<#2504>, one of these things is not
like the others. Like obviously this is not the most important thing in the
world, but have you considered just trying to write shorter summaries?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2481 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAASMSMKRQGVVNELBZWRMY3R4BZHRANCNFSM4OW74Z5A>
.
|
Yeah I'm working on those too. Except for the Windows bot since I don't have a Windows computer to test on and doing that without local verification is hard. We have a goal for getting a windows bot, but no one who actually develops on Windows has volunteered to create it. You are welcome to. It's not like somehow adding this prevented adding an asan bot. I did it in a few minutes because I was bored on the weekend and tired of seeing shit in our history.
I literally did. You said it would be annoying if it's blocking. I said it's not blocking. And then I still waited to merge till the end of the day to see if you had more comments, but you didn't respond any further. Since the only concern you had expressed would be that this was blocking, I proceeded. |
|
Hmm I think you're projecting; I was referring to useful checks, not who would implement said checks. Regardless, as an example the amount of time spent writing these words between us and me dealing with this last night has exceeded any hypothetical time savings such a check would have ever had. That's the sign of something that is noise and a net neutral to negative to project health. |
This enforces some basic restrictions on PR titles as good commit titles.
Tested: https://github.com/google/iree/pull/2481/checks?check_run_id=859804845 gave a nice failure