commit-evidence reports OK for a Co-Authored-By trailer that git does not parse
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- git, github
- Domain
- tooling
Research direction
Start with the commit-evidence tests and implementation in tools/cmd/commit-evidence, then check whether tools/internal/evidence shares that path. Add the reported message cases: reject a Co-Authored-By line outside Git's final trailer paragraph and accept it when a blank line separates it. Run the relevant tests and update the landed-commit-evidence skill to say the trailer must sit alone in the last paragraph.
Written by the indexing model from the issue text.
Description
Evidence at 65630999e
build/go-tools/commit-evidence (tools/cmd/commit-evidence, run by just land and by the merge-handler's fold) reports commit-evidence: OK for a commit message whose Co-Authored-By trailer git does not parse as a trailer.
Reproduction at the release tip 65630999e: a message with all the evidence sections whose last two lines are
Refs #2894
Co-Authored-By: nevr-builder <[email protected]>
(no blank line between them, the Refs line has no colon). Results:
build/go-tools/commit-evidence -file <that message>printscommit-evidence: OKand exits 0.git interpret-trailers --parse < <that message>prints nothing: git reads the last paragraph as prose, so the commit has noCo-Authored-Bytrailer forgit log --format='%(trailers:key=Co-Authored-By,valueonly)'(the check AGENTS.md "Commit identity" tells the author to run after each commit).- The same message with a blank line before the trailer:
git interpret-trailers --parseprintsCo-Authored-By: nevr-builder <[email protected]>.
A builder hit this once (unit 1 of #2894): its first amend passed commit-evidence -rev HEAD with an unparsed trailer; the verify command of AGENTS.md printed an empty trailer column, which is how it was found.
Not shown
- Whether
commit-evidenceis meant to check trailer parsing at all (its messages today name a missing co-author line, tools/cmd/commit-evidence): the behaviour above is what the tool does, not necessarily what the skill landed-commit-evidence promises. - Whether the land check (
tools/internal/evidence) shares the code path.
Falsifier
commit-evidence -file on the message above exits non-zero with a line that names the unparsed trailer, or git interpret-trailers --parse on it prints the co-author line (then the message parses and there is no defect).
Work
- A test first: a message whose co-author line is not in git's trailer paragraph is refused (the case above), and the same message with a blank line before the trailer is accepted.
- The check reads the trailer the way git does (the last paragraph,
Key: valuelines only), not by a line match. - Say in the skill landed-commit-evidence that the trailer sits alone in the last paragraph.
- Dominant language
- C++
- Stars
- 3
- Forks
- 5
- Avg merge
- 4h 37m
- Merged PRs (30d)
- 524
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EchoTools/nevr-runtime
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
EchoTools/nevr-runtime#2910 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EchoTools/nevr-runtime#2909 ·
Maintainers usually reply within 1 day
-
build: the generated defaults header is written 0600, so a seat outside nevr-build cannot read itOpenbacklog
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EchoTools/nevr-runtime#2901 · 1 comment ·
Maintainers usually reply within 1 day
-
backlog
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EchoTools/nevr-runtime#2897 ·
Maintainers usually reply within 1 day
All issues in EchoTools/nevr-runtime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug-unconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
libc++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llvm/llvm-project#246508 ·
Maintainers usually reply within 1 day
-
good first issue help wanted phase:0 priority:P3 type:task
Difficulty 2/5 1-3 hours Newbie friendliness 67/100