Skip to content

Handle failed build-report downloads gracefully - #91

Merged
seandavi merged 1 commit into
develfrom
fix/build-status-download
Oct 16, 2026
Merged

seandavi merged 1 commit into
develfrom
fix/build-status-download

Conversation

@seandavi

Copy link
Copy Markdown
Owner

Fixes the windows-latest (release) failure in test_problemPage.R: a live build-report download failed (download failed), and then biocBuildStatusDB() hit do.call(rbind, ...): "second argument must be a list" once every URL had been filtered out as unreachable.

  • .cache_url_file(): if refreshing a stale cached file fails, it now warns and uses the cached copy.
  • biocBuildStatusDB() / biocBuildReportDB(): when no URL is reachable they now stop with "Bioconductor build report could not be reached".
  • skip_if_bioc_offline() now also calls skip_on_cran(). CI still runs these tests because check-r-package sets NOT_CRAN=true.
  • New mocked test for the unreachable case.

Local run: test_biocBuildStatusDB.R and test_problemPage.R passed (0 failures).

🤖 Generated with Claude Code

- .cache_url_file(): if refreshing a stale cached file fails, warn and
  fall back to the cached copy instead of erroring.
- biocBuildStatusDB()/biocBuildReportDB(): stop with a clear message when
  no build report URL is reachable, instead of the cryptic
  "second argument must be a list" from do.call(rbind, ...).
- skip_if_bioc_offline() now also calls skip_on_cran().
- Add a mocked test for the unreachable case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@seandavi
seandavi merged commit 7d899c4 into devel Oct 16, 2026
4 checks passed
@seandavi
seandavi deleted the fix/build-status-download branch October 16, 2026 15:40
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.

1 participant