3030 runs-on : ubuntu-22.04
3131 needs : changes
3232 container :
33- image : prestodb/presto-native-dependency:0.296-20251021214746-7eb2686
33+ image : prestodb/presto-native-dependency:0.297-202512180933-75d7d4ea
3434 concurrency :
3535 group : ${{ github.workflow }}-prestocpp-linux-build-test-${{ github.event.pull_request.number }}
3636 cancel-in-progress : true
@@ -135,7 +135,10 @@ jobs:
135135 needs : [changes, prestocpp-linux-build-for-test]
136136 runs-on : ubuntu-22.04
137137 container :
138- image : prestodb/presto-native-dependency:0.296-20251021214746-7eb2686
138+ image : prestodb/presto-native-dependency:0.297-202512180933-75d7d4ea
139+ volumes :
140+ - /usr:/host_usr
141+ - /opt:/host_opt
139142 env :
140143 MAVEN_OPTS : -Xmx4G -XX:+ExitOnOutOfMemoryError
141144 MAVEN_FAST_INSTALL : -B -V --quiet -T 1C -DskipTests -Dair.check.skip-all -Dmaven.javadoc.skip=true
@@ -156,6 +159,23 @@ jobs:
156159 # it doesn't work
157160 run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
158161
162+ # We cannot use the github action to free disk space from the runner
163+ # because we are in the container and not on the runner anymore.
164+ - name : Free Disk Space
165+ run : |
166+ # Re-used from free-disk-space github action.
167+ getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
168+ # Show before
169+ echo "Original available disk space: " $(getAvailableSpace)
170+ # Remove DotNet.
171+ rm -rf /host_usr/share/dotnet || true
172+ # Remove android
173+ rm -rf /host_usr/local/lib/android || true
174+ # Remove CodeQL
175+ rm -rf /host_opt/hostedtoolcache/CodeQL || true
176+ # Show after
177+ echo "New available disk space: " $(getAvailableSpace)
178+
159179 - name : Download artifacts
160180 if : |
161181 github.event_name == 'schedule' || needs.changes.outputs.codechange == 'true'
@@ -201,14 +221,19 @@ jobs:
201221 github.event_name == 'schedule' || needs.changes.outputs.codechange == 'true'
202222 run : |
203223 export PRESTO_SERVER_PATH="${GITHUB_WORKSPACE}/presto-native-execution/_build/release/presto_cpp/main/presto_server"
204- export TESTFILES=`find ./presto-native-execution/src/test -type f -name 'TestPrestoNative*.java'`
224+ # Find TestPrestoNative*.java files and iceberg test files
225+ export TESTFILES=$(find ./presto-native-execution/src/test -type f -name 'TestPrestoNative*.java'; find ./presto-native-execution/src/test/java/com/facebook/presto/nativeworker/iceberg -type f -name '*.java')
205226 # Convert file paths to comma separated class names
206227 export TESTCLASSES=
207228 for test_file in $TESTFILES
208229 do
209230 tmp=${test_file##*/}
210231 test_class=${tmp%%\.*}
211- export TESTCLASSES="${TESTCLASSES},$test_class"
232+ # Exclude CTE tests as they can fail with unknown functions.
233+ # Issue https://github.com/prestodb/presto/issues/26827.
234+ if [[ ! "$test_class" =~ ^TestPrestoNativeCte\.* ]]; then
235+ export TESTCLASSES="${TESTCLASSES},$test_class"
236+ fi
212237 done
213238 export TESTCLASSES=${TESTCLASSES#,}
214239 echo "TESTCLASSES = $TESTCLASSES"
@@ -235,7 +260,10 @@ jobs:
235260 storage-format : [PARQUET, DWRF]
236261 enable-sidecar : [true, false]
237262 container :
238- image : prestodb/presto-native-dependency:0.296-20251021214746-7eb2686
263+ image : prestodb/presto-native-dependency:0.297-202512180933-75d7d4ea
264+ volumes :
265+ - /usr:/host_usr
266+ - /opt:/host_opt
239267 env :
240268 MAVEN_OPTS : -Xmx4G -XX:+ExitOnOutOfMemoryError
241269 MAVEN_FAST_INSTALL : -B -V --quiet -T 1C -DskipTests -Dair.check.skip-all -Dmaven.javadoc.skip=true
@@ -256,6 +284,23 @@ jobs:
256284 # it doesn't work
257285 run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
258286
287+ # We cannot use the github action to free disk space from the runner
288+ # because we are in the container and not on the runner anymore.
289+ - name : Free Disk Space
290+ run : |
291+ # Re-used from free-disk-space github action.
292+ getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
293+ # Show before
294+ echo "Original available disk space: " $(getAvailableSpace)
295+ # Remove DotNet.
296+ rm -rf /host_usr/share/dotnet || true
297+ # Remove android
298+ rm -rf /host_usr/local/lib/android || true
299+ # Remove CodeQL
300+ rm -rf /host_opt/hostedtoolcache/CodeQL || true
301+ # Show after
302+ echo "New available disk space: " $(getAvailableSpace)
303+
259304 - name : Download artifacts
260305 if : |
261306 github.event_name == 'schedule' || needs.changes.outputs.codechange == 'true'
@@ -343,7 +388,10 @@ jobs:
343388 group : ${{ github.workflow }}-prestocpp-linux-presto-on-spark-e2e-tests-${{ matrix.storage-format }}-${{ matrix.enable-sidecar }}-${{ github.event.pull_request.number }}
344389 cancel-in-progress : true
345390 container :
346- image : prestodb/presto-native-dependency:0.296-20251021214746-7eb2686
391+ image : prestodb/presto-native-dependency:0.297-202512180933-75d7d4ea
392+ volumes :
393+ - /usr:/host_usr
394+ - /opt:/host_opt
347395 env :
348396 MAVEN_OPTS : -Xmx4G -XX:+ExitOnOutOfMemoryError
349397 MAVEN_FAST_INSTALL : -B -V --quiet -T 1C -DskipTests -Dair.check.skip-all -Dmaven.javadoc.skip=true
@@ -364,6 +412,23 @@ jobs:
364412 # it doesn't work
365413 run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
366414
415+ # We cannot use the github action to free disk space from the runner
416+ # because we are in the container and not on the runner anymore.
417+ - name : Free Disk Space
418+ run : |
419+ # Re-used from free-disk-space github action.
420+ getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
421+ # Show before
422+ echo "Original available disk space: " $(getAvailableSpace)
423+ # Remove DotNet.
424+ rm -rf /host_usr/share/dotnet || true
425+ # Remove android
426+ rm -rf /host_usr/local/lib/android || true
427+ # Remove CodeQL
428+ rm -rf /host_opt/hostedtoolcache/CodeQL || true
429+ # Show after
430+ echo "New available disk space: " $(getAvailableSpace)
431+
367432 - name : Download artifacts
368433 if : |
369434 github.event_name == 'schedule' || needs.changes.outputs.codechange == 'true'
@@ -436,7 +501,10 @@ jobs:
436501 needs : [changes, prestocpp-linux-build-for-test]
437502 runs-on : ubuntu-22.04
438503 container :
439- image : prestodb/presto-native-dependency:0.296-20251021214746-7eb2686
504+ image : prestodb/presto-native-dependency:0.297-202512180933-75d7d4ea
505+ volumes :
506+ - /usr:/host_usr
507+ - /opt:/host_opt
440508 concurrency :
441509 group : ${{ github.workflow }}-prestocpp-linux-presto-sidecar-tests-${{ github.event.pull_request.number }}
442510 cancel-in-progress : true
@@ -459,6 +527,23 @@ jobs:
459527 # it doesn't work
460528 run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
461529
530+ # We cannot use the github action to free disk space from the runner
531+ # because we are in the container and not on the runner anymore.
532+ - name : Free Disk Space
533+ run : |
534+ # Re-used from free-disk-space github action.
535+ getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
536+ # Show before
537+ echo "Original available disk space: " $(getAvailableSpace)
538+ # Remove DotNet.
539+ rm -rf /host_usr/share/dotnet || true
540+ # Remove android
541+ rm -rf /host_usr/local/lib/android || true
542+ # Remove CodeQL
543+ rm -rf /host_opt/hostedtoolcache/CodeQL || true
544+ # Show after
545+ echo "New available disk space: " $(getAvailableSpace)
546+
462547 - name : Download artifacts
463548 if : |
464549 github.event_name == 'schedule' || needs.changes.outputs.codechange == 'true'
@@ -528,7 +613,10 @@ jobs:
528613 needs : [changes, prestocpp-linux-build-for-test]
529614 runs-on : ubuntu-22.04
530615 container :
531- image : prestodb/presto-native-dependency:0.296-20251021214746-7eb2686
616+ image : prestodb/presto-native-dependency:0.297-202512180933-75d7d4ea
617+ volumes :
618+ - /usr:/host_usr
619+ - /opt:/host_opt
532620 concurrency :
533621 group : ${{ github.workflow }}-prestocpp-linux-presto-plan-checker-router-plugin-tests-${{ github.event.pull_request.number }}
534622 cancel-in-progress : true
@@ -551,6 +639,23 @@ jobs:
551639 # it doesn't work
552640 run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
553641
642+ # We cannot use the github action to free disk space from the runner
643+ # because we are in the container and not on the runner anymore.
644+ - name : Free Disk Space
645+ run : |
646+ # Re-used from free-disk-space github action.
647+ getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
648+ # Show before
649+ echo "Original available disk space: " $(getAvailableSpace)
650+ # Remove DotNet.
651+ rm -rf /host_usr/share/dotnet || true
652+ # Remove android
653+ rm -rf /host_usr/local/lib/android || true
654+ # Remove CodeQL
655+ rm -rf /host_opt/hostedtoolcache/CodeQL || true
656+ # Show after
657+ echo "New available disk space: " $(getAvailableSpace)
658+
554659 - name : Download artifacts
555660 if : |
556661 github.event_name == 'schedule' || needs.changes.outputs.codechange == 'true'
0 commit comments