Hello Daniel Vanko, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
https://gerrit.cloudera.org/25623
to look at the new patch set (#3).
Change subject: IMPALA-15895: Make AGENTS.md style rules checkable
......................................................................
IMPALA-15895: Make AGENTS.md style rules checkable
Agents tend to estimate line length rather than measure it, and so
produce lines just over the 90-character limit. AGENTS.md also did not
say how wide commit messages should be, while most Impala commits wrap
at 72 characters.
This adds a --working-tree option to critique-gerrit-review.py. It
checks the uncommitted changes, staged or not, instead of the HEAD
commit, so that problems can be fixed before committing rather than by
amending. It requires --dryrun. The planner test check overwrites
testdata/, so it is skipped if testdata/ has uncommitted changes.
This also updates the Coding Standards in AGENTS.md:
- Recommend running critique-gerrit-review.py --dryrun --working-tree
before committing.
- Allow exceeding the 90-character limit for a good reason, e.g. a
long URL that would break if split.
- Remove the rules on trailing whitespace and blank lines, and the
pointer to the checker's exclusion lists, as the checker handles
these by itself.
- Add the Python conventions from the Impala Style Guide wiki page,
which agents do not read.
- Wrap commit messages at 72 characters.
Testing:
- Without --working-tree, the old and new script give identical output
on 7 commits that change .cc, .h, .java, .py, .thrift and .js files.
- With --working-tree, the script reports a long line, trailing
whitespace, a tab, unused Python and Java imports, a removed required
Thrift field, and a long line in a new file added with git add -N.
- With an uncommitted change in testdata/, the planner test check is
skipped and the change is kept.
Change-Id: I10b55ebd119bf89e1dbd14ff7d5e1b1402afd0c5
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M AGENTS.md
M bin/jenkins/critique-gerrit-review.py
2 files changed, 63 insertions(+), 24 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/23/25623/3
--
To view, visit https://gerrit.cloudera.org/25623
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I10b55ebd119bf89e1dbd14ff7d5e1b1402afd0c5
Gerrit-Change-Number: 25623
Gerrit-PatchSet: 3
Gerrit-Owner: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Daniel Vanko <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>