eclipse-score / eclipse-score/docs-as-code

metrics.json file does not support feature integration tests in module repo

未关闭
#752 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
10
派生
32
平均合并
23 小时 52 分钟
30 天内合并 PR
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_

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reviewing how score_metrics_include_external_needs and score_metrics_requirement_types affect the generated metrics.json file, using the linked lifecycle integration test and feature-requirements paths as the reproduction context. Compare the current module-repo output with the requested cross-repository setup; done means metrics.json contains only the feature requirements relevant to that module or feature while preserving the integration-test links.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
活跃
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。