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

[Java][CI] Building C++ libraries on Ubuntu aarch64 job takes 3+ hours to complete in java-jars #457

Open
danepitkin opened this issue Jul 26, 2024 · 7 comments
Assignees
Labels
Type: enhancement New feature or request

Comments

@danepitkin
Copy link
Member

Describe the enhancement requested

Can we speed this up? Other OS/architectures take 10-30min.

See java-jars job in crossbow: https://github.com/ursacomputing/crossbow/actions/runs/9817940199/job/27109855273

Component(s)

Continuous Integration

@danepitkin danepitkin added the Type: enhancement New feature or request label Jul 26, 2024
@assignUser
Copy link
Member

assignUser commented Jul 26, 2024

It's the vcpkg builds. If you look at the time stamps arrow itself only takes 30 minutes. But llvm takes over an hour https://github.com/ursacomputing/crossbow/actions/runs/9817940199/job/27109855273#step:8:5926 and abseil half an hour etc.

I'd recommend adding vcpkg binary caching through the nuget backend like I did for other jobs: apache/arrow#13507

Docker complicates things a bit here, the easiest way is probably to mount the vcpkg directory so you don't have pass things into docker etc.?

@danepitkin
Copy link
Member Author

Thank you! I'll take a look at this.

@danepitkin danepitkin changed the title [CI] Building C++ libraries on Ubuntu aarch64 job takes 3+ hours to complete in java-jars [Java][CI] Building C++ libraries on Ubuntu aarch64 job takes 3+ hours to complete in java-jars Aug 1, 2024
@pitrou
Copy link
Member

pitrou commented Aug 8, 2024

You're building in release mode, and also building the C++ tests, which probably explains part of the build duration.

Also, in the JNI build you've linked to, the Arrow C++ build takes 25 minutes (from 12:05 to 12:30).

@danepitkin
Copy link
Member Author

I noticed the java-jars job is back down to ~30min. I wonder if someone fixed this already? See example here: apache/arrow#44023

@pitrou
Copy link
Member

pitrou commented Sep 11, 2024

@danepitkin It's just that in some cases the vcpkg step is successfully cached in the Docker image, and in some cases it's not.

There is an issue open to improve this: apache/arrow#43951

@pitrou
Copy link
Member

pitrou commented Dec 12, 2024

@danepitkin Is it relevant to keep this in the main apache/arrow repo, or should it be moved to arrow-java?

@kou
Copy link
Member

kou commented Dec 13, 2024

Let's move to apache/arrow-java.

@kou kou transferred this issue from apache/arrow Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants