eclipse-score / eclipse-score/docs-as-code
metrics.json file does not support feature integration tests in module repo
- 主要言語
- Python
- スター
- 10
- フォーク
- 32
- 平均マージ
- 23時間 52分
- マージ済み PR(30日)
- 52
説明
### What
# Problem
The [metrics.json file](https://eclipse-score.github.io/lifecycle/main/metrics.json) file from score_lifecycle does not display the linking between feature requirements and feature integration tests.
# Context
Within lifecycle feature team we have the following setup:
* score_lifecycle repo contains [feature integration tests](https://github.com/eclipse-score/lifecycle/blob/1871923fb94e91e4ab77ffc83f826f722bcffd26/tests/integration/switch_run_target/switch_run_target.py#L21), linking to feature requirements
* score repo contains the [feature requirements](https://github.com/eclipse-score/score/blob/main/docs/features/lifecycle/requirements/index.rst) for lifecycle
This repo setup is described also in the [process documentation ](https://eclipse-score.github.io/process_description/main/general_concepts/score_building_blocks_concept.html#deployment-example).
By default, the resulting [metrics.json file](https://eclipse-score.github.io/lifecycle/main/metrics.json) from the score_lifecycle repo does not contain any feature requirements linking, but only the linking to component requirements (which are defined in the same score_lifecycle repo).
When following [dashboards_and_quality_gates documentation](https://eclipse-score.github.io/docs-as-code/main/how-to/dashboards_and_quality_gates.html#choosing-local-vs-aggregated-views) and setting `score_metrics_include_external_needs = True` & `score_metrics_requirement_types = "feat_req,comp_req,aou_req"` the metrics.json file gets polluted with all feature requirements of all modules.
I am not aware of any other settings that would support the use case.
# Expectation
score_metrics supports the use case of feature requirements and feature integration tests within different repos.
It shall be possible to generate a metrics.json file from the module repo that contains *only* the feature requirements that are relevant for the module/feature.
### Acceptance Criteria (DoD)
* score_metrics supports cross repo linking for a single feature/module to support the use case feature requirements and feature integration tests in different repos
### How
_No response_
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、リンクされた lifecycle 統合テストと feature-requirements パスを再現コンテキストとして使用し、score_metrics_include_external_needs と score_metrics_requirement_types が生成される metrics.json ファイルにどのような影響を与えるかを確認します。現在の module-repo の出力を、要求されている cross-repository セットアップと比較します。完了の条件は、metrics.json にそのモジュールまたは feature に関連する feature requirements のみが含まれ、統合テストへのリンクが維持されていることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100