Skip to content

fixed coverage report inclusion #505

Merged
castler merged 1 commit into
eclipse-score:mainfrom
AAmbuj:amsh_fix_coverage_instrumentation
Jun 10, 2026
Merged

fixed coverage report inclusion #505
castler merged 1 commit into
eclipse-score:mainfrom
AAmbuj:amsh_fix_coverage_instrumentation

Conversation

@AAmbuj

@AAmbuj AAmbuj commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

-More stable coverage in CI
-Reduced false uncovered lines from non-executable content
-Clearer branch coverage signal
-Better alignment with the reference coverage

@AAmbuj AAmbuj force-pushed the amsh_fix_coverage_instrumentation branch 6 times, most recently from 406cb1a to 2c3b3a3 Compare June 9, 2026 11:12
- name: Run Unit Test with Coverage for C++
id: run-coverage
run: |
bazel coverage //... --build_tests_only

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We do not want to filter by unit tests only.

Comment thread quality/unit_testing/unit_testing.bzl Outdated
size = "small",
timeout = "short",
tags = tags + ["manual"],
tags = tags + ["unit"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This change (the whole commit) has the side effect, that we will only execute _linux and _qnx, which is not waht we want. Thus we should drop that commit. I merged for this problem already a solution.

Comment thread score/message_passing/BUILD Outdated
":unix_domain_test",
"@score_communication//score/message_passing/log:log_test",
"@score_communication//score/message_passing/non_allocating_future:non_allocating_future_test",
":client_connection_test_linux",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since we drop previus commit we can drop this also.

Comment thread quality/coverage.bazelrc Outdated

# With this instrumentation filter for our two main components, we ensure that `bazel coverage //...` is yielding the correct results
coverage --instrumentation_filter="^//score/message_passing[/:],^//score/mw/com[/:],-//score/mw/com/performance_benchmarks[/:],-//score/mw/.*/test[/:]".
coverage --instrument_test_targets

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we want to instrument the test targets? If we don't do that, you do not have to filter it later.

Comment thread quality/coverage.bazelrc Outdated
# With this instrumentation filter for our two main components, we ensure that `bazel coverage //...` is yielding the correct results
coverage --instrumentation_filter="^//score/message_passing[/:],^//score/mw/com[/:],-//score/mw/com/performance_benchmarks[/:],-//score/mw/.*/test[/:]".
coverage --instrument_test_targets
coverage --nobuild_tests_only

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We want to build everything,

--ignore-errors category,inconsistent
--filter line,branch,range,region,branch_region \
--rc no_exception_branch=1 \
--ignore-errors category,inconsistent,mismatch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see no reason to change that?

--branch-coverage \
--ignore-errors category,inconsistent
--filter line,branch,range,region,branch_region \
--rc no_exception_branch=1 \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is fine,

--function-coverage \
--branch-coverage \
--ignore-errors category,inconsistent
--filter line,branch,range,region,branch_region \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we need this?

Comment thread .github/workflows/coverage_report.yml Outdated
id: run-coverage
run: |
bazel coverage //... --build_tests_only
bazel coverage //... --test_tag_filters=unit

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We do not want to change this.

Comment thread quality/quality.md Outdated

```bash
bazel coverage //...
bazel coverage //... --test_tag_filters=unit

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no filtering here please.

@AAmbuj AAmbuj force-pushed the amsh_fix_coverage_instrumentation branch from 2c3b3a3 to 71e621e Compare June 10, 2026 11:06
@castler castler enabled auto-merge June 10, 2026 11:15
@castler castler added this pull request to the merge queue Jun 10, 2026
Merged via the queue into eclipse-score:main with commit 83678b8 Jun 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants