@@ -2,13 +2,6 @@ name: Pull Request trigger
22
33on :
44 pull_request :
5- workflow_dispatch :
6- inputs :
7- components :
8- description : ' Components to test (comma-separated: dbt, spark_dataproc, hive_dataproc, dataplex, scenarios, or "all")'
9- required : false
10- default : ' all'
11- type : string
125
136
147permissions :
@@ -56,46 +49,19 @@ jobs:
5649 fi
5750 }
5851
59- check_component() {
60- local component=$1
61- local output=$2
62- if [[ "$COMPONENTS" == "all" ]] || echo "$COMPONENTS" | grep -qw "$component"; then
63- echo "$output=true" >> $GITHUB_OUTPUT
64- echo "true"
65- fi
66- }
67-
68- # Handle workflow_dispatch (manual trigger)
69- if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
70- COMPONENTS="${{ github.event.inputs.components }}"
71- echo "Manual trigger - testing components: $COMPONENTS"
52+ CHANGED_FILES=$(gh pr diff ${{ github.event.pull_request.number }} --name-only)
53+ if [[ -n "$CHANGED_FILES" ]]; then
54+ echo "changes=$(echo "$CHANGED_FILES" | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
7255
73- scenarios=$(check_component " scenarios" "scenarios_changed")
74- dataplex=$(check_component " dataplex" "dataplex_changed")
75- spark_dataproc=$(check_component " spark_dataproc" "spark_dataproc_changed")
76- hive_dataproc=$(check_component " hive_dataproc" "hive_dataproc_changed")
77- dbt=$(check_component " dbt" "dbt_changed")
56+ scenarios=$(check_path "consumer/ scenarios/ " "scenarios_changed")
57+ dataplex=$(check_path "consumer/consumers/ dataplex/ " "dataplex_changed")
58+ spark_dataproc=$(check_path "producer/ spark_dataproc/ " "spark_dataproc_changed")
59+ hive_dataproc=$(check_path "producer/ hive_dataproc/ " "hive_dataproc_changed")
60+ dbt=$(check_path "producer/ dbt/ " "dbt_changed")
7861
7962 if [[ $scenarios || $dataplex || $spark_dataproc || $hive_dataproc || $dbt ]]; then
8063 echo "any_changed=true" >> $GITHUB_OUTPUT
8164 fi
82-
83- # Handle pull_request (PR trigger)
84- else
85- CHANGED_FILES=$(gh pr diff ${{ github.event.pull_request.number }} --name-only)
86- if [[ -n "$CHANGED_FILES" ]]; then
87- echo "changes=$(echo "$CHANGED_FILES" | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
88-
89- scenarios=$(check_path "consumer/scenarios/" "scenarios_changed")
90- dataplex=$(check_path "consumer/consumers/dataplex/" "dataplex_changed")
91- spark_dataproc=$(check_path "producer/spark_dataproc/" "spark_dataproc_changed")
92- hive_dataproc=$(check_path "producer/hive_dataproc/" "hive_dataproc_changed")
93- dbt=$(check_path "producer/dbt/" "dbt_changed")
94-
95- if [[ $scenarios || $dataplex || $spark_dataproc || $hive_dataproc || $dbt ]]; then
96- echo "any_changed=true" >> $GITHUB_OUTPUT
97- fi
98- fi
9965 fi
10066 env :
10167 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -207,10 +173,7 @@ jobs:
207173 if : ${{ !failure() && needs.initialize_workflow.outputs.any_run == 'true'}}
208174 uses : ./.github/workflows/collect_and_compare_reports.yml
209175 with :
210- # Temporarily disabled for dbt producer feature branch testing
211- # New dbt results are expected failures compared to main branch baseline
212- # TODO: Re-enable after merge to main or accept dbt custom facet warnings
213- fail-for-new-failures : false
176+ fail-for-new-failures : true
214177
215178 generate-compatibility-tables :
216179 needs :
0 commit comments