@@ -161,7 +161,7 @@ jobs:
161161 key : extra-${{ matrix.image }}-${{ hashFiles('cpp/**') }}
162162 restore-keys : extra-${{ matrix.image }}-
163163 - name : Setup Python
164- uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6 .0
164+ uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0 .0
165165 with :
166166 python-version : 3
167167 - name : Setup Archery
@@ -278,3 +278,60 @@ jobs:
278278 cmake --build cpp/examples/minimal_build.build
279279 cd cpp/examples/minimal_build
280280 ../minimal_build.build/arrow-example
281+
282+ report-extra-cpp :
283+ runs-on : ubuntu-latest
284+ needs :
285+ - docker
286+ - jni-macos
287+ # We don't have the job id as part of the context neither the job name.
288+ # The GitHub API exposes numeric id or job name but not the github.job (report-extra-cpp).
289+ # We match github.job to the name so we can pass it via context in order to be ignored on the report.
290+ # The job is still running.
291+ name : ${{ github.job }}
292+ if : github.event_name == 'schedule' && always()
293+ steps :
294+ - name : Checkout Arrow
295+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
296+ with :
297+ fetch-depth : 0
298+ - name : Setup Python
299+ uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
300+ with :
301+ python-version : 3
302+ - name : Setup Archery
303+ run : python3 -m pip install -e dev/archery[crossbow]
304+ - name : Prepare common options
305+ run : |
306+ if [ "${GITHUB_REPOSITORY}" = "apache/arrow" ]; then
307+ echo "COMMON_OPTIONS=--send" >> "${GITHUB_ENV}"
308+ else
309+ echo "COMMON_OPTIONS=--dry-run" >> "${GITHUB_ENV}"
310+ fi
311+ - name : Send email
312+ env :
313+ GH_TOKEN : ${{ github.token }}
314+ SMTP_PASSWORD : ${{ secrets.ARROW_SMTP_PASSWORD }}
315+ run : |
316+ archery ci report-email \
317+ --ignore ${{ github.job }} \
318+ --recipient-email '[email protected] ' \ 319+ --repository ${{ github.repository }} \
320+ --sender-email '[email protected] ' \ 321+ --sender-name Arrow \
322+ --smtp-port 587 \
323+ --smtp-server 'commit-email.info' \
324+ --smtp-user arrow \
325+ ${COMMON_OPTIONS} \
326+ ${{ github.run_id }}
327+ - name : Send chat message
328+ if : always()
329+ env :
330+ GH_TOKEN : ${{ github.token }}
331+ CHAT_WEBHOOK : ${{ secrets.ARROW_ZULIP_WEBHOOK }}
332+ run : |
333+ archery ci report-chat \
334+ --ignore ${{ github.job }} \
335+ --repository ${{ github.repository }} \
336+ ${COMMON_OPTIONS} \
337+ ${{ github.run_id }}
0 commit comments