Skip to content

Fix Python coverage reports for temporary imported modules - #36999

Merged
IceS2 merged 2 commits into
mainfrom
fix-python-coverage-temporary-modules
Nov 3, 2026
Merged

IceS2 merged 2 commits into
mainfrom
fix-python-coverage-temporary-modules

Conversation

@IceS2

@IceS2 IceS2 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage records temporary modules imported under metadata, but those files are absent in the separate reporting job. The coverage merge succeeds and report generation then fails with a missing-source error.

Restrict coverage reports to the existing source-tree and installed-package paths in ingestion/pyproject.toml. Collection and existing exclusions are preserved, and missing application sources still fail reporting.

Validated with the existing Nox/Make source-path and missing-data checks, local temporary-module reproductions, Python lint/format checks, and git diff --check; all passed. This PR changes only pyproject.toml.

Test-tooling fix; no linked issue. No application, schema, workflow, or UI changes.

@IceS2
IceS2 requested a review from a team as a code owner November 3, 2026 21:10
@IceS2 IceS2 added the skip-pr-checks Bypass PR metadata validation check label Nov 3, 2026
@IceS2
IceS2 requested review from mohittilala and a balanced review from Copilot November 3, 2026 21:10

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Nov 3, 2026
@gitar-bot

gitar-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Restricting coverage reports to package paths could omit legitimate measured files outside those paths and skew reported coverage.

Restricts Python coverage reports to existing source-tree and installed-package paths, so temporary test modules imported under metadata no longer cause missing-source failures during report generation. Application sources that are missing still fail, and existing collection and generated/sample exclusions are preserved. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

Copilot AI balanced review requested due to automatic review settings November 3, 2026 21:14

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@IceS2
IceS2 enabled auto-merge (squash) November 3, 2026 21:17
@IceS2
IceS2 merged commit f14eabc into main Nov 3, 2026
61 of 62 checks passed
@IceS2
IceS2 deleted the fix-python-coverage-temporary-modules branch November 3, 2026 21:32
@sonarqubecloud

sonarqubecloud Bot commented Nov 3, 2026

Copy link
Copy Markdown

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

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants