Repository navigation
ci: check that docs/spec-coverage.md has a row for every ODA spec section and matches its data (#105) - #219
Merged
Merged
Conversation
…tion and matches its data (#105) tools/ci/spec_coverage.py reads docs/data/spec-coverage.tsv. It fails when any of the 135 sections the v5.4.1 table of contents requires (chapters 1 to 29, chapter 20 through §20.1 to §20.3 and §20.4.1 to §20.4.104) has no row, when a row has an unknown state, a malformed tracking cell or an open state with no tracking issue, and when the generated summary and table of docs/spec-coverage.md differ from the data. --write regenerates them. A new CI job, Spec coverage, runs --check. Checked by hand three ways: deleting the §20.4.76 row, writing state 'done', and editing the page each fail it; the untouched files pass.
DrunkOnJava
enabled auto-merge (squash)
October 26, 2026 08:46
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 26, 2026
Closed
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
tools/ci/spec_coverage.pyand a Spec coverage CI job sodocs/spec-coverage.mdkeeps one row for every section of ODA spec v5.4.1 and never drifts fromdocs/data/spec-coverage.tsv. Closes #105.Spec reference
The required sections are the v5.4.1 table of contents: chapters 1 to 29, chapter 20 through §20.1 to §20.3 and the 104 object prescriptions §20.4.1 to §20.4.104 (135 sections). The check fails when any of them has no row or more than one, when a row's state is not one of
complete,closes,decoder,partial,missing,n/a, when its tracking cell is not an issue reference, when an open state has no tracking issue, and when the summary and the section table between thespec-coveragemarkers differ from the data.--writeregenerates that part of the page.This is the commit from the stranded local branch
ci/spec-coverage-check(bbd50d7, written on 2026-10-21 against97d0e61), rebased onto currentmain. The only change from the original is the new job'sactions/checkoutpin, moved to the SHA every other job inci.ymluses.Test plan
maindata:The job is not added to the
main-protectionrequired checks here; the ruleset is changed through its own file and the API.Source-provenance declaration
By submitting this PR I certify that my contribution does not incorporate executable code from any source whose license is incompatible with Apache-2.0. Specifically:
CLEANROOM.md).My contribution is based on the section list of the ODA's freely-redistributable Open Design Specification for .dwg files (v5.4.1) table of contents. No third-party code or comments were read.
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.