Skip to content

feat: add E2E coverage flags for overlay cross-repo uploads#2997

Open
gustavolira wants to merge 2 commits intoredhat-developer:mainfrom
gustavolira:feat/e2e-codecov-flags
Open

feat: add E2E coverage flags for overlay cross-repo uploads#2997
gustavolira wants to merge 2 commits intoredhat-developer:mainfrom
gustavolira:feat/e2e-codecov-flags

Conversation

@gustavolira
Copy link
Copy Markdown
Member

Summary

  • Adds 6 e2e-* flags to codecov.yml for workspaces that have E2E tests in rhdh-plugin-export-overlays
  • These flags receive cross-repo Istanbul coverage uploads from instrumented dynamic plugin builds running on real RHDH/Kubernetes deployments
  • Flags: e2e-adoption-insights, e2e-global-header, e2e-homepage, e2e-quickstart, e2e-scorecard, e2e-theme

How it works

The overlay repo builds Istanbul-instrumented dynamic plugins (post-webpack nyc instrument), deploys them on a real RHDH instance, runs Playwright E2E tests, collects window.__coverage__, and uploads the resulting lcov to this repo's Codecov using:

codecov upload-process \
  --slug redhat-developer/rhdh-plugins \
  --sha <repo-ref from source.json> \
  --flag e2e-<workspace>

The coverage is attributed to the correct commit in this repo, and the e2e-* flags allow filtering E2E vs unit coverage on the Codecov dashboard.

Flags inherit carryforward: true and status rules from default_rules.

Related

Test plan

  • Verify codecov.yml syntax is valid (Codecov validates on next upload)
  • Verify new flags appear on Codecov Flags page after first E2E upload

🤖 Generated with Claude Code

Add 6 e2e-* flags to codecov.yml for workspaces that have E2E tests
in rhdh-plugin-export-overlays. These flags receive Istanbul coverage
from instrumented dynamic plugin builds running on real RHDH/K8s
deployments.

Flags: e2e-adoption-insights, e2e-global-header, e2e-homepage,
e2e-quickstart, e2e-scorecard, e2e-theme

They inherit carryforward and status rules from default_rules.
Coverage is uploaded with --slug and --sha from source.json,
attributing it to the correct commit in this repo.

Ref: RHIDP-13411

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move e2e-* flags to their correct alphabetical position in
individual_flags (between dcm and extensions) instead of appending
at the end, maintaining consistent ordering. Condense the 3-line
comment block to a single line with Jira reference.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gustavolira gustavolira requested a review from a team as a code owner May 5, 2026 17:09
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

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