Skip to content

Always print statistics #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Always print statistics #134

wants to merge 1 commit into from

Conversation

phiwuu
Copy link
Member

@phiwuu phiwuu commented Mar 10, 2025

The statistics numbers are always printed,
regardless of the command line argument --brief.

That is, the tool always prints a message like this at the end:
Processed 1 model and 1 requirement file and found no issues

When admins integrate TRLC as a voting job into their CI they want
to get feedback if the tool finished without sudden termination
(possibly caused by the CI system).

@phiwuu phiwuu requested a review from a team as a code owner March 10, 2025 16:27
@phiwuu phiwuu self-assigned this Mar 10, 2025
@phiwuu phiwuu added the topic: core Affects lexer/parser/infrastructure label Mar 10, 2025
@phiwuu phiwuu force-pushed the feature/always-summary branch 2 times, most recently from fbc0794 to 5397a01 Compare March 10, 2025 16:31
@phiwuu phiwuu changed the title Always print summary Always print statistics Mar 10, 2025
@phiwuu phiwuu force-pushed the feature/always-summary branch 3 times, most recently from e8d0087 to fd4b0fe Compare March 12, 2025 10:56
@phiwuu phiwuu enabled auto-merge (squash) March 12, 2025 11:06
The statistics numbers are always printed,
regardless of the command line argument `--brief`.

That is, the tool always prints a message like this at the end:
`Processed 1 model and 1 requirement file and found no issues`

When admins integrate TRLC as a voting job into their CI they want
to get feedback if the tool finished without sudden termination
(possibly caused by the CI system).
@phiwuu phiwuu force-pushed the feature/always-summary branch from fd4b0fe to 53e9d70 Compare July 12, 2025 08:50
if mh.suppressed: # pragma: no cover
summary += " with %u supressed messages" % mh.suppressed

print(summary)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this print statement be removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: core Affects lexer/parser/infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants