tools: report an ADR whose amends/supersedes target does not name it back in its Status

Open
#2,914 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
65/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp
Domain
tooling

Research direction

Start with the existing ADR conflict report at reports/research/adr-conflicts.md and read tools/internal/adrlinks, then inspect tools/cmd/adr-backptr. Add a fixture covering a mutually named pair and a missing back-pointer, and check that the report identifies the ADR, sentence, and missing reference. Run the check against the release tip and send its output and count to the owner of the row; keep it report-only and add mutants for changed behavior.

Written by the indexing model from the issue text.

Description

Evidence at 4cdc31fa2 (release/v6.20.0)

The second pass over the ADR conflict table (reports/research/adr-conflicts.md, "Second pass") found four rows with one shape: the newer ADR says it amends or supersedes an older one, and the older ADR's Status does not name the newer back (0023-e, 0023-f, 0038-a, 0051-b). Example: docs/adr/0051-*.md Status says it amends ADR 0038 decision 3 and ADR 0046 rule 1; the Status of ADR 0038 and ADR 0046 names ADR 0051 in neither.

Not shown

How many such misses the whole directory has. Whether a check on the Status paragraph alone finds all of them (the first tool run says).

Falsifier

A run of the check on the release tip that reports none of those four pairs.

Work

  1. Test first: a fixture directory with one pair that names each other back (passes) and one pair that does not (reported with the ADR number, the sentence and the missing back-pointer).
  2. tools/cmd/adr-backptr and tools/internal/adrlinks: read each ADR's Status paragraph, take the edges it states (amends, supersedes, replaces; amended by, superseded by, replaced by), report every edge whose other end does not name this ADR in its own Status.
  3. Report-only: not wired into just verify, a gate or a recipe. Its output and count on the release tip go to the owner of the row for the debt list.
  4. Mutants for each changed line of behaviour.
Dominant language
C++
Stars
3
Forks
5
Avg merge
4h 37m
Merged PRs (30d)
524

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.