Skip to content

Commit

Permalink
Update snapshots for Bioc release
Browse files Browse the repository at this point in the history
Plus add some docs on what to do when the bioc
snapshots fail because of the new Bioc release.
  • Loading branch information
gaborcsardi committed May 3, 2024
1 parent bee4e93 commit 48c1017
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/testthat/_snaps/platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,23 +331,24 @@
35 3.15 4.2 out-of-date
36 3.16 4.2 out-of-date
37 3.17 4.3 out-of-date
38 3.18 4.3 release
39 3.19 4.4 devel
40 3.19 4.5 future
38 3.18 4.3 out-of-date
39 3.19 4.4 release
40 3.20 4.4 devel
41 3.20 4.5 future

# bioc_release_version, bioc_devel_version

Code
bioc_release_version(forget = TRUE)
Output
[1] '3.18'
[1] '3.19'

---

Code
bioc_devel_version(forget = TRUE)
Output
[1] '3.19'
[1] '3.20'

# bioc_repos

Expand Down
7 changes: 7 additions & 0 deletions tests/testthat/test-platform.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ test_that("bioc_version", {
})
})

# If this or the next test fails, that means that we potentially
# need to update our Bioc metadata. If the R version -> Bioc version
# mapping is final, then we update it. Otherwise we don't. E.g.
# R 4.4 uses Bioc 3.19 right now, but eventually will use Bioc 3.20,
# so we don't update for Bioc 3.19, only for Bioc 3.20.
# If we don't update the metadata, we just update the test snapshots.

test_that("bioc_version_map", {
on.exit(bioconductor$.internal$clear_cache())
bioconductor$.internal$clear_cache()
Expand Down

0 comments on commit 48c1017

Please sign in to comment.