File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 6868 fail-fast : false
6969 matrix :
7070 include :
71- - connector : source-faker
71+ - connector : source-hardcoded-records
7272 cdk_extra : n/a
7373 - connector : source-shopify
7474 cdk_extra : n/a
@@ -141,14 +141,16 @@ jobs:
141141 json_output_file=$(find airbyte/airbyte-ci/connectors/pipelines/pipeline_reports -name 'output.json' -print -quit)
142142 job_output=$(cat ${json_output_file})
143143 success=$(echo ${job_output} | jq -r '.success')
144- failed_jobs =$(echo ${job_output} | jq -r '.failed_steps')
144+ failed_step =$(echo ${job_output} | jq -r '.failed_steps | select(length > 0) | .[0] // "None" ')
145145 run_duration=$(echo ${job_output} | jq -r '.run_duration')
146146 echo "## Job Output for ${{matrix.connector}}" >> $GITHUB_STEP_SUMMARY
147147 echo "- Success: ${success}" >> $GITHUB_STEP_SUMMARY
148148 echo "- Test Duration: $(printf "%.0f" ${run_duration})s" >> $GITHUB_STEP_SUMMARY
149- echo "- Failed Checks: ${failed_jobs}" >> $GITHUB_STEP_SUMMARY
149+ if [ "${success}" != "true" ]; then
150+ echo "- Failed Step: ${failed_step}" >> $GITHUB_STEP_SUMMARY
151+ fi
150152 echo -e "\n[Download Job Output](${{steps.upload_job_output.outputs.artifact-url}})" >> $GITHUB_STEP_SUMMARY
151153 if [ "${success}" != "true" ]; then
152- # Throw failure if tests failed
154+ echo "::error::Test failed for connector '${{ matrix.connector }}' on step '${failed_step}'. Check the logs for more details."
153155 exit 1
154156 fi
You can’t perform that action at this time.
0 commit comments