Skip to content

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

Merged
thisisnic merged 2 commits into
apache:mainfrom
thisisnic:GH-49529-non-api
Mar 24, 2026
Merged

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

Conversation

@thisisnic

@thisisnic thisisnic commented Mar 17, 2026

Copy link
Copy Markdown
Member

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

Comment thread r/src/arrow_cpp11.h
#define ARROW_R_DCHECK(EXPR)
#endif

#if (R_VERSION < R_Version(3, 5, 0))

Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

@thisisnic

Copy link
Copy Markdown
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
Copy Markdown

Revision: 2e1f1df

Submitted crossbow builds: ursacomputing/crossbow @ actions-a98e5d04ad

Task Status
test-r-linux-sanitizers GitHub Actions

@thisisnic

thisisnic commented Mar 17, 2026

Copy link
Copy Markdown
Member Author

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
Copy Markdown
Member

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

@jonkeane jonkeane 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.

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

Comment thread r/src/arrow_cpp11.h
SEXP xp = Rf_findVarInFrame(self, arrow::r::symbols::xp);
if (xp == R_NilValue) {
#endif
if (xp == R_UnboundValue || xp == R_NilValue) {

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.

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

Copy link
Copy Markdown
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

@jonkeane

Copy link
Copy Markdown
Member

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

FYI, I have a PR up for this (#49581) though it's really an upstream issue

@thisisnic thisisnic merged commit ee7e210 into apache:main Mar 24, 2026
20 of 21 checks passed
@thisisnic thisisnic removed the awaiting changes Awaiting changes label Mar 24, 2026
thisisnic added a commit to thisisnic/arrow that referenced this pull request Mar 24, 2026
…rInFrame (apache#49530)

### 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

* GitHub Issue: apache#49529

Authored-by: Nic Crane <thisisnic@gmail.com>
Signed-off-by: Nic Crane <thisisnic@gmail.com>
@conbench-apache-arrow

Copy link
Copy Markdown

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

There were no benchmark performance regressions. 🎉

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

thisisnic added a commit to thisisnic/arrow that referenced this pull request Apr 6, 2026
…rInFrame (apache#49530)

### 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

* GitHub Issue: apache#49529

Authored-by: Nic Crane <thisisnic@gmail.com>
Signed-off-by: Nic Crane <thisisnic@gmail.com>
Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
…rInFrame (apache#49530)

### 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

* GitHub Issue: apache#49529

Authored-by: Nic Crane <thisisnic@gmail.com>
Signed-off-by: Nic Crane <thisisnic@gmail.com>
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