Skip to content

Commit

Permalink
Adjust config for skipping a patch
Browse files Browse the repository at this point in the history
  • Loading branch information
revans2 committed Oct 14, 2024
1 parent 396eeb7 commit 3971af0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions ci/submodule-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ echo "Test against ${cudf_sha}..."
MVN="mvn -Dmaven.wagon.http.retryHandler.count=3 -B"
set +e
# Don't do a full build. Just try to update/build CUDF with no patches on top of it.
# calling the antrun directly skips applying patches and also only builds
# libcudf
${MVN} antrun:run@build-libcudf ${MVN_MIRROR} \
-DCPP_PARALLEL_LEVEL=${PARALLEL_LEVEL} \
-Dlibcudf.build.configure=true \
-Dlibcudf.dependency.mode=latest \
-Dsubmodule.patch.skip \
-DUSE_GDS=ON -Dtest=*,!CuFileTest,!CudaFatalTest,!ColumnViewNonEmptyNullsTest \
-DUSE_GDS=ON \
-DBUILD_TESTS=ON \
-DUSE_SANITIZER=ON
validate_status=$?
Expand Down
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<slf4j.version>1.7.30</slf4j.version>
<submodule.check.skip>false</submodule.check.skip>
<!-- This skips applying and unapplying patchs to CUDF. Be aware that if you
try to build the main jar without patching CUDF it could result in build
failures becasue the two often need to be in sync with each other. So use
at your own risk. -->
<submodule.patch.skip>false</submodule.patch.skip>
<antrun.version>3.0.0</antrun.version>
<hilbert.version>0.2.2</hilbert.version>
Expand Down Expand Up @@ -429,7 +433,7 @@
<id>build-libcudf</id>
<phase>validate</phase>
<configuration>
<target xmlns:if="ant:if" xmlns:unless="ant:unless">
<target xmlns:if="ant:if">
<condition property="needConfigure">
<or>
<istrue value="${libcudf.build.configure}"/>
Expand Down Expand Up @@ -466,8 +470,7 @@
</exec>
<exec dir="${libcudf.build.path}"
failonerror="true"
executable="cmake"
unless:true="${submodule.patch.skip}">
executable="cmake">
<arg value="--build"/>
<arg value="${libcudf.build.path}"/>
<arg value="--target"/>
Expand All @@ -484,7 +487,6 @@
<id>build-libcudfjni</id>
<phase>validate</phase>
<configuration>
<skip>${submodule.patch.skip}</skip>
<target>
<mkdir dir="${libcudfjni.build.path}"/>
<exec dir="${libcudfjni.build.path}"
Expand Down Expand Up @@ -520,7 +522,6 @@
<id>build-sparkrapidsjni</id>
<phase>validate</phase>
<configuration>
<skip>${submodule.patch.skip}</skip>
<target>
<mkdir dir="${native.build.path}"/>
<exec dir="${native.build.path}"
Expand Down Expand Up @@ -559,7 +560,6 @@
<id>build-info</id>
<phase>generate-resources</phase>
<configuration>
<skip>${submodule.patch.skip}</skip>
<target>
<mkdir dir="${project.build.directory}/extra-resources"/>
<exec executable="bash"
Expand Down

0 comments on commit 3971af0

Please sign in to comment.