docs: doc-paths fails on release/v6.20.0 (ADR 0050 names windows.h in backticks)

Open Beginner friendly
#2,819 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
82/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown, python

Research direction

The failing phrase is at line 379 of docs/adr/0050-combat-message-schema.md, where windows.h sits in backticks. Run python3 tools/verify_doc_paths.py first to confirm the failure, then read how the checker decides a backticked name is a tree path. Done when the script exits 0 on release/v6.20.0 and test_verify_doc_paths still passes. Either reword the sentence without backticks or add a checker rule with a test.

Written by the indexing model from the issue text.

Description

bug

tools/verify_doc_paths.py fails on the release line, so the doc-paths check and pytest:test_verify_doc_paths fail in every branch's quick check that plans them, and just land -test 'just test-changed' stops at exit 5 for any branch whose plan includes them.

Evidence at 3c5a07a85baffa30117bc7d805746fcdc98d2b6b (release/v6.20.0)

  • python3 tools/verify_doc_paths.py (run as the doc-paths id of just test-changed): doc-paths: FAIL docs/adr/0050-combat-message-schema.md names windows.h — no file with that basename exists.
  • docs/adr/0050-combat-message-schema.md:379 holds "with no runtime header that brings windows.h into the body's scope": the backticks make the checker read a system header's name as a path in the tree.
  • The same failure shows in the quick checks of #2814 and #2818 on this line (both name it pre-existing).

Not shown

  • Whether other docs name system headers in backticks the same way on main.

Falsifier

python3 tools/verify_doc_paths.py exits 0 at the commit above.

Work

  1. Reword the phrase so the checker does not read it as a tree path (the checker's own message: drop the backticks), keeping the sentence's meaning; or teach the checker that a name in angle-bracket header form is not a tree path, with a test.
  2. python3 tools/verify_doc_paths.py exits 0 on the release line.

Points: 1.

Dominant language
C++
Stars
3
Forks
5
Avg merge
4h 7m
Merged PRs (30d)
634

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EchoTools/nevr-runtime

All issues in EchoTools/nevr-runtime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.