Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up build: unnecessary invalidation in the incremental recompile mode [databricks] #9698

Merged
merged 30 commits into from
Nov 17, 2023

Conversation

gerashegalov
Copy link
Collaborator

@gerashegalov gerashegalov commented Nov 14, 2023

Fixes #9691

This PR aims at reducing unnecessary IncrementalCompiler output invalidations due to jar updates

  • Update build info only when the HEAD revision changes, or on clean
  • Produce the final aggregator jar only if the shade plugin output changed
  • Skip generating META-INF/ShimServiceProvider if already exists
  • It was not breaking anything but it does not make sense to have -Xsource:2.13 in the 2.12 build
  • Replace skip by maven.scaladoc.skip in docs and scripts as a follow up to Bloop updates - require JDK11 in buildall + docs, build bloop for all targets. #9615
  • fix binary-dedupe to not look outside the target/parallel-world dir
  • optional skip for unpack of nightly dependencies, need a general caching solution

Repeated executions

Wall Clock pre-PR Wall Clock post-PR Maven command
01:10 min 13.004 s mvn package -pl tests -am -Dbuildver=330 \
-Dmaven.scaladoc.skip -DskipTests
01:23 min 25.801 s mvn package -pl tests -am -Dbuildver=330 \
-Dmaven.scaladoc.skip -Dsuffixes=rapids.CastOpSuite \
-Dtests='Cast from string to timestamp'
01:30 min 30.00 s mvn package -Dbuildver=330 \
-Ddist.jar.compress=false -DskipTests -Dmaven.scaladoc.skip
48.769 s 19.253 s mvn -T1C package -pl dist -am -Dbuildver=330 \
-Ddist.jar.compress=false -DskipTests \
-Drapids.jni.unpack.skip=true

Signed-off-by: Gera Shegalov [email protected]

Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Follow up to NVIDIA#9615

Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
@gerashegalov gerashegalov added the build Related to CI / CD or cleanly building label Nov 14, 2023
@gerashegalov gerashegalov self-assigned this Nov 14, 2023
Signed-off-by: Gera Shegalov <[email protected]>
@gerashegalov
Copy link
Collaborator Author

build

@gerashegalov
Copy link
Collaborator Author

build

Signed-off-by: Gera Shegalov <[email protected]>
@gerashegalov
Copy link
Collaborator Author

build

Signed-off-by: Gera Shegalov <[email protected]>
@gerashegalov
Copy link
Collaborator Author

build

2 similar comments
@gerashegalov
Copy link
Collaborator Author

build

@gerashegalov
Copy link
Collaborator Author

build

pom.xml Outdated Show resolved Hide resolved
Signed-off-by: Gera Shegalov <[email protected]>
tests/README.md Outdated Show resolved Hide resolved
tests/README.md Outdated Show resolved Hide resolved
gerashegalov and others added 2 commits November 15, 2023 14:41
Signed-off-by: Gera Shegalov <[email protected]>
jlowe
jlowe previously approved these changes Nov 15, 2023
@gerashegalov
Copy link
Collaborator Author

build

1 similar comment
@gerashegalov
Copy link
Collaborator Author

build

- binary-dedupe should not look outside paralle-world directory
- when unpack is skipped we should restore jni from a staged dir

Signed-off-by: Gera Shegalov <[email protected]>
@gerashegalov
Copy link
Collaborator Author

build

1 similar comment
@gerashegalov
Copy link
Collaborator Author

build

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andygrove you have previously asked about different ScalaTest-related commands

@gerashegalov gerashegalov merged commit 30c3df3 into NVIDIA:branch-23.12 Nov 17, 2023
37 checks passed
@gerashegalov gerashegalov deleted the speedupBuildInfo branch November 17, 2023 00:15
NVnavkumar pushed a commit to NVnavkumar/spark-rapids that referenced this pull request Nov 18, 2023
…IDIA#9770)

Addendum to NVIDIA#9698 

Add `-f scala2.13` to the ScalaTest README

---------
Signed-off-by: Gera Shegalov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to CI / CD or cleanly building
Projects
None yet
2 participants