-
Notifications
You must be signed in to change notification settings - Fork 2.3k
1705 lines (1581 loc) · 80.4 KB
/
Copy pathplaywright-postgresql-e2e.yml
File metadata and controls
1705 lines (1581 loc) · 80.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright 2021 Collate
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This workflow executes end-to-end (e2e) tests using Playwright with PostgreSQL as the database.
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Postgresql PR Playwright E2E Tests
on:
merge_group:
schedule:
- cron: "30 7 * * *"
workflow_dispatch:
inputs:
full_suite:
description: Run the complete duration-balanced suite
required: true
type: boolean
default: true
protocol:
description: Application protocol used by Playwright
required: true
type: choice
options:
- http
- h2
default: http
coarse_bundle:
description: Build the CI-only coarse Vite bundle
required: true
type: boolean
default: true
# Same-repo PRs run under pull_request — unprivileged, secrets absent
# from the runner. These jobs build PR code, populate caches, and
# exchange artifacts. Merge queue, schedule, and full dispatch runs
# still execute the complete duration-balanced suite.
pull_request:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
# Fork PRs need cloud-connector secrets (TEST_SNOWFLAKE_*, TEST_BQ_*,
# TEST_REDSHIFT_* …) that pull_request events cannot access on forks.
# pull_request_target runs in the base repo's context so those secrets
# resolve, but requires a maintainer to apply the "safe to test" label
# first (enforced by the gate job below). Same-repo PRs already ran
# under pull_request above; this block short-circuits on them via the
# head-repo check in the gate job.
pull_request_target:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
permissions:
actions: read
contents: read
pull-requests: read
concurrency:
# PR and manual runs for the same branch supersede stale commits. This also
# lets a manually dispatched full-suite run replace the automatic PR subset.
# Include event_name in the group so pull_request and pull_request_target
# runs for the same PR don't cancel each other — one gates false and skips,
# the other does the real work; sharing a group would let the "skip" event
# cancel an in-flight real run.
group: playwright-ci-postgresql-${{ github.event_name }}-${{ github.event.pull_request.head.ref || github.ref_name }}
cancel-in-progress: ${{ !contains(fromJSON('["pull_request","pull_request_target"]'), github.event_name) || github.event.action != 'labeled' || github.event.label.name == 'safe to test' }}
jobs:
# Fork-vs-same-repo PR arbitration. GitHub fires BOTH pull_request and
# pull_request_target on every PR event; without a gate the pipeline
# would either double-run same-repo PRs or run fork PRs with the wrong
# secrets. Routing:
# merge_group / schedule / workflow_dispatch → always run
# drafts → never run
# labeled event with label != "safe to test" → skip (spurious re-fire)
# same-repo PR → pull_request handles it
# fork PR → pull_request_target
# handles it, must carry
# the "safe to test" label
gate:
runs-on: ubuntu-latest
permissions:
checks: read
contents: read
pull-requests: read
outputs:
should_run: ${{ steps.gate.outputs.should_run }}
steps:
# Team Label atomically removes stale fork approval on synchronize and
# re-adds it only for allowlisted authors. Wait for that reconciliation
# instead of relying on another labeled event: GITHUB_TOKEN label writes
# intentionally do not trigger a new workflow run.
- name: Wait for fork label reconciliation
if: |
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
uses: lewagon/wait-on-check-action@9312864dfbc9fd208e9c0417843430751c042800 # v1.7.0
with:
ref: ${{ github.event.pull_request.head.sha }}
check-name: Team Label
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Read reconciled fork labels
id: fork-labels
if: |
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
run: |
set -euo pipefail
labels=$(gh api "/repos/${REPO}/pulls/${PR_NUMBER}" \
--jq '[.labels[].name] | @json')
echo "labels=$labels" >> "$GITHUB_OUTPUT"
- name: Compute gate decision
id: gate
env:
EVENT: ${{ github.event_name }}
ACTION: ${{ github.event.action }}
LABEL: ${{ github.event.label.name }}
HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
BASE_REPO: ${{ github.repository }}
LABELS_JSON: ${{ steps.fork-labels.outputs.labels || toJSON(github.event.pull_request.labels.*.name) }}
IS_DRAFT: ${{ github.event.pull_request.draft }}
run: |
set -euo pipefail
decide() { echo "should_run=$1" >> "$GITHUB_OUTPUT"; exit 0; }
case "$EVENT" in
merge_group|schedule|workflow_dispatch) decide true ;;
esac
if [[ "$IS_DRAFT" == "true" ]]; then decide false; fi
if [[ "$ACTION" == "labeled" && "$LABEL" != "safe to test" ]]; then decide false; fi
if [[ "$HEAD_REPO" == "$BASE_REPO" ]]; then
if [[ "$EVENT" == "pull_request" ]]; then decide true; else decide false; fi
fi
# Fork PR — pull_request_target must fire and the reconciled labels
# for the current head SHA must include "safe to test".
if [[ "$EVENT" == "pull_request_target" ]] && \
echo "$LABELS_JSON" | jq -e '. | index("safe to test")' >/dev/null; then
decide true
fi
decide false
check-changes:
needs: gate
if: ${{ needs.gate.outputs.should_run == 'true' }}
runs-on: ubuntu-latest
outputs:
e2e: ${{ steps.filter.outputs.e2e }}
docker-compose: ${{ steps.filter.outputs.docker-compose }}
steps:
- name: Checkout
uses: actions/checkout@v7
if: ${{ github.event_name == 'merge_group' }}
with:
fetch-depth: 0
filter: blob:none
persist-credentials: false
- uses: dorny/paths-filter@v4
id: filter
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' || github.event_name == 'merge_group' }}
with:
base: ${{ github.event_name == 'merge_group' && github.event.merge_group.base_sha || '' }}
filters: |
e2e:
- 'openmetadata-service/**'
- 'openmetadata-ui/**'
- 'openmetadata-spec/**'
- 'openmetadata-integration-tests/**'
- 'openmetadata-dist/**'
- 'ingestion/**'
- 'bootstrap/**'
- 'conf/**'
- 'docker/development/**'
- 'docker/run_local_docker.sh'
- 'docker/run_local_docker_common.sh'
- 'openmetadata-clients/**'
- 'openmetadata-airflow-apis/**'
- 'openmetadata-mcp/**'
- 'openmetadata-sdk/**'
- 'openmetadata-shaded-deps/**'
- 'openmetadata-ui-core-components/**'
- 'openmetadata-k8s-operator/**'
- 'common/**'
- 'openspec/**'
- 'pom.xml'
- 'Makefile'
- '.github/actions/setup-openmetadata-test-environment/**'
- '.github/playwright/**'
- '.github/scripts/build_playwright_shards.py'
- '.github/scripts/capture_playwright_server_output.py'
- '.github/scripts/classify_playwright_outcome.py'
- '.github/scripts/create_playwright_fixture.sh'
- '.github/scripts/playwright_cache_fingerprint.py'
- '.github/scripts/playwright_distribution_cache.sh'
- '.github/scripts/rotate_playwright_auth_state.py'
- '.github/scripts/evaluate_playwright_performance.py'
- '.github/scripts/import_playwright_json_timings.py'
- '.github/scripts/merge_playwright_timings.py'
- '.github/scripts/render_playwright_summary.cjs'
- '.github/scripts/select_playwright_tests.py'
- '.github/scripts/start_playwright_fast_environment.sh'
- '.github/scripts/stop_playwright_fast_environment.sh'
- '.github/scripts/summarize_playwright_requests.py'
- '.github/scripts/validate_playwright_fixture.sh'
- '.github/scripts/validate_playwright_ingestion_image.sh'
- '.github/scripts/tests/test_playwright_ci_planning.py'
- '.github/scripts/tests/test_playwright_cache_assets.py'
- '.github/scripts/verify_playwright_coverage.py'
- '.github/workflows/playwright-postgresql-e2e.yml'
docker-compose:
- 'docker/development/docker-compose.yml'
- 'docker/development/docker-compose-postgres.yml'
cache-keys:
needs: check-changes
runs-on: ubuntu-latest
if: |
!github.event.pull_request.draft &&
(!contains(fromJSON('["pull_request","pull_request_target"]'), github.event_name) || github.event.action != 'labeled' || github.event.label.name == 'safe to test')
outputs:
bundle_mode: ${{ steps.fingerprints.outputs.bundle_mode }}
distribution: ${{ steps.fingerprints.outputs.distribution }}
fixture: ${{ steps.fingerprints.outputs.fixture }}
ingestion: ${{ steps.fingerprints.outputs.ingestion }}
toolchain: ${{ steps.fingerprints.outputs.toolchain }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
# actions/checkout@v7 refuses to fetch fork code under pull_request_target
# unless the workflow opts in. The gate job already restricts this event to
# "safe to test"-labelled fork PRs, and the build/test steps that consume this
# tree run in docker containers — not directly in the workflow context — so
# the fork code cannot exfiltrate GITHUB_TOKEN or repo secrets. The one
# workflow-runner script consumer (playwright-summary/render_playwright_summary.cjs)
# deliberately checks out base.sha instead, closing the pwn-request path there.
allow-unsafe-pr-checkout: true
persist-credentials: false
- name: Calculate cache fingerprints
id: fingerprints
env:
COARSE_BUNDLE: ${{ github.event_name != 'workflow_dispatch' || inputs.coarse_bundle }}
run: |
bundle_mode=regular
if [[ "$COARSE_BUNDLE" == "true" ]]; then
bundle_mode=coarse
fi
toolchain=$(mvn --version | sed -n '1p' | tr -d '\r')
distribution=$(python3 .github/scripts/playwright_cache_fingerprint.py \
--kind distribution \
--bundle-mode "$bundle_mode" \
--toolchain "$toolchain")
{
echo "bundle_mode=$bundle_mode"
echo "distribution=$distribution"
echo "fixture=$(python3 .github/scripts/playwright_cache_fingerprint.py --kind fixture)"
echo "ingestion=$(python3 .github/scripts/playwright_cache_fingerprint.py --kind ingestion)"
echo "toolchain=$toolchain"
} >> "$GITHUB_OUTPUT"
build:
needs: [check-changes, cache-keys]
runs-on: ubuntu-latest
if: |
!github.event.pull_request.draft &&
(!contains(fromJSON('["pull_request","pull_request_target"]'), github.event_name) || github.event.action != 'labeled' || github.event.label.name == 'safe to test')
env:
DISTRIBUTION_FINGERPRINT: ${{ needs.cache-keys.outputs.distribution }}
BUNDLE_MODE: ${{ needs.cache-keys.outputs.bundle_mode }}
BUILD_TOOLCHAIN: ${{ needs.cache-keys.outputs.toolchain }}
steps:
- name: Wait for the labeler
uses: lewagon/wait-on-check-action@9312864dfbc9fd208e9c0417843430751c042800 # v1.7.0
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
check-name: Team Label
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 90
- name: Verify PR labels
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
valid-labels: "safe to test"
pull-request-number: "${{ github.event.pull_request.number }}"
disable-reviews: true
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
# actions/checkout@v7 refuses to fetch fork code under pull_request_target
# unless the workflow opts in. The gate job already restricts this event to
# "safe to test"-labelled fork PRs, and the build/test steps that consume this
# tree run in docker containers — not directly in the workflow context — so
# the fork code cannot exfiltrate GITHUB_TOKEN or repo secrets. The one
# workflow-runner script consumer (playwright-summary/render_playwright_summary.cjs)
# deliberately checks out base.sha instead, closing the pwn-request path there.
allow-unsafe-pr-checkout: true
persist-credentials: false
- name: Initialize distribution cache path
run: echo "DISTRIBUTION_CACHE_DIR=$RUNNER_TEMP/playwright-distribution-cache" >> "$GITHUB_ENV"
- name: Restore OpenMetadata distribution cache
id: restore-distribution
# Actions cache isolates PR writes to the PR merge ref. PRs may read a
# default-branch entry, but cannot replace the cache used by main/nightly.
uses: actions/cache/restore@v5
with:
path: ${{ env.DISTRIBUTION_CACHE_DIR }}
key: playwright-distribution-v2-${{ runner.os }}-${{ runner.arch }}-${{ needs.cache-keys.outputs.distribution }}
- name: Validate restored distribution
id: distribution-cache
run: |
usable=false
if [[ "${{ steps.restore-distribution.outputs.cache-hit }}" == "true" ]] && \
.github/scripts/playwright_distribution_cache.sh validate \
"$DISTRIBUTION_CACHE_DIR" \
"$DISTRIBUTION_FINGERPRINT" \
"$BUNDLE_MODE" \
"$BUILD_TOOLCHAIN"; then
usable=true
else
rm -rf "$DISTRIBUTION_CACHE_DIR"
fi
echo "usable=$usable" >> "$GITHUB_OUTPUT"
- name: Setup JDK 21
if: ${{ steps.distribution-cache.outputs.usable != 'true' }}
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
- name: Cache Maven Dependencies
if: ${{ steps.distribution-cache.outputs.usable != 'true' }}
uses: actions/cache@v5
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install antlr cli
if: ${{ steps.distribution-cache.outputs.usable != 'true' }}
run: sudo make install_antlr_cli
- name: Build with Maven
if: ${{ steps.distribution-cache.outputs.usable != 'true' }}
env:
PW_E2E_BUILD: "true"
PW_E2E_BUNDLE: ${{ needs.cache-keys.outputs.bundle_mode == 'coarse' }}
run: mvn -DskipTests clean package -pl openmetadata-dist -am
- name: Package OpenMetadata distribution cache entry
if: ${{ steps.distribution-cache.outputs.usable != 'true' }}
run: |
distribution=$(find openmetadata-dist/target -maxdepth 1 -type f -name 'openmetadata-*.tar.gz' -print -quit)
test -n "$distribution"
.github/scripts/playwright_distribution_cache.sh package \
"$distribution" \
"$DISTRIBUTION_CACHE_DIR" \
"$DISTRIBUTION_FINGERPRINT" \
"$BUNDLE_MODE" \
"$BUILD_TOOLCHAIN"
- name: Save OpenMetadata distribution cache
if: ${{ steps.distribution-cache.outputs.usable != 'true' }}
continue-on-error: true
uses: actions/cache/save@v5
with:
path: ${{ env.DISTRIBUTION_CACHE_DIR }}
key: playwright-distribution-v2-${{ runner.os }}-${{ runner.arch }}-${{ needs.cache-keys.outputs.distribution }}
- name: Validate OpenMetadata distribution
run: |
.github/scripts/playwright_distribution_cache.sh validate \
"$DISTRIBUTION_CACHE_DIR" \
"$DISTRIBUTION_FINGERPRINT" \
"$BUNDLE_MODE" \
"$BUILD_TOOLCHAIN"
- name: Upload OpenMetadata distribution
uses: actions/upload-artifact@v6
with:
name: openmetadata-distribution
overwrite: true
path: |
${{ env.DISTRIBUTION_CACHE_DIR }}/openmetadata-*.tar.gz
${{ env.DISTRIBUTION_CACHE_DIR }}/distribution-manifest.json
compression-level: 0
retention-days: 1
detect-changes:
needs: check-changes
runs-on: ubuntu-latest
if: |
!github.event.pull_request.draft &&
(!contains(fromJSON('["pull_request","pull_request_target"]'), github.event_name) || github.event.action != 'labeled' || github.event.label.name == 'safe to test')
outputs:
mode: ${{ steps.select.outputs.mode }}
selected_count: ${{ steps.select.outputs.selected_count }}
direct_changed_specs: ${{ steps.select.outputs.direct_changed_specs }}
lineage_representative_only: ${{ steps.select.outputs.lineage_representative_only }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
filter: blob:none
# See allow-unsafe-pr-checkout rationale on other checkouts above.
allow-unsafe-pr-checkout: true
persist-credentials: false
- name: Get all changed files
id: all-changes
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
- name: Select PR coverage
id: select
env:
ALL_FILES: ${{ steps.all-changes.outputs.all_changed_files }}
run: |
mkdir -p "$RUNNER_TEMP/playwright-selection"
# shellcheck disable=SC2086
printf '%s\n' $ALL_FILES > "$RUNNER_TEMP/playwright-selection/changed-files.txt"
python3 .github/scripts/select_playwright_tests.py \
--event-name "${{ github.event_name }}" \
--changed-files "$RUNNER_TEMP/playwright-selection/changed-files.txt" \
--impact-map .github/playwright/impact-map.json \
--full-suite "${{ inputs.full_suite || false }}" \
--output "$RUNNER_TEMP/playwright-selection/selection.json" \
--github-output "$GITHUB_OUTPUT"
jq '{mode, reason, selected: (.selectors | length)}' \
"$RUNNER_TEMP/playwright-selection/selection.json"
- name: Upload Playwright selection
uses: actions/upload-artifact@v6
with:
name: playwright-selection
path: ${{ runner.temp }}/playwright-selection/selection.json
retention-days: 1
plan-playwright:
needs: [build, detect-changes]
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.plan.outputs.matrix }}
shard_count: ${{ steps.plan.outputs.shard_count }}
requires_airflow: ${{ steps.plan.outputs.requires_airflow }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
# actions/checkout@v7 refuses to fetch fork code under pull_request_target
# unless the workflow opts in. The gate job already restricts this event to
# "safe to test"-labelled fork PRs, and the build/test steps that consume this
# tree run in docker containers — not directly in the workflow context — so
# the fork code cannot exfiltrate GITHUB_TOKEN or repo secrets. The one
# workflow-runner script consumer (playwright-summary/render_playwright_summary.cjs)
# deliberately checks out base.sha instead, closing the pwn-request path there.
allow-unsafe-pr-checkout: true
persist-credentials: false
- name: Download selection
uses: actions/download-artifact@v7
with:
name: playwright-selection
path: ${{ runner.temp }}/playwright-selection
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version-file: openmetadata-ui/src/main/resources/ui/.nvmrc
cache: yarn
cache-dependency-path: openmetadata-ui/src/main/resources/ui/yarn.lock
- name: Install dependencies
working-directory: openmetadata-ui/src/main/resources/ui
run: |
corepack enable
yarn --ignore-scripts --frozen-lockfile
- name: Seed Playwright browser cache
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('openmetadata-ui/src/main/resources/ui/yarn.lock') }}
- name: Install cached Chromium
working-directory: openmetadata-ui/src/main/resources/ui
run: npx playwright install chromium
- name: Download recent full-suite timings
continue-on-error: true
env:
GH_TOKEN: ${{ github.token }}
run: |
mkdir -p "$RUNNER_TEMP/playwright-history"
gh run list \
--workflow playwright-postgresql-e2e.yml \
--status success \
--limit 50 \
--json databaseId,createdAt \
--jq 'sort_by(.createdAt) | reverse | .[].databaseId' | while read -r run_id; do
full_count=$(find "$RUNNER_TEMP/playwright-history" -name 'playwright-timing-history.json' -type f -print0 2>/dev/null | xargs -0 -I{} jq -r 'select(.mode == "full") | .sourceSha' {} | wc -l | tr -d ' ')
[[ "$full_count" -ge 3 ]] && break
run_dir="$RUNNER_TEMP/playwright-history/$run_id"
mkdir -p "$run_dir"
gh run download "$run_id" \
--pattern 'playwright-timing-history-full-*' \
--dir "$run_dir" || true
done
- name: Discover tests
working-directory: openmetadata-ui/src/main/resources/ui
env:
PLAYWRIGHT_IS_OSS: "true"
PW_DEDICATED_INGESTION: "true"
PW_EXECUTION_MODE: ${{ needs.detect-changes.outputs.mode }}
PW_LINEAGE_REPRESENTATIVE_ONLY: ${{ needs.detect-changes.outputs.lineage_representative_only }}
run: |
npx playwright test --list --reporter=json \
--project=chromium \
--project=Basic \
--project=Ingestion \
--project=DataAssetRulesEnabled \
--project=DataAssetRulesDisabled \
--project=SearchRBAC \
--project=DomainIsolation \
--project=Reindex \
--project=GlobalSettings \
--project=SystemCertificationTags \
--project=IntakeForm \
--project=search-nightly \
> "$RUNNER_TEMP/playwright-test-list.json"
- name: Build duration-aware shard plans
id: plan
run: |
history_args=()
while IFS= read -r history_file; do
if jq -e '.mode == "full"' "$history_file" >/dev/null; then
history_args+=(--history "$history_file")
fi
done < <(find "$RUNNER_TEMP/playwright-history" -name 'playwright-timing-history.json' -type f 2>/dev/null | sort)
if [[ ${#history_args[@]} -eq 0 ]]; then
history_args=(--history .github/playwright/timing-baseline.json)
fi
python3 .github/scripts/build_playwright_shards.py \
--test-list "$RUNNER_TEMP/playwright-test-list.json" \
--selection "$RUNNER_TEMP/playwright-selection/selection.json" \
"${history_args[@]}" \
--output-dir "$RUNNER_TEMP/playwright-plans" \
--github-output "$GITHUB_OUTPUT"
jq '{shards: (.include | length), lanes: (.include | group_by(.lane) | map({lane: .[0].lane, count: length}))}' \
"$RUNNER_TEMP/playwright-plans/matrix.json"
- name: Upload shard plans
uses: actions/upload-artifact@v6
with:
name: playwright-shard-plans
path: ${{ runner.temp }}/playwright-plans
retention-days: 1
restore-playwright-fixture:
needs: [cache-keys, plan-playwright]
runs-on: ubuntu-latest
outputs:
fixture_cache_hit: ${{ steps.validate-fixture.outputs.usable }}
ingestion_cache_hit: ${{ steps.validate-ingestion.outputs.usable }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
# actions/checkout@v7 refuses to fetch fork code under pull_request_target
# unless the workflow opts in. The gate job already restricts this event to
# "safe to test"-labelled fork PRs, and the build/test steps that consume this
# tree run in docker containers — not directly in the workflow context — so
# the fork code cannot exfiltrate GITHUB_TOKEN or repo secrets. The one
# workflow-runner script consumer (playwright-summary/render_playwright_summary.cjs)
# deliberately checks out base.sha instead, closing the pwn-request path there.
allow-unsafe-pr-checkout: true
persist-credentials: false
- name: Initialize fixture cache paths
run: |
echo "FIXTURE_CACHE_DIR=$RUNNER_TEMP/playwright-fixture-cache" >> "$GITHUB_ENV"
echo "INGESTION_CACHE_DIR=$RUNNER_TEMP/playwright-ingestion-cache" >> "$GITHUB_ENV"
- name: Restore golden fixture cache
id: restore-fixture
# The content hash excludes the commit SHA so compatible main/nightly
# fixtures can be reused across commits. Cache ref scoping keeps PR saves isolated.
uses: actions/cache/restore@v5
with:
path: ${{ env.FIXTURE_CACHE_DIR }}
key: playwright-golden-fixture-v2-${{ runner.os }}-${{ runner.arch }}-${{ needs.cache-keys.outputs.fixture }}
- name: Validate restored golden fixture
id: validate-fixture
env:
EXPECTED_FINGERPRINT: ${{ needs.cache-keys.outputs.fixture }}
run: |
usable=false
fixture="$FIXTURE_CACHE_DIR/playwright-fixture.tar.zst"
if [[ "${{ steps.restore-fixture.outputs.cache-hit }}" == "true" && -s "$fixture" ]] && \
.github/scripts/validate_playwright_fixture.sh "$fixture" "$EXPECTED_FINGERPRINT"; then
usable=true
else
rm -rf "$FIXTURE_CACHE_DIR"
fi
echo "usable=$usable" >> "$GITHUB_OUTPUT"
- name: Restore ingestion image cache
id: restore-ingestion
if: ${{ needs.plan-playwright.outputs.requires_airflow == 'true' }}
uses: actions/cache/restore@v5
with:
path: ${{ env.INGESTION_CACHE_DIR }}
key: playwright-ingestion-image-v2-${{ runner.os }}-${{ runner.arch }}-${{ needs.cache-keys.outputs.ingestion }}
- name: Validate restored ingestion image
id: validate-ingestion
if: ${{ needs.plan-playwright.outputs.requires_airflow == 'true' }}
env:
EXPECTED_FINGERPRINT: ${{ needs.cache-keys.outputs.ingestion }}
run: |
usable=false
image="$INGESTION_CACHE_DIR/playwright-ingestion-image.tar.zst"
if [[ "${{ steps.restore-ingestion.outputs.cache-hit }}" == "true" && -s "$image" ]] && \
.github/scripts/validate_playwright_ingestion_image.sh "$image" "$EXPECTED_FINGERPRINT"; then
usable=true
else
rm -rf "$INGESTION_CACHE_DIR"
fi
echo "usable=$usable" >> "$GITHUB_OUTPUT"
- name: Upload restored seeded fixture
if: ${{ steps.validate-fixture.outputs.usable == 'true' }}
uses: actions/upload-artifact@v6
with:
name: playwright-seeded-fixture
path: ${{ env.FIXTURE_CACHE_DIR }}/playwright-fixture.tar.zst
compression-level: 0
retention-days: 1
- name: Upload restored ingestion image
if: ${{ steps.validate-ingestion.outputs.usable == 'true' }}
uses: actions/upload-artifact@v6
with:
name: playwright-ingestion-image
path: ${{ env.INGESTION_CACHE_DIR }}
compression-level: 0
retention-days: 1
prepare-playwright-fixture:
needs:
[
build,
cache-keys,
detect-changes,
plan-playwright,
restore-playwright-fixture,
]
runs-on: ubuntu-latest
env:
ELASTICSEARCH_CLUSTER_ALIAS: openmetadata
steps:
- name: Reuse cached Playwright assets
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit == 'true' && (needs.plan-playwright.outputs.requires_airflow != 'true' || needs.restore-playwright-fixture.outputs.ingestion_cache_hit == 'true') }}
run: echo "The golden fixture and optional ingestion image were restored while the distribution was prepared."
# Reclaim ~30 GB of runner disk (dotnet, android, haskell, swap) BEFORE
# any docker work runs. `create_playwright_fixture.sh` does a
# `docker image save <ingestion>` after packing the fixture tar, which
# streams multi-GB blobs through /var/lib/docker/tmp/. On a fresh
# ubuntu-latest that partition has ~14 GB free after all the OM images
# (server, ingestion, postgres, opensearch, airflow) and their seeded
# volumes are loaded — not enough headroom for the docker export tmp,
# so the save fails with:
# Error response from daemon: write /var/lib/docker/tmp/...: no space left on device
# (See failure on https://github.com/open-metadata/OpenMetadata/actions/runs/30097915650)
# docker-images:false is deliberate — the OM images are exactly what
# this job needs to snapshot, so we can't prune them here.
- name: Free Disk Space (Ubuntu)
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
swap-storage: true
docker-images: false
- name: Checkout
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
uses: actions/checkout@v7
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
# actions/checkout@v7 refuses to fetch fork code under pull_request_target
# unless the workflow opts in. The gate job already restricts this event to
# "safe to test"-labelled fork PRs, and the build/test steps that consume this
# tree run in docker containers — not directly in the workflow context — so
# the fork code cannot exfiltrate GITHUB_TOKEN or repo secrets. The one
# workflow-runner script consumer (playwright-summary/render_playwright_summary.cjs)
# deliberately checks out base.sha instead, closing the pwn-request path there.
allow-unsafe-pr-checkout: true
persist-credentials: false
- name: Initialize generated fixture paths
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
run: |
echo "FIXTURE_CACHE_DIR=$RUNNER_TEMP/playwright-fixture-cache" >> "$GITHUB_ENV"
echo "INGESTION_CACHE_DIR=$RUNNER_TEMP/playwright-ingestion-cache" >> "$GITHUB_ENV"
- name: Download OpenMetadata distribution
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
uses: actions/download-artifact@v7
with:
name: openmetadata-distribution
path: openmetadata-dist/target
- name: Prepare seeded environment
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
uses: ./.github/actions/setup-openmetadata-test-environment
env:
STRICT_DAG_VALIDATION: "true"
VALIDATION_TIMEOUT_SECONDS: "600"
with:
python-version: "3.10"
args: "-d postgresql -s true"
ingestion_dependency: "playwright"
lightweight-ingestion: "true"
- name: Setup Node.js for fixture state
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
uses: actions/setup-node@v5
with:
node-version-file: openmetadata-ui/src/main/resources/ui/.nvmrc
cache: yarn
cache-dependency-path: openmetadata-ui/src/main/resources/ui/yarn.lock
- name: Install fixture-state dependencies
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
working-directory: openmetadata-ui/src/main/resources/ui
run: |
corepack enable
yarn --ignore-scripts --frozen-lockfile
- name: Restore Playwright browser cache
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('openmetadata-ui/src/main/resources/ui/yarn.lock') }}
- name: Install fixture-state browser
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
working-directory: openmetadata-ui/src/main/resources/ui
run: |
npx playwright install-deps chromium
npx playwright install chromium
- name: Seed reusable Playwright auth and entity state
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
working-directory: openmetadata-ui/src/main/resources/ui
env:
PLAYWRIGHT_IS_OSS: "true"
PW_DEDICATED_INGESTION: "true"
run: |
npx playwright test --project=entity-data-setup --reporter=line
test -s playwright/.auth/admin.json
test -s playwright/.auth/admin-api-token.json
test -s playwright/output/entity-response-data.json
- name: Verify the authenticated application bundle
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
working-directory: openmetadata-ui/src/main/resources/ui
env:
PLAYWRIGHT_IS_OSS: "true"
PW_E2E_BUNDLE: ${{ needs.cache-keys.outputs.bundle_mode == 'coarse' }}
PW_PRESEEDED_STATE: "true"
run: npx playwright test --project=bundle-smoke --reporter=line
- name: Upload fixture-state failure diagnostics
if: ${{ failure() && (needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true')) }}
continue-on-error: true
uses: actions/upload-artifact@v6
with:
name: playwright-fixture-state-diagnostics-${{ github.run_id }}-${{ github.run_attempt }}
path: |
openmetadata-ui/src/main/resources/ui/playwright/output/test-results
openmetadata-ui/src/main/resources/ui/playwright/output/results.json
if-no-files-found: ignore
retention-days: 7
- name: Snapshot PostgreSQL and OpenSearch
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true') }}
env:
CREATE_INGESTION_IMAGE: ${{ needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true' }}
run: |
if ! command -v zstd >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y zstd
fi
mkdir -p "$FIXTURE_CACHE_DIR" "$INGESTION_CACHE_DIR"
fixture_args=("$FIXTURE_CACHE_DIR/playwright-fixture.tar.zst")
if [[ "$CREATE_INGESTION_IMAGE" == "true" ]]; then
fixture_args+=("$INGESTION_CACHE_DIR/playwright-ingestion-image.tar.zst")
fi
./.github/scripts/create_playwright_fixture.sh "${fixture_args[@]}"
- name: Validate generated golden fixture
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' }}
run: |
.github/scripts/validate_playwright_fixture.sh \
"$FIXTURE_CACHE_DIR/playwright-fixture.tar.zst" \
"${{ needs.cache-keys.outputs.fixture }}"
- name: Validate generated ingestion image
if: ${{ needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true' }}
run: |
.github/scripts/validate_playwright_ingestion_image.sh \
"$INGESTION_CACHE_DIR/playwright-ingestion-image.tar.zst" \
"${{ needs.cache-keys.outputs.ingestion }}"
- name: Save golden fixture cache
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' }}
continue-on-error: true
uses: actions/cache/save@v5
with:
path: ${{ env.FIXTURE_CACHE_DIR }}
key: playwright-golden-fixture-v2-${{ runner.os }}-${{ runner.arch }}-${{ needs.cache-keys.outputs.fixture }}
- name: Save ingestion image cache
if: ${{ needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true' }}
continue-on-error: true
uses: actions/cache/save@v5
with:
path: ${{ env.INGESTION_CACHE_DIR }}
key: playwright-ingestion-image-v2-${{ runner.os }}-${{ runner.arch }}-${{ needs.cache-keys.outputs.ingestion }}
- name: Upload seeded fixture
if: ${{ needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' }}
uses: actions/upload-artifact@v6
with:
name: playwright-seeded-fixture
path: ${{ env.FIXTURE_CACHE_DIR }}/playwright-fixture.tar.zst
compression-level: 0
retention-days: 1
- name: Upload ingestion image
if: ${{ needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true' }}
uses: actions/upload-artifact@v6
with:
name: playwright-ingestion-image
path: ${{ env.INGESTION_CACHE_DIR }}
compression-level: 0
retention-days: 1
- name: Clean fixture builder
if: ${{ always() && (needs.restore-playwright-fixture.outputs.fixture_cache_hit != 'true' || (needs.plan-playwright.outputs.requires_airflow == 'true' && needs.restore-playwright-fixture.outputs.ingestion_cache_hit != 'true')) }}
run: |
docker compose -f docker/development/docker-compose-postgres.yml down --remove-orphans || true
sudo rm -rf "$GITHUB_WORKSPACE/docker/development/docker-volume"
playwright-ci-postgresql:
needs:
[build, cache-keys, detect-changes, plan-playwright, prepare-playwright-fixture]
runs-on: ubuntu-latest
timeout-minutes: 30
if: ${{ !cancelled() && needs.build.result == 'success' && needs.detect-changes.result == 'success' && needs.plan-playwright.result == 'success' && needs.prepare-playwright-fixture.result == 'success' }}
environment: test
permissions:
contents: read
env:
# Playwright logs the admin user in many times (performAdminLogin per test, parallel
# workers, retries). The production default of 5 active sessions per user would evict the
# long-lived storageState session the page fixtures rely on and 401 every request. Raise
# the cap for E2E only; docker compose reads this for ${AUTHENTICATION_MAX_ACTIVE_SESSIONS_PER_USER:-5}.
AUTHENTICATION_MAX_ACTIVE_SESSIONS_PER_USER: "10000"
PW_EXECUTION_MODE: ${{ needs.detect-changes.outputs.mode }}
PW_LINEAGE_REPRESENTATIVE_ONLY: ${{ needs.detect-changes.outputs.lineage_representative_only }}
PW_PROTOCOL: ${{ matrix.requiresAirflow && 'http' || (github.event_name == 'workflow_dispatch' && inputs.protocol || 'http') }}
PW_SHARD_ID: ${{ matrix.shardId }}
PW_PRESEEDED_STATE: "true"
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.plan-playwright.outputs.matrix) }}
steps:
- name: Mark shard start
run: echo "PW_JOB_STARTED_AT=$(date +%s)" >> "$GITHUB_ENV"
- name: Checkout
id: checkout
uses: actions/checkout@v7
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
# actions/checkout@v7 refuses to fetch fork code under pull_request_target
# unless the workflow opts in. The gate job already restricts this event to
# "safe to test"-labelled fork PRs, and the build/test steps that consume this
# tree run in docker containers — not directly in the workflow context — so
# the fork code cannot exfiltrate GITHUB_TOKEN or repo secrets. The one
# workflow-runner script consumer (playwright-summary/render_playwright_summary.cjs)
# deliberately checks out base.sha instead, closing the pwn-request path there.
allow-unsafe-pr-checkout: true
persist-credentials: false
- name: Download OpenMetadata distribution
id: download-distribution
uses: actions/download-artifact@v7
with:
name: openmetadata-distribution
path: ${{ runner.temp }}/openmetadata-distribution
- name: Download seeded fixture
id: download-fixture
uses: actions/download-artifact@v7
with:
name: playwright-seeded-fixture
path: ${{ runner.temp }}/playwright-fixture
- name: Download ingestion image
id: download-ingestion-image
if: ${{ matrix.requiresAirflow }}
uses: actions/download-artifact@v7
with:
name: playwright-ingestion-image
path: ${{ runner.temp }}/playwright-ingestion-image
- name: Download shard plans
id: download-plans
uses: actions/download-artifact@v7
with:
name: playwright-shard-plans
path: ${{ runner.temp }}/playwright-plans
- name: Resolve fast-environment inputs
id: fast-inputs
env:
PLAN_NAME: ${{ matrix.plan }}
REQUIRES_AIRFLOW: ${{ matrix.requiresAirflow }}
run: |
distribution=$(find "$RUNNER_TEMP/openmetadata-distribution" -maxdepth 2 -type f -name 'openmetadata-*.tar.gz' -print -quit)
fixture=$(find "$RUNNER_TEMP/playwright-fixture" -maxdepth 2 -type f -name 'playwright-fixture.tar.zst' -print -quit)
plan="$RUNNER_TEMP/playwright-plans/$PLAN_NAME"
ingestion_image=""
if [[ "$REQUIRES_AIRFLOW" == "true" ]]; then
ingestion_image=$(find "$RUNNER_TEMP/playwright-ingestion-image" -maxdepth 2 -type f -name 'playwright-ingestion-image.tar.zst' -print -quit)
fi
for input in "$distribution" "$fixture" "$plan"; do
if [[ -z "$input" || ! -f "$input" ]]; then
echo "Missing fast-environment input: $input" >&2
exit 1
fi
done
if [[ "$REQUIRES_AIRFLOW" == "true" && ( -z "$ingestion_image" || ! -f "$ingestion_image" ) ]]; then
echo "Missing ingestion image for the Airflow lane" >&2
exit 1
fi
{
echo "distribution=$(realpath "$distribution")"
echo "fixture=$(realpath "$fixture")"
echo "plan=$(realpath "$plan")"
echo "ingestion_image=${ingestion_image:+$(realpath "$ingestion_image")}"
} >> "$GITHUB_OUTPUT"