diff --git a/MODULE.bazel b/MODULE.bazel index 48591e823..9ae9c2fce 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -70,12 +70,7 @@ http_file( urls = ["https://github.com/withered-magic/starpls/releases/download/v0.1.21/starpls-linux-amd64"], ) -bazel_dep(name = "score_process", version = "2.0.1") -git_override( - module_name = "score_process", - commit = "292ec1c913a88ed1b724e33fdae658df6dc7b033", - remote = "https://github.com/eclipse-score/process_description", -) +bazel_dep(name = "score_process", version = "2.0.2") # Provide the tools from the devcontainer to Bazel bazel_dep(name = "score_devcontainer", version = "1.9.0") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 49edff1ea..32e7d5ab8 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -299,6 +299,8 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_shell/0.4.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_devcontainer/1.9.0/MODULE.bazel": "2a04a354eb7a77d478bb43ba20b1dac0758af858172a760e4290621bef1a2f28", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_devcontainer/1.9.0/source.json": "6f72c780f1fb167be7cbc01801b86534a9e7102003168dcdf2c8886cfb1bb209", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_process/2.0.2/MODULE.bazel": "6d2b227bb6880e9f6871cc8cf94c83399e35c188424f7e9b826262de8149ed43", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_process/2.0.2/source.json": "5ae55f0dabcddeb5bfae16ce480e2c065f907d2b0ed6a8e4ed7409b259b004ee", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/sphinxdocs/2.2.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/stardoc/0.5.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/stardoc/0.5.3/MODULE.bazel": "not found", diff --git a/docs/internals/requirements/requirements.rst b/docs/internals/requirements/requirements.rst index a49df7bf4..6b3d56029 100644 --- a/docs/internals/requirements/requirements.rst +++ b/docs/internals/requirements/requirements.rst @@ -274,18 +274,34 @@ Versioning -.. tool_req:: Suspicious: Enforce attribute - :id: tool_req__docs_common_attr_suspicious - :tags: Common Attributes - :implemented: YES +.. tool_req:: Test coverage: Detect outdated test linkage + :id: tool_req__docs_req_testlink_outdated_check + :tags: Common Attributes, Testing + :implemented: NO :version: 1 - :parent_covered: NO: parent talks about setting covered to false, but we want to issue a build error. - :satisfies: gd_req__req_suspicious[version==2] + :parent_covered: YES: Together tool_req__docs_req_attr_testcov_update + :satisfies: gd_req__req_suspicious[version==3] :status: invalid - Docs-as-Code shall check if linked parent needs have different versions, compared to - the version the need was originally linked to. + Docs-as-Code shall check, for each requirement of type :need:`tool_req__docs_req_types` + that has one or more linked test needs via the ``testlink`` attribute, whether the + requirement's version has changed since the version that was originally linked by + each test. + + +.. tool_req:: Test coverage: Set attribute on outdated test linkage + :id: tool_req__docs_req_attr_testcov_update + :tags: Common Attributes, Testing + :implemented: NO + :version: 1 + :parent_covered: YES: Together with tool_req__docs_req_testlink_outdated_check + :satisfies: gd_req__req_suspicious[version==3] + :status: invalid + Docs-as-Code shall set the ``testcovered`` attribute (see + :need:`tool_req__docs_req_attr_testcov`) of a requirement to ``No`` whenever + :need:`tool_req__docs_req_testlink_outdated_check` detects that a linked test is + outdated with respect to the requirement's version. diff --git a/src/extensions/score_source_code_linker/__init__.py b/src/extensions/score_source_code_linker/__init__.py index ef1acfd90..1de0088a9 100644 --- a/src/extensions/score_source_code_linker/__init__.py +++ b/src/extensions/score_source_code_linker/__init__.py @@ -394,7 +394,6 @@ def find_need(all_needs: NeedsMutable, id: str) -> NeedItem | None: need = all_needs.get(base_id) # Check version compatibility if version was specified - # req-Id: tool_req__docs_common_attr_suspicious if need is not None and test_version is not None: need_version = need.get("version") if need_version is not None and int(need_version) > test_version: