Skip to content

Commit 6fc2ce9

Browse files
bschilderclaude
andcommitted
Skip flaky external API tests on CI
GHA shared runners hit rate limits on GitHub API and CRAN logs API, and lack admin access for the traffic API. These tests work locally but fail intermittently on CI due to shared IP rate limiting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 256d154 commit 6fc2ce9

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

tests/testthat/test-github_metadata.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
test_that("github_metadata works", {
22

33
testthat::skip_if_offline()
4+
## GitHub API responses vary by auth level and IP-based rate limits
5+
testthat::skip_on_ci()
46

57
dt <- github_metadata(owner="RajLabMSSM",
68
repo="echolocatoR")

tests/testthat/test-r_repos.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ test_that("r_repos works", {
22

33
testthat::skip_if_offline()
44
testthat::skip_on_cran()
5+
## Heavy test that queries CRAN, Bioc, and GitHub APIs;
6+
## rate-limited on GHA shared runners.
7+
testthat::skip_on_ci()
58
testthat::skip_if_not_installed("githubinstall")
69
testthat::skip_if_not_installed("UpSetR")
710
testthat::skip_if_not_installed("BiocManager")

tests/testthat/test-r_repos_downloads.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ test_that("r_repos_downloads works", {
22

33
testthat::skip_if_offline()
44
testthat::skip_on_cran()
5+
## CRAN download logs API is rate-limited on GHA shared runners
6+
testthat::skip_on_ci()
57
testthat::skip_if_not_installed("cranlogs")
68

79
run_tests <- function(pkgs,

0 commit comments

Comments
 (0)