Skip to content

Added support for TRACE32 parser and metrics#662

Open
IgorMiksza wants to merge 11 commits intojenkinsci:mainfrom
IgorMiksza:trace32-coverage
Open

Added support for TRACE32 parser and metrics#662
IgorMiksza wants to merge 11 commits intojenkinsci:mainfrom
IgorMiksza:trace32-coverage

Conversation

@IgorMiksza
Copy link
Copy Markdown

Hello, I've added support for TRACE32 parser and metrics that include Statement, Decision, Condition, Function, Object Code and Bytes coverages.

I've added our metrics to CoverageTrendChart, CoverageBuildAction, CoverageChecksPublisher, CoverageTableModel, CoverageViewModel and Messages.properties.

I've also added TRACE32 to README.md, pom.xml description, CoverageTool.java and Messages.properties.

An example of our reports can be found in the coverage-model pull request.

@github-actions github-actions bot requested a review from uhafner January 15, 2026 10:17
@uhafner uhafner added the feature New features label Jan 19, 2026
Comment thread plugin/pom.xml Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This needs to be the matching incrementals version of the coverage model:

Deployed version 0.66.0-rc1266.b_e6b_17a_f3c2c to Incrementals

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This needs to be the matching incrementals version of the coverage model:

Deployed version 0.66.0-rc1266.b_e6b_17a_f3c2c to Incrementals

Version bumped, thanks :)

@github-actions github-actions bot requested a review from uhafner January 20, 2026 10:26
@IgorMiksza IgorMiksza marked this pull request as draft February 26, 2026 14:07
@IgorMiksza IgorMiksza marked this pull request as ready for review March 3, 2026 18:40
Copy link
Copy Markdown
Member

@uhafner uhafner left a comment

Choose a reason for hiding this comment

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

Can we find a way to not change the views for existing users?

Comment on lines +652 to +655
Metric.MCDC_PAIR, Metric.FUNCTION_CALL,
// TRACE32 metrics
Metric.STMT_CC, Metric.STMT_DC, Metric.CONDITION, Metric.BYTES
));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you really want all new metrics to appear in the summary?

Comment on lines +543 to +546
Set.of(Metric.LINE, Metric.LOC, Metric.BRANCH, Metric.INSTRUCTION,
Metric.CYCLOMATIC_COMPLEXITY, Metric.MUTATION, Metric.TEST_STRENGTH,
Metric.TESTS, Metric.MCDC_PAIR, Metric.FUNCTION_CALL,
Metric.STMT_DC, Metric.STMT_CC, Metric.CONDITION, Metric.BYTES));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The same here: a summary is there to show the most important things only.

Comment on lines +120 to +121
configureValueColumn("instructionCoverage", Metric.INSTRUCTION, Messages.Column_InstructionCoverage(),
Messages.Column_DeltaInstructionCoverage("Δ"), columns);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This one in not helpful for most of the people

Comment on lines +84 to +86
Metric.LINE, Metric.BRANCH, Metric.INSTRUCTION, Metric.MUTATION, Metric.TEST_STRENGTH, Metric.CYCLOMATIC_COMPLEXITY,
Metric.TESTS, Metric.MCDC_PAIR, Metric.FUNCTION_CALL, Metric.COGNITIVE_COMPLEXITY, Metric.NCSS, Metric.NPATH_COMPLEXITY,
Metric.STMT_DC, Metric.STMT_CC, Metric.CONDITION, Metric.BYTES);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we need to make these things configurable. It makes no sense to show all of these for everyone.

No changes detected, that affect the code coverage.
* Line Coverage: 91.02% (294/323)
* Branch Coverage: 93.97% (109/116)
* Instruction Coverage: 93.33% (1260/1350)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This changes existing behavior and should be reverted, see comment above

Comment thread plugin/pom.xml

<!-- Library Dependencies Versions -->
<coverage-model.version>0.66.0</coverage-model.version>
<coverage-model.version>0.67.0-rc1288.7c1e4750a_8b_a_</coverage-model.version>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not needed anymore. The best thing is to merge with main (or rebase).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants