Report missing graph-rule links as cross-module compatibility findings
維護者通常 1 天內回覆
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- python
- 領域
- documentation, testing
研究方向
Start by tracing the graph checker’s missing-relation warning path and how the existing cross-module compatibility setting classifies mandatory-link findings. Then follow the HTML and JSON report generation paths and the tests for cross-module compatibility. Done means an opt-in reports absent relations from selected graph rules on mounted needs with the owning module, need ID, rule ID and relation, while local findings, default strict behavior, and links that fail graph predicates remain validation errors.
由索引模型根據 Issue 內容生成。
描述
Problem
The three cross-module compatibility settings cover missing mandatory attributes, missing mandatory links declared on a need type, and exact link-version mismatches. They do not cover missing links required by metamodel graph rules. Those findings remain fatal under Sphinx's warnings-as-errors even when the affected need belongs to a mounted module.
Reproduction
In S-CORE Reference Integration, build the combined HTML docs with docs-as-code 9.1.1, process_description 2.2.5, platform 0.7.5, baselibs 0.2.18 and logging 0.2.7. Use the upstream metamodel and set this in the consumer's docs/conf.py:
score_cross_module_compatibility_allow_missing_mandatory_links = True
Run bazel run --lockfile_mode=error //:docs_shim. Six missing included_by links from the mounted baselibs and logging bundles appear in the compatibility report as intended. Four graph findings still fail the build:
| Metamodel rule | Mounted needs | Missing relation |
|---|---|---|
tool_req__docs_allocation_safety_to_req |
comp__tracing (platform) |
satisfied_by_back to a safety requirement |
tool_req__docs_saf_attrs_mitigated_by |
comp_saf_fmea__result__error_code, feat_saf_dfa__baselibs__memory_access, feat_saf_dfa__baselibs__blocked_execution (baselibs) |
mitigated_by to a qualifying safety requirement |
These are conditional link requirements evaluated by the graph checker. Its missing-relation path emits a generic need warning, so the mandatory-link compatibility setting does not classify it as a reportable compatibility finding. The attribute and version settings address different conditions.
Requested behavior
Allow consumers to opt in to reporting missing relations from selected metamodel graph rules on mounted needs. Include the owning module, need ID, rule ID and relation in the HTML and JSON reports. Keep local findings and the default behavior strict. Scope this to an absent relation so an existing link whose target fails the graph predicate remains a validation error.
This would make temporary supplier-version skew visible in the integration report while retaining the published analysis statuses and upstream metamodel. Follow-up to #674.
- 主要語言
- Python
- 星號
- 11
- 分支
- 39
- 平均合併
- 1 天 13 小時
- 30 天內合併 PR
- 65
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
eclipse-score/docs-as-code 的其他 Issue
-
bug
難度 1/5 1 小時以內 新手友好度 82/100
eclipse-score/docs-as-code#1031 · 4 則留言 ·
維護者通常 1 天內回覆
-
waiting_for_author
難度 2/5 1-3 小時 新手友好度 78/100
eclipse-score/docs-as-code#1029 · 1 則留言 ·
維護者通常 1 天內回覆
-
intentionally-limited
難度 1/5 1 小時以內 新手友好度 88/100
eclipse-score/docs-as-code#1019 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
eclipse-score/docs-as-code#920 · 2 則留言 ·
維護者通常 1 天內回覆
-
Add project name to headline ...可能重新可做 關聯的 PR 已關閉且未合併。 未關閉documentation
難度 2/5 1-3 小時 新手友好度 68/100
eclipse-score/docs-as-code#613 · 1 則留言 ·
維護者通常 1 天內回覆
查看 eclipse-score/docs-as-code 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choice可能已有人在做 @beartester34 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
modelscope/evalscope#2330 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
Distribution plot crashes when a numeric feature is constant in the train or test set可能已有人在做 @adembilge 今天認領。 未關閉bug good first issue
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 10 天內回覆