Skip to content

Fixes #33154: correct Airflow Sonar coverage report paths - #33155

Merged
harshach merged 1 commit into
mainfrom
harshach/fix-airflow-sonar-coverage-paths
Sep 10, 2026
Merged

harshach merged 1 commit into
mainfrom
harshach/fix-airflow-sonar-coverage-paths

Conversation

@harshach

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #33154

SonarCloud discarded coverage for 47 Airflow API files despite all 41 tests passing because the workflow rewrote filenames to an obsolete /github/workspace container path.
Keep filenames relative to the scanner's openmetadata-airflow-apis/ base directory.
This extracts the existing correction from #33088 so it can merge first: pull_request_target uses the workflow from main, preventing #33088 from using its own workflow fix during PR validation.

Type of change:

  • Bug fix

High-level design:

Not applicable — one workflow command and its explanatory comment

Tests:

Use cases covered

  • All 47 source paths listed in the failed CI coverage report: 47 unresolved before the rewrite correction, zero afterward

Unit tests

Not applicable — no application logic or changed-class coverage

Backend integration tests

Not applicable — no backend changes

Ingestion integration tests

  • Existing CI evidence: 41 passing Airflow API tests on Python 3.10 / Airflow 3.3.1
  • No test execution changes

Playwright (UI) tests

Not applicable — no UI changes

Manual testing performed

  • Replayed the exact old and corrected sed expressions against a path fixture built from all 47 filenames in the CI log; verified every corrected filename exists under the scanner base directory
  • actionlint .github/workflows/airflow-apis-tests.yml: passed
  • git diff --check and commit hooks: passed

UI screen recording / screenshots:

Not applicable — no UI changes

Checklist:

  • CONTRIBUTING reviewed
  • Linked issue and required PR title format
  • Root cause documented in the workflow comment and linked issue
  • Before/after path validation completed
  • Schema regeneration, migrations, endpoint tests, and UI recording: not applicable

@harshach
harshach requested review from a team, akash-jain-10 and tutte as code owners September 10, 2026 15:04
@gitar-bot

gitar-bot Bot commented Sep 10, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Fixes Airflow Sonar coverage report paths by keeping filenames relative to the scanner's openmetadata-airflow-apis/ base directory instead of rewriting them to an obsolete /github/workspace container path. This resolves the issue where SonarCloud discarded coverage for 47 Airflow API files despite all 41 tests passing. No issues found.

Options

Display: compact → Counting what did not apply, without listing it.

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

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Sep 10, 2026
@harshach harshach added the skip-pr-checks Bypass PR metadata validation check label Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 7a2200d110043ee8756deddc3c3bb196470965d2 in Playwright run 34493269617, attempt 1.

✅ 556 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 1h 2m 49s

⏱️ Max setup 5m 24s · max shard execution 19m 20s · max shard-job elapsed before upload 23m 12s · reporting 5s

🌐 236.74 requests/attempt · 2.82 app boots/UI scenario · 26.21% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 26.21% (convergence target: at most 15%).
  • Browser traffic was 236.74 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.82 per UI scenario (1633 boots / 579 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 133 0 0 0 0 0
🟡 Shard chromium-02 139 0 1 0 0 0
✅ Shard chromium-03 126 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 1 flaky test(s) (passed on retry)
  • Pages/Entity.spec.ts › Team as Owner Add, Update and Remove (shard chromium-02, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@harshach
harshach merged commit 66e28bc into main Sep 10, 2026
182 of 184 checks passed
@harshach
harshach deleted the harshach/fix-airflow-sonar-coverage-paths branch September 10, 2026 21:25
harshach added a commit that referenced this pull request Sep 10, 2026
Exercise incident-filter searches through the real search API and validate
URL encoding at the HTTP boundary. Use local calendar dates in chart test
fixtures so their assertions hold in both UTC and developer timezones.

Run the visual suite in OSS mode, reuse validated preseeded fixtures, and
remove its owned fixed-name glossary before setup. Refresh the Teams
baseline for main's TableV2 migration without changing screenshot tolerances.

This merge includes the Airflow Sonar coverage workflow fix from #33155.

This branch was previously deployed

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

Labels

backend 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.

Airflow SonarCloud discards coverage after rewriting report paths

2 participants