Skip to content

ci: add package check and address native warning - #109

Merged
cpsievert merged 3 commits into
mainfrom
fix/sandbox-check-warning
Aug 13, 2026
Merged

ci: add package check and address native warning#109
cpsievert merged 3 commits into
mainfrom
fix/sandbox-check-warning

Conversation

@cpsievert

@cpsievert cpsievert commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Why this matters

This repository did not previously run R CMD check in GitHub Actions. The first commit adds that general package gate, and its initial Linux run exposes an existing compiled-code warning from the sandbox capability probe. The following commits remove that warning and stabilize snapshots against a new DuckDB startup notice.

What changes

  • Add a Linux R CMD check workflow for the package suite.
  • Preserve the probe child's process-wide termination semantics with SYS_exit_group, avoiding the libc _exit symbol that the compiled-code scan flags.
  • Choose DuckDB's temporary test storage home explicitly, preventing its version 1.5.5 startup announcement from changing error snapshots.

Stacked follow-up

#107 is stacked on this PR. It introduces the browser-test helper, adds COMMONS_SKIP_BROWSER_TESTS=true to the inherited package-check workflow, and runs those browser tests in its own dedicated workflow. This PR deliberately contains no citation-specific browser-test policy.

Verification

  • The workflow-only commit reproduced the _exit warning on Ubuntu.
  • The subsequent run reported checking compiled code ... OK.
  • Rscript -e 'devtools::test(filter = "commons")' passed all affected snapshot assertions locally; its three remaining failures are the known local macOS FTS extension-download block.\n- The previous fresh Linux run passed the package check, deploy, and pkgdown workflows; this branch rewrite has triggered the final standalone rerun.

@cpsievert
cpsievert requested a lite review from Copilot August 13, 2026 00:56
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown

Preview deployed to Connect (dogfood.team.pct.posit.it): https://dogfood.team.pct.posit.it/connect/#/apps/d7a36cae-8f27-448b-a478-61b81fbe3942/draft/360764

Deployed from commit 71be570.

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown

Preview deployed to Connect (connect.staging.pct.posit.it): https://connect.staging.pct.posit.it/connect/#/apps/ad662e1b-5048-4acc-9ad7-f9478c92274e/draft/1759

Deployed from commit 71be570.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Linux sandbox capability probe to avoid R CMD check “compiled-code” warnings by removing the _exit symbol from the forked child path, while preserving the same throwaway child-process behavior used to test user namespace support.

Changes:

  • Added a small helper (exit_probe_child()) that terminates the probe child via syscall(SYS_exit, status).
  • Switched the c_sandbox_capabilities() fork-child exit path from _exit(...) to the new helper.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cpsievert
cpsievert marked this pull request as ready for review August 13, 2026 00:58
@cpsievert
cpsievert force-pushed the fix/sandbox-check-warning branch from 1ef1d87 to 16de2c3 Compare August 13, 2026 01:05
@cpsievert cpsievert changed the title fix: avoid compiled-code check warning ci: add package check and address native warning Aug 13, 2026
@cpsievert
cpsievert force-pushed the fix/sandbox-check-warning branch from dd1ff3b to 71be570 Compare August 13, 2026 01:23

@simonpcouch simonpcouch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems reasonable, thanks!

@cpsievert
cpsievert merged commit 70fe875 into main Aug 13, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown

Cleaned up 5 preview bundle(s) on https://dogfood.team.pct.posit.it: 360754, 360755, 360759, 360760, 360764

@github-actions

Copy link
Copy Markdown

Cleaned up 5 preview bundle(s) on https://connect.staging.pct.posit.it: 1752, 1753, 1755, 1756, 1759

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.

3 participants