84
84
${{ secrets.SUPERTOPHER_PAT }} \
85
85
${{ secrets.DAVINCHIA_PAT }}
86
86
87
+
87
88
# Uncomment to debug.
88
89
# changes-output:
89
90
# name: "Debug Change Detection Logic"
@@ -235,6 +236,37 @@ jobs:
235
236
- name : Ensure no file change
236
237
run : git --no-pager diff && test -z "$(git --no-pager diff)"
237
238
239
+ - name : Publish Connectors Base Test Results
240
+ uses : EnricoMi/publish-unit-test-result-action@v2
241
+ id : connectors-test-results
242
+ if : always()
243
+ with :
244
+ junit_files : " /actions-runner/_work/airbyte/airbyte/*/build/test-results/*/*.xml\n /actions-runner/_work/airbyte/airbyte/*/*/build/test-results/*/*.xml"
245
+ comment_mode : off
246
+ json_file : connectors_base_results.json
247
+ json_test_case_results : true
248
+ check_name : " Connectors Base Test Results"
249
+
250
+ - name : Setup Cloud SDK
251
+ if : always()
252
+ uses : google-github-actions/setup-gcloud@v0
253
+ with :
254
+ service_account_key : ${{ secrets.GKE_TEST_SA_KEY }}
255
+ export_default_credentials : true
256
+
257
+ - name : Prep Test Results For GCS
258
+ if : always()
259
+ run : |
260
+ python tools/bin/prep_test_results_for_gcs.py --json connectors_base_results.json
261
+
262
+ - name : Upload Test Results to GCS
263
+ if : always()
264
+ run : |
265
+ gcs_bucket_name="dev-ab-ci-run-results"
266
+ filename=$(echo "${{ fromJSON( steps.connectors-test-results.outputs.json ).check_url }}" | sed 's@.*/@@')
267
+ echo "$filename"
268
+ gsutil -h "Cache-Control:public" cp connectors_base_results.jsonl "gs://$gcs_bucket_name/$filename.jsonl"
269
+
238
270
- name : Generate Test Report
239
271
uses : dorny/test-reporter@v1
240
272
if : always()
@@ -522,6 +554,42 @@ jobs:
522
554
- name : Automatic Migration Acceptance Test
523
555
run : SUB_BUILD=PLATFORM ./gradlew :airbyte-tests:automaticMigrationAcceptanceTest --scan -i
524
556
557
+ - uses : actions/setup-python@v2
558
+ if : always()
559
+ with :
560
+ python-version : " 3.9"
561
+
562
+ - name : Publish Platform Test Results
563
+ uses : EnricoMi/publish-unit-test-result-action@v2
564
+ id : platform-results
565
+ if : always()
566
+ with :
567
+ junit_files : " /actions-runner/_work/airbyte/airbyte/*/build/test-results/*/*.xml\n /actions-runner/_work/airbyte/airbyte/*/*/build/test-results/*/*.xml"
568
+ comment_mode : off
569
+ json_file : platform_results.json
570
+ json_test_case_results : true
571
+ check_name : " Platform Test Results"
572
+
573
+ - name : Setup Cloud SDK
574
+ if : always()
575
+ uses : google-github-actions/setup-gcloud@v0
576
+ with :
577
+ service_account_key : ${{ secrets.GKE_TEST_SA_KEY }}
578
+ export_default_credentials : true
579
+
580
+ - name : Prep Test Results For GCS
581
+ if : always()
582
+ run : |
583
+ python tools/bin/prep_test_results_for_gcs.py --json platform_results.json
584
+
585
+ - name : Upload Test Results to GCS
586
+ if : always()
587
+ run : |
588
+ gcs_bucket_name="dev-ab-ci-run-results"
589
+ filename=$(echo "${{ fromJSON( steps.platform-results.outputs.json ).check_url }}" | sed 's@.*/@@')
590
+ echo "$filename"
591
+ gsutil -h "Cache-Control:public" cp platform_results.jsonl "gs://$gcs_bucket_name/$filename.jsonl"
592
+
525
593
- name : Generate Test Report
526
594
uses : dorny/test-reporter@v1
527
595
if : always() # run this step even if previous step failed
@@ -541,15 +609,6 @@ jobs:
541
609
key : ${{ secrets.BUILDPULSE_ACCESS_KEY_ID }}
542
610
secret : ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }}
543
611
544
- - name : Upload test results to Github for analysis
545
- if : ' !cancelled()' # Run this step even when the tests fail. Skip if the workflow is cancelled.
546
- uses : actions/upload-artifact@v3
547
- with :
548
- path : |
549
- /actions-runner/_work/airbyte/airbyte/*/build/test-results/*/*.xml
550
- /actions-runner/_work/airbyte/airbyte/*/*/build/test-results/*/*.xml
551
- name : test-results-build
552
-
553
612
# In case of self-hosted EC2 errors, remove this block.
554
613
stop-platform-build-runner :
555
614
name : " Platform: Stop Build EC2 Runner"
@@ -681,6 +740,41 @@ jobs:
681
740
run : |
682
741
CI=true IS_MINIKUBE=true ./tools/bin/acceptance_test_kube.sh
683
742
743
+ - uses : actions/setup-python@v2
744
+ with :
745
+ python-version : " 3.9"
746
+
747
+ - name : Publish Kube Test Results
748
+ id : kube-results
749
+ uses : EnricoMi/publish-unit-test-result-action@v2
750
+ if : always()
751
+ with :
752
+ junit_files : " /actions-runner/_work/airbyte/airbyte/*/build/test-results/*/*.xml\n /actions-runner/_work/airbyte/airbyte/*/*/build/test-results/*/*.xml"
753
+ comment_mode : off
754
+ json_file : kube_results.json
755
+ json_test_case_results : true
756
+ check_name : " Kube Test Results"
757
+
758
+ - name : Setup Cloud SDK
759
+ if : always()
760
+ uses : google-github-actions/setup-gcloud@v0
761
+ with :
762
+ service_account_key : ${{ secrets.GKE_TEST_SA_KEY }}
763
+ export_default_credentials : true
764
+
765
+ - name : Prep Test Results For GCS
766
+ if : always()
767
+ run : |
768
+ python tools/bin/prep_test_results_for_gcs.py --json kube_results.json
769
+
770
+ - name : Upload Test Results to GCS
771
+ if : always()
772
+ run : |
773
+ gcs_bucket_name="dev-ab-ci-run-results"
774
+ filename=$(echo "${{ fromJSON( steps.kube-results.outputs.json ).check_url }}" | sed 's@.*/@@')
775
+ echo "$filename"
776
+ gsutil -h "Cache-Control:public" cp kube_results.jsonl "gs://$gcs_bucket_name/$filename.jsonl"
777
+
684
778
- name : Generate Test Report
685
779
uses : dorny/test-reporter@v1
686
780
if : always() # run this step even if previous step failed
@@ -699,20 +793,13 @@ jobs:
699
793
key : ${{ secrets.BUILDPULSE_ACCESS_KEY_ID }}
700
794
secret : ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }}
701
795
702
- - name : Upload test results to Github for analysis
703
- if : ' !cancelled()' # Run this step even when the tests fail. Skip if the workflow is cancelled.
704
- uses : actions/upload-artifact@v3
705
- with :
706
- path : |
707
- /actions-runner/_work/airbyte/airbyte/*/build/test-results/*/*.xml
708
- /actions-runner/_work/airbyte/airbyte/*/*/build/test-results/*/*.xml
709
- name : test-results-kube
710
-
711
796
- uses : actions/upload-artifact@v2
712
797
if : failure()
713
798
with :
714
799
name : Kubernetes Logs
715
800
path : /tmp/kubernetes_logs/*
801
+
802
+
716
803
# In case of self-hosted EC2 errors, remove this block.
717
804
stop-kube-acceptance-test-runner :
718
805
name : " Platform: Stop Kube Acceptance Test EC2 Runner"
@@ -859,13 +946,6 @@ jobs:
859
946
# SECRET_STORE_GCP_PROJECT_ID: ${{ secrets.SECRET_STORE_GCP_PROJECT_ID }}
860
947
# run: |
861
948
# CI=true IS_MINIKUBE=true ./tools/bin/acceptance_test_kube_helm.sh
862
- # - name: Generate Test Report
863
- # uses: dorny/test-reporter@v1
864
- # if: always() # run this step even if previous step failed
865
- # with:
866
- # name: Platform Helm E2E Test Report
867
- # path: '/actions-runner/_work/airbyte/airbyte/*/build/test-results/*/*.xml'
868
- # reporter: java-junit
869
949
#
870
950
# - uses: actions/upload-artifact@v2
871
951
# if: failure()
0 commit comments