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

Ouverte
#1,085 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@AlexanderLanin y travaille déjà.

Depuis le 19/11/2026.

  • #1086 par @AlexanderLanin — ouverte

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
45/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
python

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
11
Forks
39
Merge moyen
1 j 13 h
PR mergées (30 j)
65

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

  • Aucun Dockerfile ni fichier Docker Compose
  • Propose un modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de eclipse-score/docs-as-code

Toutes les issues de eclipse-score/docs-as-code

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.