Skip to content

Commit 4864129

Browse files
feat: new attribute doc_tool.tool_version
1 parent 745814a commit 4864129

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

docs/internals/requirements/requirements.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,12 +919,12 @@ Testing
919919
:id: tool_req__docs_tvr_version
920920
:tags: Tool Verification Reports
921921
:implemented: YES
922-
:version: 1
922+
:version: 2
923923
:satisfies: gd_req__tool_attr_version
924924
:parent_covered: YES
925925

926926
Docs-as-Code shall enforce that every Tool Verification Report (`doc_tool`) includes a
927-
`version` attribute.
927+
`tool_version` attribute.
928928

929929
.. tool_req:: Enforce confidence level classification
930930
:id: tool_req__docs_tvr_confidence_level

src/extensions/score_metamodel/metamodel.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ needs_types:
227227
mandatory_options:
228228
# req-Id: tool_req__docs_tvr_status
229229
status: ^(draft|evaluated|qualified|released|rejected)$
230-
# req-Id: tool_req__docs_tvr_version
231-
version: ^.*$
232230
# req-Id: tool_req__docs_tvr_safety
233231
safety_affected: "^(YES|NO)$"
234232
# req-Id: tool_req__docs_tvr_security
@@ -240,6 +238,9 @@ needs_types:
240238
author: ^.*$
241239
approver: ^.*$
242240
reviewer: ^.*$
241+
# FIXME: temp optional for migration. Will be made mandatory in future releases.
242+
# req-Id: tool_req__docs_tvr_version
243+
tool_version: ^.*$
243244
optional_links:
244245
realizes: workproduct
245246
parts: 2

src/extensions/score_metamodel/yaml_parser.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ def _parse_need_type(
123123
errors: list[str] = []
124124
for a_name, a, b_name, b in overlap_checks:
125125
if overlap := set(a.keys()) & set(b.keys()):
126-
# FIXME: remove once "version" is clarified with process team
127-
if overlap == {"version"}:
128-
continue
129-
130126
errors.append(
131127
f"Directive '{directive_name}': {a_name} and {b_name} overlap: {overlap}."
132128
)

0 commit comments

Comments
 (0)