Skip to content

Conversation

mzabaluev
Copy link
Contributor

The QA method document in the cometbft repository currently refers to numbered ranges of steps in this README as setup and run sequences that the tester needs to perform at different stages.
When the list of steps changes as it did in #35, updating these hardcoded references is tedious and error-prone (case in point, I failed to update quite a few places).

The solution is to do to these human-consumed texts what programmers do to machine code and introduce subroutines!
The step sequences are split under headers that can be "invoked" by name and anchored in the HTML rendering.

The QA method document in the cometbft repository currently refers to
numbered ranges of steps in this README as setup and run sequences
that the tester needs to perform at different stages.
When the list of steps changes as it did in #35, updating these
hardcoded references is tedious and error-prone (case in point,
I failed to update quite a few places).

The solution is to do to these human-consumed texts what programmers do
to machine code and introduce subroutines!
The step sequences are split under headers that can be "invoked" by name
and anchored in the HTML rendering.
Copy link
Contributor

@lasarojc lasarojc left a comment

Choose a reason for hiding this comment

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

Indeed, it was getting too confusing. Thanks for the rearranging.

@mzabaluev mzabaluev merged commit d3c8675 into main Feb 9, 2024
@mzabaluev mzabaluev deleted the mikhail/readme-symbolic-routine-headers branch February 9, 2024 14:01
github-merge-queue bot pushed a commit to cometbft/cometbft that referenced this pull request Feb 9, 2024
Instead of hardcoded step numbers from qa-infra which are prone to
falling out of date (as is the case now), refer to section anchors with
the step "routines" in the reorganized README.

Requires cometbft/qa-infra#38
mergify bot pushed a commit to cometbft/cometbft that referenced this pull request Feb 9, 2024
Instead of hardcoded step numbers from qa-infra which are prone to
falling out of date (as is the case now), refer to section anchors with
the step "routines" in the reorganized README.

Requires cometbft/qa-infra#38

(cherry picked from commit 830c650)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants