Skip to content

Install CRAN binaries for the container's Ubuntu release - #44

Merged
LiNk-NY merged 1 commit into
mainfrom
cran-binaries-match-container-codename
Dec 4, 2026
Merged

LiNk-NY merged 1 commit into
mainfrom
cran-binaries-match-container-codename

Conversation

@LiNk-NY

@LiNk-NY LiNk-NY commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

bioccheck.yml hardcodes Posit's CRAN binaries for Ubuntu 24.04 (__linux__/noble), but bioconductor/bioconductor_docker:RELEASE_3_24 and :devel are now Ubuntu 26.04 (resolute). On release branches this installs noble binaries into a resolute container. Ubuntu 26.04 replaced libxml2.so.2 with libxml2.so.16, so the noble XML binary cannot load, and every package that imports XML fails to install:

Error: .onLoad failed in loadNamespace() for 'XML', details:
  error: unable to load shared object '/usr/local/lib/R/site-library/XML/libs/XML.so':
  libxml2.so.2: cannot open shared object file: No such file or directory
ERROR: lazy loading failed for package 'rtracklayer'

annotate, rtracklayer, GenomicFeatures, GEOquery and biocViews fail the same way, so R CMD check fails before any package code runs. Example run: https://github.com/waldronlab/TCGAutils/actions/runs/47407915042

This is the same problem as #30, which #31 fixed by changing jammy to noble.

Change

  • Read VERSION_CODENAME from the container's /etc/os-release, build the Posit URL from it, and pass it to the install step through GITHUB_ENV, so the codename never needs updating again. The step stops with a clear message if the codename cannot be read.
  • Add the codename to .github/R-version, which feeds the package cache key. Existing caches were keyed without it, so a cache full of noble binaries cannot be restored onto a resolute container through restore-keys. This invalidates existing caches once.

No inputs, secrets or permissions change, so the workflow generator and the usage table need no update.

Testing

In each image I ran the new R code, then installed XML from the resulting repository and loaded it:

Image Derived codename XML from derived repo XML from old noble URL
RELEASE_3_24 (sha256:4d674c19…, as in the failing run) resolute links libxml2.so.16, loads libxml2.so.2 => not found, fails
devel resolute links libxml2.so.16, loads loads (no R-devel binaries, so built from source)
RELEASE_3_23 noble links libxml2.so.2, loads loads (unchanged)

actionlint passes on the changed workflow.

Drafted with Claude Opus 5.5

🤖 Generated with Claude Code

bioccheck.yml hardcoded Posit's noble (Ubuntu 24.04) CRAN binaries, but
bioconductor_docker devel and RELEASE_3_24 are now Ubuntu 26.04
(resolute). There the noble XML binary needs libxml2.so.2, which the
image lacks, so every package importing XML fails to install.

Read VERSION_CODENAME from /etc/os-release and build the repository URL
from it, passing it to the install step through GITHUB_ENV. Add the
codename to .github/R-version so the package cache key changes and a
cache of noble binaries is never restored onto a resolute container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LiNk-NY
LiNk-NY requested a review from lwaldron December 4, 2026 20:19
@LiNk-NY
LiNk-NY merged commit d119361 into main Dec 4, 2026
2 checks passed
@LiNk-NY
LiNk-NY deleted the cran-binaries-match-container-codename branch December 4, 2026 20:25
LiNk-NY added a commit to waldronlab/TCGAutils that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/cBioPortalData that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/curatedOvarianData that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/curatedTCGAData that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/doppelgangR that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/GSEABenchmarkeR that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/HMP16SData that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/imageFeatureTCGA that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/imageTCGAutils that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/lefser that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/MultiAssayExperiment that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/SingleCellMultiModal that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/TENxIO that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/VisiumIO that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiNk-NY added a commit to waldronlab/XeniumIO that referenced this pull request Dec 4, 2026
A re-run of a failed run reuses the bioccheck.yml commit it first ran
with, so it cannot pick up fixes such as Bioconductor/workflows#44.
workflow_dispatch lets a fresh run be started from the Actions tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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