Repository navigation
GH-41806: [GLib][CI] Use vcpkg for C++ dependencies when building GLib libraries with MSVC - #41839
Conversation
|
|
kou
left a comment
There was a problem hiding this comment.
I think that GitHub packages based cache is OK.
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
13dc7d4 to
333542c
Compare
|
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: 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. |
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
|
@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) |
|
Sorry. I missed this. I've merged. |
|
👍 thanks |
|
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. |
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:

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.