GH-49654: [R][CI] Add check for non-API calls onto existing r-devel job#49655
GH-49654: [R][CI] Add check for non-API calls onto existing r-devel job#49655thisisnic wants to merge 3 commits intoapache:mainfrom
Conversation
|
@github-actions crossbow submit test-r-linux-as-cran |
|
Revision: b13bedc Submitted crossbow builds: ursacomputing/crossbow @ actions-b88d947b45
|
dev/tasks/r/github.linux.cran.yml
Outdated
| - name: Check for non-API calls | ||
| run: | | ||
| if grep -q "non-API" arrow/r/check/arrow.Rcheck/00check.log; then | ||
| echo "Found non-API calls in R CMD check output:" | ||
| grep -A2 "non-API" arrow/r/check/arrow.Rcheck/00check.log | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
I'm fine with this, but I wonder if we actually want to have a NOTE scan here (and maybe ignore a handful of them like submission time, large components, and top-level files)?
── R CMD check results ────────────────────────────────── arrow 23.0.1.9000 ────
Duration: 6m 2.2s
❯ checking CRAN incoming feasibility ... [0s/0s] NOTE
Maintainer: ‘Jonathan Keane <jkeane@gmail.com>’
Version contains large components (23.0.1.9000)
❯ checking top-level files ... NOTE
Files ‘README.md’ or ‘NEWS.md’ cannot be checked without ‘pandoc’ being installed.
❯ checking compiled code ... NOTE
File ‘arrow/libs/arrow.so’:
Found non-API calls to R: ‘R_NamespaceRegistry’, ‘R_UnboundValue’
Compiled code should not call non-API entry points in R.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
There also might be flags we can use to turn those notes off BTW too. I have to grep the r source every time to get them, but claude might be able to do that for us?
|
@github-actions crossbow submit test-r-linux-as-cran |
|
Revision: 7a6fbf8 Submitted crossbow builds: ursacomputing/crossbow @ actions-50e40e7f7f
|
|
@github-actions crossbow submit test-r-linux-as-cran |
|
Revision: 88c7447 Submitted crossbow builds: ursacomputing/crossbow @ actions-c856b69e0d
|
|
@jonkeane - the output now look like this, what do you think? |
Rationale for this change
I wanna know when we get NOTEs about this so we don't need to wait til CRAN pings us
What changes are included in this PR?
Add check to r-devel jobs
Are these changes tested?
Those CI jobs should fail now
Are there any user-facing changes?
Nah