Skip to content

Commit 8f12378

Browse files
reid-spencerclaude
andcommitted
Skip badEntity.riddl in EBNF validators as include fragment
CI's ebnf-grammar-validation job (TatSu validator) walks every `*.riddl` under `**/input/**` and tries to parse each one as a standalone RIDDL file. `badEntity.riddl` is a context-level fragment included by `badDomain.riddl` (and additionally intentionally malformed to exercise the missing-`}` regression in `TopLevelParserTest`), so it cannot be parsed standalone. Added to `INCLUDE_FRAGMENTS` in both `ebnf_tatsu_validator.py` and `ebnf_validator.py`, alongside the existing fragment skip entries. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 219c6ac commit 8f12378

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

language/jvm/src/test/python/ebnf_tatsu_validator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"588included.riddl", # Fragment included by 588.riddl
5252
"foo.riddl", # Fragment in issues/584/Foo/
5353
"context-types.riddl", # Context-level types for id-in-include test
54+
"badEntity.riddl", # Context-level fragment in riddl-bad/ (intentionally malformed; included by badDomain.riddl to exercise the missing-`}` error-reporter regression)
5455
}
5556

5657
# Files that are intentionally invalid for testing error handling.

language/jvm/src/test/python/ebnf_validator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"application.riddl", # Context fragment in full/ and includes/
4545
"context.riddl", # Context fragment in full/
4646
"context-types.riddl", # Context-level types for id-in-include test
47+
"badEntity.riddl", # Context-level fragment in riddl-bad/ (intentionally malformed; included by badDomain.riddl to exercise the missing-`}` error-reporter regression)
4748
}
4849

4950
# Files that are intentionally invalid for testing error handling

0 commit comments

Comments
 (0)