Skip to content

GH-49529: [R] CI job shows NOTE due to "non-API call" Rf_findVarInFrame#49530

Open
thisisnic wants to merge 2 commits intoapache:mainfrom
thisisnic:GH-49529-non-api
Open

GH-49529: [R] CI job shows NOTE due to "non-API call" Rf_findVarInFrame#49530
thisisnic wants to merge 2 commits intoapache:mainfrom
thisisnic:GH-49529-non-api

Conversation

@thisisnic
Copy link
Member

@thisisnic thisisnic commented Mar 17, 2026

Rationale for this change

CI job shows NOTE due to "non-API call" Rf_findVarInFrame

What changes are included in this PR?

Remove non-API calls to doesn't come up on CRAN notes

Are these changes tested?

I'll do some CI testing

Are there any user-facing changes?

No

AI use

Basically all of this, with Claude Opus 4.5 but I did ask multiple questions on the reasoning behind the changes and alternatives - don't understand 100% but looks reasonable to me

#define ARROW_R_DCHECK(EXPR)
#endif

#if (R_VERSION < R_Version(3, 5, 0))
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed this dead code as we're not supporting such old R versions any more

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Mar 17, 2026
@thisisnic
Copy link
Member Author

@github-actions crossbow submit test-r-linux-sanitizers

@thisisnic
Copy link
Member Author

Testing with the sanitizer job as it's the only place I've seen this pop up (I think it just has a newer version of R-devel)

@thisisnic thisisnic marked this pull request as ready for review March 17, 2026 10:03
@thisisnic thisisnic requested a review from jonkeane as a code owner March 17, 2026 10:03
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Mar 17, 2026
@github-actions
Copy link

Revision: 2e1f1df

Submitted crossbow builds: ursacomputing/crossbow @ actions-a98e5d04ad

Task Status
test-r-linux-sanitizers GitHub Actions

@thisisnic
Copy link
Member Author

thisisnic commented Mar 17, 2026

I think this is good now - CI failure on that job is unrelated and due to some stringi weirdness.

Before, we get the note:
https://github.com/ursacomputing/crossbow/actions/runs/23173070742/job/67329183522#step:5:23703

After, we don't:
https://github.com/ursacomputing/crossbow/actions/runs/23188788230/job/67379065538#step:5:23710

@jonkeane
Copy link
Member

Do you we need (and maybe already have, I'm on mobile so haven't searched!) an issue for that stringi issue?

Copy link
Member

@jonkeane jonkeane left a comment

Choose a reason for hiding this comment

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

This looks good if CI passes, one question (that might be ill-informed, I'm on my phone right now!)

SEXP xp = Rf_findVarInFrame(self, arrow::r::symbols::xp);
if (xp == R_NilValue) {
#endif
if (xp == R_UnboundValue || xp == R_NilValue) {
Copy link
Member

Choose a reason for hiding this comment

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

Do you know why we need to add the xp == R_UnboundValue here? That's new right?

Copy link
Member Author

Choose a reason for hiding this comment

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

My understanding is because the call to R_getVarEx() returns R_UnboundValue if it doesn't return anything for xp[1]

[1] r-devel/r-svn@29a2fda#diff-5272e85b221848a45cc500d6792e9aba179ddbbaa817e48757b686deead11245R2274-R2294

@github-actions github-actions bot added awaiting merge Awaiting merge awaiting changes Awaiting changes and removed awaiting change review Awaiting change review awaiting merge Awaiting merge labels Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants