Skip to content

ci: fix py-combine-coverage on unit-only PR runs - #34835

Merged
pmbrull merged 1 commit into
mainfrom
ulixius9/openmetadata-job-failure-check
Oct 7, 2026
Merged

pmbrull merged 1 commit into
mainfrom
ulixius9/openmetadata-job-failure-check

Conversation

@ulixius9

@ulixius9 ulixius9 commented Oct 7, 2026

Copy link
Copy Markdown
Member

Describe your changes:

Follow-up to #34740. Python integration tests no longer run on PRs, so py-combine-coverage now downloads only one artifact (coverage-unit). The pinned actions/download-artifact (v7) has a special case for a single matched artifact: it extracts the files straight into path instead of path/<artifact-name>/. You can see this in the log: Starting download of artifact to: .../ingestion/coverage-data.

The "Prepare coverage files" step only looked in coverage-data/coverage-unit/.coverage, so on these runs it found nothing and coverage combine exited with No data to combine. Failing example: https://github.com/open-metadata/OpenMetadata/actions/runs/37597613451/job/112739564448 (PR #34785). Because the job is continue-on-error, py-tests still reports success, but the Sonar coverage upload is skipped.

The fix makes the step check both locations, so it handles unit-only PR runs as well as merge-queue runs, where all shards are downloaded into their own subdirectories.

Testing

  • Ran the new snippet under the job's shell (bash -e -o pipefail, nullglob) against both layouts. Both produce .coverage.unit, and neither aborts on the missing-file branch.
  • Downloaded the real coverage-unit artifact from the failing run and ran coverage combine (7.16.2) on it: Combined 1 file.

Type of change:

  • Bug fix

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.

Since #34740 skips Python integration tests on PRs, py-combine-coverage
downloads only coverage-unit. download-artifact extracts a single matched
artifact directly into the target path rather than a per-artifact
subdirectory, so the prepare step never found the .coverage file and
coverage combine failed with "No data to combine".
@ulixius9
ulixius9 requested review from a team, akash-jain-10, harshach and tutte as code owners October 7, 2026 10:23
Copilot AI balanced review requested due to automatic review settings October 7, 2026 10:23

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 reached their quota limit.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

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

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 Ingestion safe to test Add this label to run secure Github workflows on PRs labels Oct 7, 2026
@gitar-bot

gitar-bot Bot commented Oct 7, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Adjusting coverage artifact lookup may leave unit coverage uncombined, causing incomplete Sonar coverage reporting.

Fixes py-combine-coverage to handle unit-only PR runs where actions/download-artifact v7 extracts a single artifact's files directly into path instead of path/<artifact-name>/. The step now checks both directory layouts, so coverage combine works on both unit-only and merge-queue runs with multiple shards. No issues found.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

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

@pmbrull
pmbrull added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit 9675c6d Oct 7, 2026
75 of 77 checks passed
@pmbrull
pmbrull deleted the ulixius9/openmetadata-job-failure-check branch October 7, 2026 13:56
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants