Skip to content

Commit

Permalink
[uss_qualifier/reports] Show codebase version that generated artifacts (
Browse files Browse the repository at this point in the history
#528)

Show codebase version that generated artifacts
  • Loading branch information
BenjaminPelletier authored Mar 4, 2024
1 parent 83e1d05 commit fa52acc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions monitoring/uss_qualifier/reports/sequence_view/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from loguru import logger

from monitoring.monitorlib.errors import stacktrace_string
from monitoring.monitorlib.versioning import get_code_version
from monitoring.uss_qualifier.action_generators.action_generator import (
action_generator_type_from_name,
)
Expand Down Expand Up @@ -318,5 +319,6 @@ def generate_sequence_view(
UNATTRIBUTED_PARTICIPANT=UNATTRIBUTED_PARTICIPANT,
len=len,
Severity=Severity,
codebase_version=get_code_version(),
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ <h1>Sequence view of uss_qualifier test run</h1>
<td>{{ report.commit_hash }}</td>
</tr>
</table>
<div class="minor_note">Artifact generated by {{ codebase_version }}</div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,9 @@
.failed_check_summary {
font-style: italic;
}
.minor_note {
font-style: italic;
font-size: 10px;
}
</style>

Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
.has_todo {
background-color: rgb(255, 255, 192);
}
.minor_note {
font-style: italic;
font-size: 10px;
}
</style>
</head>
<body>
Expand Down Expand Up @@ -129,6 +133,7 @@ <h2>Test run</h2>
</td>
</tr>
</table>
<div class="minor_note">Artifact generated by {{ codebase_version }}</div>
</div>
<div>
<h2>Tested requirements</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from implicitdict import ImplicitDict, StringBasedDateTime

from monitoring.monitorlib.inspection import import_submodules
from monitoring.monitorlib.versioning import repo_url_of
from monitoring.monitorlib.versioning import repo_url_of, get_code_version
from monitoring.uss_qualifier import scenarios, suites, action_generators
from monitoring.uss_qualifier.action_generators.documentation.definitions import (
PotentialGeneratedAction,
Expand Down Expand Up @@ -308,6 +308,7 @@ def generate_tested_requirements(
overall_status=overall_status,
system_version=system_version,
ParticipantVerificationStatus=ParticipantVerificationStatus,
codebase_version=get_code_version(),
)
)

Expand Down

0 comments on commit fa52acc

Please sign in to comment.