Skip to content

Install binary dependencies on the windows-11-arm job - #1304

Merged
jgabry merged 1 commit into
v1.0from
arm-pak-devel
Oct 5, 2026
Merged

jgabry merged 1 commit into
v1.0from
arm-pak-devel

Conversation

@jgabry

@jgabry jgabry commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Submission Checklist

  • Run unit tests
  • Declare copyright holder and agree to license (see below)

Summary

The windows-11-arm job spends 27 of its ~110 minutes in setup-r-dependencies, building all 90 dependencies from source on every run (the other Windows jobs take about a minute there). I had Claude investigate and it found two causes:

The R build that setup-r installs on that runner is r-hub's
community build, patched to report the package type
windows.binary.clang-aarch64 and to use https://cran.r-universe.dev
as CRAN, which serves Windows ARM64 binaries under
bin/windows/clang-aarch64/ (all 89 of our CRAN dependencies are
there). The stable pak (0.11.1, July 22) predates pkgcache's support
for that package type (r-lib/pkgcache#142, merged July 30), so it only
sees src/contrib and resolves everything as source. pak devel has
the fix, so this sets pak-version: devel for that matrix entry only.

The restored package cache never helped because pkgdepends keeps an
installed source package only when its Repository field is "CRAN",
and r-universe tarballs say Repository: https://cran.r-universe.dev.
Binaries are checked on version and Built instead, which the cached
zips pass, so the cache should work after this change too.

Once a pak release includes the pkgcache change the entry can go back to stable. Related to #1025.

Copyright and Licensing

Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Jonah Gabry

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

The R build setup-r installs there reports the package type
windows.binary.clang-aarch64 and points CRAN at cran.r-universe.dev,
which serves ARM64 binaries under bin/windows/clang-aarch64. pak 0.11.1
(2026-07-22) only knows src/contrib for that type, pkgcache learned it
in r-lib/pkgcache#142 (2026-07-30), so the stable pak built all 90
dependencies from source, 27 minutes per run. The restored cache didn't
help either: pkgdepends keeps an installed source package only if its
Repository field is "CRAN", and r-universe tarballs say
"https://cran.r-universe.dev". Binaries take the Built-field check
instead, which the restored zips pass.
@codecov-commenter

codecov-commenter commented Oct 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v1.0@9ff10eb). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             v1.0    #1304   +/-   ##
=======================================
  Coverage        ?   93.92%           
=======================================
  Files           ?       19           
  Lines           ?     7322           
  Branches        ?        0           
=======================================
  Hits            ?     6877           
  Misses          ?      445           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jgabry
jgabry marked this pull request as ready for review October 5, 2026 15:58
@jgabry
jgabry merged commit 18124f3 into v1.0 Oct 5, 2026
18 checks passed
@jgabry
jgabry deleted the arm-pak-devel branch October 5, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants