Repository navigation
Description
Affected module
CI (the three backend integration-test workflows on main)
Describe the bug
Every push to main fails all three backend integration-test workflows. All four lanes (parallel, global-state, multi-node, retry-queue) die after ~6 minutes, before a single test runs, at the Restore Integration Test Runtime step:
reactor-repository.tar.gz: OK
The build artifact does not match the checked-out commit.
##[error]Process completed with exit code 1.
Root cause. Three places in each workflow share one expression:
${{ github.event_name == 'merge_group' && github.sha || github.event.pull_request.head.sha }}It covers only two of the four triggers. On a push (and on workflow_dispatch) github.event_name is not merge_group and github.event.pull_request does not exist, so the whole expression evaluates to the empty string.
That empty value is harmless in the two ref: slots — actions/checkout treats an empty ref as "the triggering commit", which is the right commit anyway. It is fatal in the third slot, SOURCE_SHA, which is written verbatim into the build artifact (integration-tests-postgres-elasticsearch-redis.yml:158 → :200):
printf '%s\n' "$SOURCE_SHA" > "$bundle/source-sha.txt"Each lane job then compares it against its own checkout (:342):
source_sha="$(<"$bundle/source-sha.txt")" # "" on push
if [[ "$(git rev-parse HEAD)" != "$source_sha" ]]; then # real sha != "" -> always true
echo "The build artifact does not match the checked-out commit."
exit 1
fiEvidence from run 35095968263 (push of 10efa91a07) — the build job's own step env prints the variable with no value:
2026-09-16T12:28:31.9238828Z SOURCE_SHA:
Blast radius by event:
| Event | Expression resolves to | Result |
|---|---|---|
pull_request_target |
PR head sha | works |
merge_group |
github.sha |
works (19/20 recent merge-queue runs green) |
push (main) |
"" |
always fails |
workflow_dispatch |
"" |
always fails |
PR checks and the merge queue are healthy — the breakage is confined to the post-merge signal on main.
Affected workflows (all three, identically):
.github/workflows/integration-tests-postgres-elasticsearch-redis.yml.github/workflows/integration-tests-mysql-elasticsearch.yml.github/workflows/integration-tests-postgres-opensearch.yml
100/100 of the most recent push-event runs on each have failed.
Since when. Introduced by 7eee9f956b ("Fixes 30119: Stabilize integration-test CI", #30120) on 2026-07-20, which added the source-sha guard. The push: branches: [main] trigger already existed (64f49c1747, 2026-05-13). Every successful workflow_dispatch run is dated on or before 2026-07-20T00:04Z; the first dispatch after that commit failed. The main push signal has been dead for ~2 months.
Not affected. Six other workflows use the same ternary, but only for ref:, where the empty fallback is harmless. Only java-checkstyle.yml among them even has a push: main trigger, and it is 20/20 green. The source-sha guard exists only in the three integration-test workflows.
The guard itself is correct and worth keeping — it stops a stale artifact from being tested against different source. The bug is purely that the sha it is handed is never populated for push events.
To Reproduce
- Open the workflow's run history filtered to
main. - Open any
push-event run. TheBuild Integration Test Runtimejob succeeds; all fourIntegration Test Lanejobs fail. - Open any lane job →
Restore Integration Test Runtime:The build artifact does not match the checked-out commit. - In the build job, expand the
Build and Bundle Integration Test Runtimestep's env block:SOURCE_SHA:is empty.
Or via CLI:
gh api "repos/open-metadata/OpenMetadata/actions/workflows/integration-tests-postgres-elasticsearch-redis.yml/runs?branch=main&event=push&per_page=100" \
--jq '[.workflow_runs[].conclusion] | group_by(.) | map({(.[0]): length}) | add'
# {"failure":100}Expected behavior
A push to main builds the integration-test runtime once and runs all four lanes against it, exactly as the merge queue does. The source-sha guard should compare two real shas and pass when the lane checkout matches the commit the artifact was built from.
OS
N/A (GitHub-hosted ubuntu-latest)
Python version
N/A
OpenMetadata version
main (any commit since 2026-07-20)
OpenMetadata Ingestion package version
N/A
Additional context
Note for whoever picks this up: these suites have not actually executed on a main push since 2026-07-20. Once the guard passes, the lanes will run for real and may surface genuine test failures or flakes that this bug has been masking for ~2 months. That is a separate problem from this fix — triage it on its own rather than re-breaking the guard to hide it.
Activity