Repository navigation
feat: report missing cross-module graph links - #1086
Draft
AlexanderLanin wants to merge 1 commit into
Draft
AlexanderLanin wants to merge 1 commit into
AlexanderLanin wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The reviewed changes include targeted unit, integration, and documentation coverage for the new compatibility findings and their strict-validation boundaries, with no active issues identified.
No open issues 🎉
What changed in this PR
Adds opt-in cross-module compatibility reporting for missing relations required by check_one metamodel graph rules. Mounted-module findings are included in HTML and JSON reports, while local findings, unresolved links, and predicate-failing targets remain validation errors.
Changes:
- Adds the
score_cross_module_compatibility_allow_missing_graph_linksconfiguration andmissing-graph-linkfinding category. - Records graph rule IDs and relations in compatibility reports.
- Adds unit, integration, and documentation coverage for the new behavior.
| File | Description |
|---|---|
| src/tests/docs_bzl/test_cross_module_compatibility.py | Adds end-to-end coverage for graph-link compatibility findings and report output. |
| src/extensions/score_metamodel/tests/test_graph_checks.py | Tests allowance behavior for mounted, local, unresolved, strict, and predicate-failing graph links. |
| src/extensions/score_metamodel/tests/__init__.py | Allows test loggers to receive compatibility findings. |
| src/extensions/score_metamodel/log.py | Adds structured logging for missing graph-link findings. |
| src/extensions/score_metamodel/checks/graph_checks.py | Classifies absent check_one relations on mounted needs as compatibility findings. |
| src/extensions/score_cross_module_compatibility/__init__.py | Adds configuration, finding metadata, and HTML/JSON serialization for graph links. |
| docs/how-to/cross_module_compatibility.rst | Documents configuration and report fields for graph-link findings. |
| docs/concepts/cross_module_compatibility.rst | Describes the scope and strict-validation behavior of the new allowance. |
Review effort: Lite
Contributor
|
Documentation preview for this pull request is available at: |
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.
Integrated documentation builds can fail when a mounted module omits a relation required by a newer metamodel graph rule. Consumers need a way to keep these findings visible while they coordinate supplier updates.
Add the opt-in boolean
score_cross_module_compatibility_allow_missing_graph_links. When enabled, an empty relation required by acheck_onerule on a mounted need becomes a compatibility finding. The HTML and JSON reports include the owning module, need ID, rule ID, and relation. Local findings, unresolved links, and linked targets that fail the graph predicate remain validation errors.Closes #1085.