Skip to content

Add lint action for PR title length - #2481

Merged
GMNGeoffrey merged 7 commits into
iree-org:mainfrom
GMNGeoffrey:pr-lint
Jul 14, 2020
Merged

GMNGeoffrey merged 7 commits into
iree-org:mainfrom
GMNGeoffrey:pr-lint

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented Jul 10, 2020 •

Copy link
Copy Markdown
Member

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

@GMNGeoffrey GMNGeoffrey changed the title Add lint action for PR title length Add lint action for PR title length - really really really long message to test failure for the lint action this is way too long Jul 10, 2020
@GMNGeoffrey
GMNGeoffrey requested a review from ScottTodd July 10, 2020 23:11
@GMNGeoffrey GMNGeoffrey changed the title Add lint action for PR title length - really really really long message to test failure for the lint action this is way too long Add lint action for PR title length Jul 10, 2020

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I imagine this will be annoying :D let's try it out though...

@benvanik

Copy link
Copy Markdown
Collaborator

Hmm yeah, this will be annoying if it's blocking. Too much tooling can be a bad thing.

@ScottTodd

Copy link
Copy Markdown
Member

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.

@GMNGeoffrey

Copy link
Copy Markdown
Member Author

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.

@GMNGeoffrey
GMNGeoffrey merged commit 19e6574 into iree-org:main Jul 14, 2020
@GMNGeoffrey
GMNGeoffrey deleted the pr-lint branch July 14, 2020 00:50
@ScottTodd ScottTodd mentioned this pull request Jul 14, 2020
copybara-service Bot pushed a commit that referenced this pull request Jul 14, 2020
* 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
@copybara-service copybara-service Bot mentioned this pull request Jul 14, 2020
@benvanik

Copy link
Copy Markdown
Collaborator

Yeah, this is super annoying. Going to revert.

benvanik added a commit that referenced this pull request Jul 17, 2020
@GMNGeoffrey

Copy link
Copy Markdown
Member Author

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 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?

@benvanik

benvanik commented Jul 17, 2020 via email

Copy link
Copy Markdown
Collaborator

@GMNGeoffrey

Copy link
Copy Markdown
Member Author

We should have ASAN, and a Windows bot, and clang-tidy, etc. Not this.

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.

(the time for discussion was on the PR, which you didn't respond to my comment and just merged, so...)

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.

@benvanik

Copy link
Copy Markdown
Collaborator

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.

@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants