Skip to content

MINOR - Fix CI on fork#30255

Open
TeddyCr wants to merge 2 commits into
open-metadata:mainfrom
TeddyCr:MINOR-CI-On-fork
Open

MINOR - Fix CI on fork#30255
TeddyCr wants to merge 2 commits into
open-metadata:mainfrom
TeddyCr:MINOR-CI-On-fork

Conversation

@TeddyCr

@TeddyCr TeddyCr commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Describe your changes:

remove merge_commit_sha to allow fork PR to run checks. Instead rely on merge queue to test the changes against the latest from main. This prevents triggering the checkout guards

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

High-level design:

N/A — small change.

Tests:

Use cases covered

Unit tests

Backend integration tests

Ingestion integration tests

Playwright (UI) tests

Manual testing performed

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

Summary by Gitar

  • CI configuration:
    • Updated actions/checkout ref logic across multiple workflow files to support GitHub merge groups.
    • Synchronized SOURCE_SHA environment variable to ensure consistency with the checkout ref in build steps.

This will update automatically on new commits.

Greptile Summary

This PR updates CI revision selection and expands merge-queue coverage. The main changes are:

  • Checkout pull-request head commits instead of synthetic merge commits.
  • Use merge-group SHAs for queued revisions.
  • Add merge-group triggers to several Playwright workflows.
  • Align reported source SHAs with the selected checkout.

Confidence Score: 4/5

Existing push and manual CI paths can receive empty revision values and need fixes before merging.

  • Merge-group events select the intended queue SHA.
  • Push events in the integration workflows lose both checkout and artifact SHAs.
  • Manual runs across several workflows lose their checkout ref.

The changed integration, Playwright, and Python workflows that use the two-branch SHA expression.

Important Files Changed

Filename Overview
.github/workflows/integration-tests-mysql-elasticsearch.yml The new SHA expression works for PR and merge-group events but becomes empty on push and manual runs.
.github/workflows/integration-tests-postgres-elasticsearch-redis.yml The checkout and artifact source SHA become empty on existing push and manual triggers.
.github/workflows/integration-tests-postgres-opensearch.yml The checkout and artifact source SHA become empty on existing push and manual triggers.
.github/workflows/playwright-mysql-e2e.yml Merge-group checkout is supported, but manual dispatch no longer supplies a valid ref.
.github/workflows/playwright-postgresql-e2e.yml The changed checkout works for PR and merge-group events but not manual dispatch.
.github/workflows/playwright-sso-tests.yml Merge-group support is added, while manual dispatch can produce empty checkout and reporting SHAs.
.github/workflows/py-tests.yml The changed checkout expressions do not preserve a valid SHA for manual runs.
.github/workflows/py-tests-postgres.yml The changed checkout expression does not preserve a valid SHA for manual runs.

Reviews (1): Last reviewed commit: "fix: reverted checkout + enabled merge g..." | Re-trigger Greptile

Greptile also left 2 inline comments on this PR.

Context used (3)

  • Context used - CLAUDE.md (source)
  • Context used - openmetadata-ui-core-components/CLAUDE.md (source)
  • Context used - AGENTS.md (source)

Copilot AI review requested due to automatic review settings July 20, 2026 22:42
@github-actions

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 Jul 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — 4 pipeline/setup failure(s)

✅ 0 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped

Pipeline and setup failures

  • The build job finished with status failure.
  • Shard detection finished with status failure.
  • The Playwright shard matrix was unexpectedly skipped.
  • No expected Playwright shards were declared.
Shard Passed Failed Flaky Skipped

📦 Download artifacts

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

@gitar-bot

gitar-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Updates CI checkout configuration to enable GitHub merge groups and adds support for unsafe PR checkouts. No issues found.

Options

Display: compact → Showing less information.

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

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

Comment thread .github/workflows/integration-tests-mysql-elasticsearch.yml
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merge_commit_sha || github.sha }}
ref: ${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}

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.

P1 Manual Runs Lose Checkout Ref

A workflow_dispatch event has no pull_request.head.sha, so this checkout receives an empty ref instead of the dispatched revision. The run can fail at checkout or test the default branch rather than the requested code. The changed PostgreSQL E2E, SSO, and Python test workflows use the same expression on their manual-run paths.

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.

Pull request overview

This PR updates several GitHub Actions workflows to better support GitHub Merge Queue (merge_group) and to keep the SOURCE_SHA/checkout ref consistent across CI jobs.

Changes:

  • Added merge_group triggers to selected workflows.
  • Updated actions/checkout ref: logic across multiple workflows.
  • Updated SOURCE_SHA in Playwright/integration workflows to match the intended tested SHA.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 18 comments.

Show a summary per file
File Description
.github/workflows/py-tests.yml Updates checkout ref selection for Python CI jobs.
.github/workflows/py-tests-postgres.yml Updates checkout ref selection for Python Postgres CI.
.github/workflows/playwright-sso-tests.yml Adds merge_group trigger and updates checkout/SOURCE_SHA.
.github/workflows/playwright-postgresql-e2e.yml Updates checkout/SOURCE_SHA used by Playwright Postgres E2E flow.
.github/workflows/playwright-mysql-e2e.yml Adds merge_group trigger and updates checkout ref.
.github/workflows/playwright-integration-tests-postgres.yml Adds merge_group trigger and updates checkout ref.
.github/workflows/playwright-integration-tests-mysql.yml Adds merge_group trigger and updates checkout ref.
.github/workflows/integration-tests-postgres-opensearch.yml Updates checkout/SOURCE_SHA used by Java integration tests (PG+OS).
.github/workflows/integration-tests-postgres-elasticsearch-redis.yml Updates checkout/SOURCE_SHA used by Java integration tests (PG+ES+Redis).
.github/workflows/integration-tests-mysql-elasticsearch.yml Updates checkout/SOURCE_SHA used by Java integration tests (MySQL+ES).

uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merge_commit_sha || github.sha }}
ref: ${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merge_commit_sha || github.sha }}
ref: ${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merge_commit_sha || github.sha }}
ref: ${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merge_commit_sha || github.sha }}
ref: ${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merge_commit_sha || github.sha }}
ref: ${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SOURCE_SHA: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merge_commit_sha || github.sha }}
SOURCE_SHA: ${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merge_commit_sha || github.sha }}
ref: ${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SOURCE_SHA: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merge_commit_sha || github.sha }}
SOURCE_SHA: ${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}
Comment thread .github/workflows/integration-tests-mysql-elasticsearch.yml
Comment thread .github/workflows/integration-tests-mysql-elasticsearch.yml
@TeddyCr

TeddyCr commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

@TeddyCr TeddyCr changed the title Minor ci on fork MINOR - Fix CI on fork Jul 20, 2026
@TeddyCr TeddyCr added the skip-pr-checks Bypass PR metadata validation check label Jul 20, 2026
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.

2 participants