Skip to content

feat: report missing cross-module graph links - #1086

Draft
AlexanderLanin wants to merge 1 commit into
eclipse-score:mainfrom
etas-contrib:feat/1085-graph-link-compatibility
Draft

AlexanderLanin wants to merge 1 commit into
eclipse-score:mainfrom
etas-contrib:feat/1085-graph-link-compatibility

Conversation

@AlexanderLanin

Copy link
Copy Markdown
Member

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 a check_one rule 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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 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_links configuration and missing-graph-link finding 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

@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-1086: https://eclipse-score.github.io/docs-as-code/pr-1086/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Report missing graph-rule links as cross-module compatibility findings

2 participants