Repository navigation
Skip deprecated package check when the status file is unavailable - #273
Merged
Merged
Conversation
get_status_file_cache() let BiocFileCache errors propagate, so a failed download of meat-index.dcf halted BiocCheck with "not all 'rnames' found or unique." When a cached copy existed but could not be refreshed, e.g., offline, bfcdownload() also errored instead of using the cached copy. Keep the cached copy when the refresh fails, and return NA when there is no copy and the download fails. get_deprecated_status() then skips that version with a message, as it now also does when BiocManager cannot determine the release or devel version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #273 +/- ##
==========================================
- Coverage 70.19% 70.07% -0.12%
==========================================
Files 15 15
Lines 2768 2787 +19
==========================================
+ Hits 1943 1953 +10
- Misses 825 834 +9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BiocCheck halts at "Checking for deprecated package usage" when it cannot download the Bioconductor package status file, as seen in an r-universe Bioc build of GSALightning:
The file was available; the runner's connection failed briefly. A network failure should not stop BiocCheck.
Cause
get_status_file_cache()lets BiocFileCache errors propagate:bfcrpath()error, as above.bfcneedsupdate()reports that an update is needed, thenbfcdownload()errors, so the cached copy is never used.Change
get_status_file_cache()keeps the cached copy when the refresh fails, and returnsNAwhen there is no cached copy and the download fails.get_deprecated_status()skips that Bioconductor version with an info message when the status file isNA, following the existinghandleMessage("Unable to access ...")pattern for network failures.BiocManager:::.version_bioc()returns an explanation string rather than a version, which was being pasted into the URL. That version is now also skipped with a message.Offline, the check now prints:
Checks
inst/tinytest/test_BiocCheck.Rthat use a temporary cache and need no network: an unreachable URL returnsNA, and a cachedfile://source that is then deleted still returns the cached copy unchanged. Both cases error with the previous code.checkDeprecatedPackages()completes with no errors, warnings, or notes recorded.test_BiocCheck.Rpasses 150 of 150 on R-devel with Bioc 3.25.R CMD checkis left to CI.This PR was drafted with the help of Claude Code (Claude Opus 5.5).
🤖 Generated with Claude Code