Repository navigation
Tools: reverse-dependency vignette sweep (dev/revdep) - #131
Merged
Merged
Conversation
Docker image, host driver, in-container sweep, per-vignette renderer, dependency installer, and HTML/PDF comparison + report. Not yet verified end to end. Co-Authored-By: Claude <noreply@anthropic.com>
- Render in a per-variant copy on the container filesystem; the macOS bind mount broke HDF5 file locking and chmod (SparseArray, BiocParallel). - Default to rendering the two variants sequentially (jobs=1): concurrent renders collided on BiocParallel's seeded socket port. - Load VignetteBuilder namespaces instead of passing buildPkg=, which hid utils::Sweave for packages with VignetteBuilder: knitr. - Normalize memory addresses, pandoc code-line anchors, system.time() numbers and Hub cache download/load messages. Co-Authored-By: Claude <noreply@anthropic.com>
DirichletMultinomial's densityplot jitters points without a seed, so the embedded PNG differed between two renders of identical sources. Co-Authored-By: Claude <noreply@anthropic.com>
install-tex.R now reads inst/resources/tex/required-packages.txt from the working directory; pass that directory as a second build context. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
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.
Summary
Adds
dev/revdep/, a Docker-based tool that renders the vignettes of Bioconductor packages that use BiocStyle twice: once with a baseline BiocStyle (a git ref,origin/develby default) and once with a candidate (a ref or a local path, the working tree by default). It writesdev/revdep/results/<timestamp>/report.md. The report lists NEW FAILURES (ok → error) and FIXED (error → ok) at the top, then changed outputs, then a per-vignette table.bioconductor/bioconductor_docker:devel(native arm64 on Apple Silicon) plus poppler plus TinyTeX. The LaTeX packages are installed by the existing.github/scripts/install-tex.R. R libraries are cached in the named volumebiocstyle-revdep-cache-<arch>.bioc_pkg_scores.tab, plusdev/revdep/forced.txt(Glimma, a DT widget vignette, BiocStyle::pdf_document, Rnw +BiocStyle::latex(), kableExtra).tools::buildVignette()(the functionR CMD builduses). Each vignette renders in a fresh process with a per-vignette timeout and a seeded RNG. Each BiocStyle variant is installed in its own library.pdftotexttext.dev/andjustfileare added to.Rbuildignore, anddev/revdep/results/to.gitignore. I checked thatR CMD buildleaves them out.Verification (local, Apple Silicon, Docker 29)
origin/devel, with n=3 plus Glimma, GeneOverlap (Rnw/PDF) and DirichletMultinomial (DT widget). All 12 vignettes rendered in both variants, with 0 changed, 0 new failures. Total time was 7m31s with a warm cache. Getting to zero took several normalization fixes, each driven by noise seen in earlier runs: bytecode addresses, Hub download vs cache messages,system.time()numbers, and unseeded lattice jitter in a PNG.h1.titlecolor changed inbioconductor.css, plusBiocBluechanged inBioconductor.sty. The run flagged every BiocStyle HTML vignette with exactly that 2-line CSS diff, and showed no change for the non-BiocStyle vignette. The PDF color change was not detected because the text and page count stay the same (see caveats).origin/develhad moved to include Omit affiliation marks for a single shared affiliation; always show affiliations in PDF #126. The tool also caught that PR's author/affiliation markup change in DirichletMultinomial.Caveats / gaps
pdftoppm.jobs=2(concurrent baseline/candidate) is opt-in only: the two renders collided on BiocParallel's seeded port.n=60has not been timed. The README gives an extrapolated estimate.🤖 Generated with Claude Code