Skip to content

GH-41806: [GLib][CI] Use vcpkg for C++ dependencies when building GLib libraries with MSVC - #41839

Merged
kou merged 12 commits into
apache:mainfrom
adamreeve:msvc_glib_vcpkg
Jun 2, 2024
Merged

kou merged 12 commits into
apache:mainfrom
adamreeve:msvc_glib_vcpkg

Conversation

@adamreeve

@adamreeve adamreeve commented May 27, 2024 •

Copy link
Copy Markdown
Contributor

Rationale for this change

This is more consistent as vcpkg is now used for both the Arrow C++ dependencies and GLib library dependencies, and also fixes building arrow-flight-glib and arrow-flight-sql-glib which previously failed due to a missing zlib dependency.

What changes are included in this PR?

Are these changes tested?

NA

Are there any user-facing changes?

No

Because GitHub packages is being used for caching, this will start creating GitHub packages that are visible in the main page of the Arrow GitHub repository by default. Eg. you can see them in the right panel on the crossbow repo which also runs tasks that use GitHub packages for vcpkg caching: https://github.com/ursacomputing/crossbow.

The Arrow repository doesn't currently publish any packages, so it would probably be best to hide these by default to avoid confusing users and adding unnecessary noise. Someone with admin privileges on the Arrow GitHub repository would need to click the cog on the home page and hide this section:
hide_packages

If this isn't desirable I could look into other ways of caching instead, eg. using a file based cache combined with GitHub actions cache action, or the experimental GitHub actions cache in vcpkg.

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #41806 has been automatically assigned in GitHub to PR creator.

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think that GitHub packages based cache is OK.

Comment thread .github/workflows/ruby.yml Resolved
Comment thread .github/workflows/ruby.yml Resolved
Comment thread cpp/cmake_modules/Usevcpkg.cmake Resolved
Comment thread .github/workflows/ruby.yml Resolved
Comment thread .github/workflows/ruby.yml Resolved
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
@adamreeve

Copy link
Copy Markdown
Contributor Author

The binary caching is failing in the CI builds for this PR but this is only because GitHub doesn't allow writing to the packages in a build for a PR from a fork (see https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token).

Eg. there are log lines like:

Uploading binaries for 'vcpkg-cmake-config:x64-windows' to 'NuGet' source "GitHub".
Pushing NuGet to "GitHub" failed. Use --debug for more information.
Stored binaries in 0 destinations in 1.9 s.

The caching does work when I tested it on my fork, eg. see https://github.com/adamreeve/arrow/actions/runs/9253178800/job/25452360216, where the "Build C++ VCPKG dependencies" step took 1 minute rather than 50.

Once this PR is merged to main then any PR builds should be able to read from the cache but won't be able to write to it.

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

Comment thread .github/workflows/ruby.yml Resolved
Comment thread .github/workflows/ruby.yml Resolved
@adamreeve

Copy link
Copy Markdown
Contributor Author

@kou is there anything more needed on this PR? There are a few CI failures after merging from main but these are also failing on main (the c_glib MinGW build and C++ ARM64 build) or look like a transient error (the appveyor build)

@kou
kou merged commit 44070eb into apache:main Jun 2, 2024
@kou

kou commented Jun 2, 2024

Copy link
Copy Markdown
Member

Sorry. I missed this. I've merged.

@adamreeve
adamreeve deleted the msvc_glib_vcpkg branch June 2, 2024 20:54
@adamreeve

Copy link
Copy Markdown
Contributor Author

👍 thanks

@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 44070eb.

There were 3 benchmark results indicating a performance regression:

The full Conbench report has more details. It also includes information about 6 possible false positives for unstable benchmarks that are known to sometimes produce them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants