Skip to content

ci: publish only freshly generated coverage reports - #1144

Closed
ChengShi-1 wants to merge 1 commit into
developfrom
ci/fix-coveralls-baseline
Closed

ChengShi-1 wants to merge 1 commit into
developfrom
ci/fix-coveralls-baseline

Conversation

@ChengShi-1

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Failed component runs could upload the tracked merged-coverage/lcov.info even when coverage generation and merging were skipped. Successful runs also merged that stale output back into the new report through the recursive input glob. This produced an invalid baseline for coverage comparisons.

Delete and ignore the generated report, require both current input reports, merge only frontend and design-system coverage with repository-relative paths, and upload only after the preceding steps succeed.

Which issue(s) this PR closes:

Related to #1143. This isolates its coverage-reporting fix so develop can generate a fresh baseline before the Ubuntu compatibility PR is reassessed.

Special notes for your reviewer:

Develop's 98.063% baseline is from https://coveralls.io/builds/82542285. Its component job failed and skipped coverage checking and merging, but still uploaded the tracked report: https://github.com/IQSS/dataverse-frontend/actions/runs/39844215561/job/120053070802.

The corrected report on #1143 is 97.289% across 8,423 lines and 4,522 branches. Its component, e2e, lint, and accessibility jobs passed. Coveralls still compares against the old baseline; this PR cannot repair previously stored reports until develop publishes fresh coverage. The Ubuntu compatibility changes remain in #1143, so this isolated branch may still encounter those existing CI failures.

Suggestions on how to test this:

Focused merge validation passed: stale and unrelated reports excluded, design-system paths mapped correctly, repeated merges produce identical counts, and missing inputs fail. Typecheck, formatting, and lint passed locally (one existing ESLint warning). The same patch passed both component runs on #1143.

After merging, verify a successful develop component run uploads a fresh report, then rerun #1143.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No.

Is there a release notes or changelog update needed for this change?:

No; CI reporting only.

Additional documentation:

None.

@ChengShi-1 ChengShi-1 closed this Nov 4, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 97.366% (-0.7%) from 98.063% — ci/fix-coveralls-baseline into develop

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