Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Pull Request

The lockfile creation test writes to the filesystem, which fails on CRAN due to restricted /tmp access.

Added testthat::skip_on_cran() to the first test in test-module_session_info.R that creates and verifies the teal_app.lock file. The second test (verifies file non-creation) remains unchanged as it doesn't require write access.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cloud.r-project.org
    • Triggering command: /opt/R/4.5.2/lib/R/bin/exec/R /opt/R/4.5.2/lib/R/bin/exec/R --vanilla --quiet -e install.packages('devtools',~+~repos='REDACTED',~+~quiet=TRUE) (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Skip test on CRAN</issue_title>
<issue_description>### Feature description

autovalidate team suggested that we skip this test because the pipeline doesn't have access to /tmp folder.

testthat::describe("srv_session_info lockfile", {
testthat::it(paste0(
"creation process is invoked for teal.lockfile.mode = \"enabled\" ",
"and snapshot is copied to teal_app.lock and removed after session ended"
), {
testthat::skip_if_not_installed("mirai")
testthat::skip_if_not_installed("renv")
withr::with_options(
list(teal.lockfile.mode = "enabled"),
{
renv_filename <- "teal_app.lock"
shiny::testServer(
app = srv_session_info,
args = list(id = "test"),
expr = {
iter <- 1
while (!file.exists(renv_filename) && iter <= 1000) {
Sys.sleep(0.5)
iter <- iter + 1 # max wait time is 500 seconds
}
testthat::expect_true(file.exists(renv_filename))
}
)
testthat::expect_false(file.exists(renv_filename))
}
)
})

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: m7pr <133694481+m7pr@users.noreply.github.com>
Copilot AI changed the title [WIP] Skip test on CRAN due to /tmp access issue Skip lockfile test on CRAN Jan 19, 2026
Copilot AI requested a review from m7pr January 19, 2026 09:21
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.

Skip test on CRAN

2 participants