flowchart LR RU["r-universe API<br/>(software metadata)"] --> P PK["PACKAGES indexes<br/>on bioconductor.org<br/>(versions, downloads)"] --> P TB["source tarballs<br/>(DESCRIPTION)"] --> P BV["Bioconductor/biocViews<br/>vocabulary"] --> P CR["CRAN PACKAGES"] --> P WS["/packages/stats/<br/>(Rank, .tab from R2)"] -.-> P P["bioc-website pipeline<br/>(./bioc.py)"] --> S["R2: _ci/site-data.tar.zst<br/>(nightly, bioc-site-packages)"] GH["Bioconductor/bioconductor.org devel<br/>(prose, events, assets)"] -- "sync.yml, scheduled<br/>(hours apart) or dispatched" --> AB["astro branch<br/>seandavi/bioconductor.org"] S --> A["CI: astro.yml<br/>astro build + Pagefind"] AB --> A REG["bioc-registry<br/>propagation index"] -->|/next/ only| A A --> O["R2: site/<id>/<br/>+ site/latest"] O --> W["bioc-site Worker"] classDef ok fill:#f3fbf4,stroke:#3d8b47,color:#12263f classDef q fill:#fff8e8,stroke:#b8860b,color:#12263f class RU,PK,TB,GH,BV,CR,P,AB,A,O,W,REG,S ok class WS q
Building the site from primary sources
bioconductor.org’s pages are built from the astro branch of seandavi/bioconductor.org, a copy of the site’s own source repository, Bioconductor/bioconductor.org, with an Astro build in place of nanoc. Package data comes from bioc-website’s Python pipeline as a snapshot in R2. The bioc-site Worker serves the build first on every path and falls back to the mirror (the R2 copy of the legacy site) where the build has no file.
Two dates matter. From 2026-09-28 until 2026-11-16 the build was bioc-website’s own: the same Astro renderer, reading the prose from a pipeline-made snapshot. Since 2026-11-16 22:13 UTC (build 6865ded4) it is the astro branch, tracked in Bioconductor/bioconductor.org#443. bioc-website still builds as the fallback. The branch merges back into devel when the core team is ready (#440), and editors keep working on devel until then.
This page describes how a build reaches production, how a content edit gets there, and what the build does not cover yet. The measurements from the August build are kept further down as a dated record.
Companion pages: Reproducing the package pages for the data-source analysis, Edge cache for caching and purges, CI & scheduled jobs for the other workflows.
How a build reaches production
.github/workflows/astro.yml on the astro branch runs on every push to astro, every pull request into it, and on dispatch:
- YAML lint, then the pipeline and renderer tests (
just test). just build: pull the package-data snapshot (https://bioconductor.org/_ci/site-data.tar.zst), convert this checkout’scontent/,etc/andconfig.yamlintoastro/data/, copyassets/intoastro/public/, thenastro buildand Pagefind.- Checks: parity with what nanoc would publish (
pipeline/parity.py), canonical links, the sitemap and robots.txt, offline internal links on the template pages,astro check, and a dry run of the one-time freeze conversion. - Only if all of that passes: upload
astro/disttosite/<sha>-<snapshot hash>/in thebioc-sitebucket. The snapshot hash is the first 8 hex digits of the tarball’s sha256. - Write that id to
site/latest, but only while the repository variablePUBLISH_LATESTistrue.
The Worker does the rest. Its route table _routes.json is {"build":"latest","prefixes":["/"]}: every path tries site/<latest id>/ first, then the mirror. The Worker caches the site/latest pointer for 60 seconds per isolate. Build pages are edge-cached under keys that contain the build id, so a new build needs no purge. Every response served from the build carries an x-bioc-build: <id> header; a page without that header came from the mirror.
**Release and devel are config.yaml‘s.** The build renders the package pages’ release/devel chrome, canonicals and sitemap from release_version and devel_version, not from which data/<n> directories the snapshot holds, and writes the same two values to bioc-version and bioc-devel-version. The Worker reads those two files from the build it serves and points /packages/release/ and /packages/devel/ at them. Other versions in the snapshot (such as the next devel, built ahead of release day) render as plain version pages (“This package is for version X”), each its own canonical and disallowed in robots.txt; a version newer than devel is never labelled removed. Release day is the config.yaml edit and nothing else (seandavi/bioconductor.org#22). The offline link check samples config.yaml’s release too, not the newest version (#23).
| Measured 2026-11-16 | |
|---|---|
Push run for 6865ded4, checks and upload |
25 min (21:17 to 21:42 UTC) |
The first upload to an empty prefix (dispatch for 4a9ca4cf) |
58 min |
| Published build | 19,484 files |
The upload was most of that time. Since it runs 100 requests at once (seandavi/bioconductor.org#21, merged 2026-11-19) it takes about a minute, and a build takes 3 to 8 minutes from push or dispatch to site/latest (measured 2026-11-24: 2 min 40 s for a dispatched run, 7 to 8 min for a push run). CI builds only the versions in the snapshot (3.23, 3.24 and, since 2026-11-24, 3.25), the prose pages and /next/. Releases 2.5 to 3.22 are archival (ADR 0006) and are served from the mirror.
Two builders, one pointer. bioc-website’s site.yml uses the same gate: it writes site/latest only while bioc-website’s PUBLISH_LATEST is true. Today that’s true on seandavi/bioconductor.org and false on bioc-website. Both keep building, so either one can take production back, with one caveat: bioc-website’s renderer still takes devel and release to be the two newest data/<n> directories, not config.yaml’s pair. Since release day (2026-11-26) those are the same, 3.25 and 3.24, so its builds are a correct fallback again. They stop being one when the next devel (3.26) enters the snapshot ahead of the next release, unless that renderer gets the same change as #22 first.
Rollback. Pick a build: an earlier astro one, or bioc-website’s last (gh run list -R seandavi/bioc-website -w site.yml). Write its id to site/latest, or set "build" in _routes.json to it. To hand production back to bioc-website for good, also flip the two PUBLISH_LATEST variables, or the next astro build moves the pointer again. Either change reaches every isolate within 60 seconds. Earlier builds stay in R2; there is no retention policy yet (bioc-website#2).
The data snapshot
The build reads package data from a snapshot, _ci/site-data.tar.zst in R2, rather than fetching from primary sources. bioc-website’s pipeline makes it. The snapshot holds package data for each version the build renders (data/3.23, data/3.24 and, since 2026-11-24, data/3.25, the next devel), data/site and public/. The astro build overwrites data/site and public/ with its own checkout’s content, so it only uses the package data.
- Package data is refreshed nightly by
bioc-site-packages(06:00 UTC, up to 30 minutes of random delay; bioc-websiteops/refresh-packages.sh). It rebuilds everydata/<n>already in the snapshot, uploads it, and dispatches both builds. Software data for a version comes from whichever r-universe (biocorbioc-release) serves that version’sBiocVersion, or, if neither does, from the source tarballs’DESCRIPTIONlike the other three repositories. A version not yet inconfig.yaml’sr_ver_for_bioc_vergets its R version from the repository’s binary indexes (bioc-website#86).ADD_RELEASE=<v> ops/refresh-packages.shadds a version (3.25 was added that way on 2026-11-24); retiring one is still done by hand (Release runbook). - Prose in the snapshot (
data/site,public/) is refreshed bybioc-site-refreshevery 20 minutes whendevelmoves. Only bioc-website’s fallback build reads it.
A changed snapshot gets a new build id even on the same commit, because the edge cache treats a build id as immutable.
Two things follow from the snapshot:
- A change to bioc-website’s
pipeline/*.pyreaches production only after the next snapshot refresh and a build. - Package landing pages for the versions in the snapshot show the version and download links from the repository’s own
PACKAGESindexes as they were when the snapshot was made (bioc-website#31), so at most a day old while the nightly refresh succeeds. A failed refresh leaves the last snapshot in place and opens an issue. From 2026-11-26 it failed every night until 3.24’s release date was added toconfig.yaml(#231). The hourlybioc-syncupdates the package files themselves; it does not update the landing pages.
/next/ pages are different: the Astro build fetches bioc-registry’s propagation index over HTTP while it runs, so they are as current as the last build. If that fetch fails, the whole build fails (#447).
Previews
Every pull request into astro is built the same way and uploaded to preview/pr-<n>/ in R2. The URL is https://bioc-dev.cancerdatasci.org/_pr/<n>/; CI posts it as a comment on the PR, and preview-cleanup.yml deletes the prefix when the PR closes. Pull requests from forks get no preview, since they have no secrets. bioc-website’s pull requests publish to the same preview/pr-<n>/ keys. The two repositories’ numbers don’t overlap yet (bioc-website is past 84, seandavi/bioconductor.org is under 20), but they would collide if they ever reach the same number. Internal links in a preview are root-absolute and leave the preview (bioc-website#4).
Editing content: where, and how long it takes
| To change | Edit | Reaches bioconductor.org |
|---|---|---|
Prose pages, events, courses, config.yaml, assets |
Bioconductor/bioconductor.org devel, as before |
through the devel sync, then a build: hours on the schedule, about 5 minutes if the sync is dispatched (below) |
Layout, components, /next/ pages |
a PR into astro on seandavi/bioconductor.org |
on the build after merge, 3 to 8 minutes |
| Pipeline code (how package data is fetched or transformed) | a PR to bioc-website | after the merge, at the next nightly snapshot refresh and build |
| Package titles, descriptions, maintainers | the package’s own DESCRIPTION |
after the next nightly snapshot refresh and build |
The devel sync. .github/workflows/sync.yml on astro is scheduled every 30 minutes, but GitHub throttles that schedule: scheduled runs were 4 to 12 hours apart in November 2026 (measured 2026-11-24). To get a devel edit onto the site sooner, dispatch it, gh workflow run sync.yml -R seandavi/bioconductor.org --ref astro: on 2026-11-24 the sync took under 3 minutes and the build it dispatched 2 min 40 s. When devel has moved, it merges devel into astro with a merge commit and runs astro.yml’s checks on the result. If they pass, it pushes to astro and dispatches astro.yml to publish. If the merge conflicts or the checks fail, it opens a pull request from sync/devel-<sha> instead and publishes nothing. While that PR is open, the sync merges nothing more. Expected conflicts are devel edits to files astro deleted (nanoc’s layouts and helpers), and new ERB in content. The sync can’t push a devel change to .github/workflows/, because the token it uses isn’t allowed to; that run fails visibly and a person merges it.
Content stays in nanoc’s form on astro (a page body plus a .yaml sidecar, the course TSV), converted at build time, so merges from devel stay free of conflicts. The one-time conversion happens at the merge back (FREEZE.md on the branch is the runbook).
Latency, once someone acts:
- Build. 3 to 8 minutes from push or dispatch to
site/latest(measured 2026-11-24). - Serving. Up to 60 seconds for the Worker to see the new pointer, and up to 5 minutes for browsers holding the old page (build pages are sent with
cache-control: public, max-age=300, s-maxage=31536000).
Differences from nanoc
pipeline/parity.py lists every path nanoc’s Rules would publish from the checkout and fails the build if one is missing, apart from a documented exclusion list. It also lists what nanoc’s Rakefile wrote outside the Rules: /config.yaml, /js/versions.js, /bioc-version, /bioc-devel-version and /packages/<version>/index.html (#446). Before 2026-11-16, bioc-website recorded its workarounds for upstream content in UPSTREAM.md.
The seam
Two halves that do not know about each other:
The pipeline decides where package data comes from; the Astro build decides how it is rendered. astro/data/ is the contract between them. In bioc-website, the pipeline is driven from one CLI with just recipes over the top:
just data # fetch the live releases from primary sources
just build # astro build + Pagefind index -> astro/dist/
just coverage # compare against bioconductor.orgOn the astro branch, just build does the whole site build from the published snapshot (AGENTS.md there lists the recipes).
just coverage still requests https://bioconductor.org (SITE in pipeline/coverage.py). Since 2026-09-28 that host serves the build first, so coverage no longer compares against an independent legacy site. For pages the build lacks, it still measures the mirror.
What the build does not cover
Checked 2026-11-16 against build 6865ded4:
- Three dropped pages.
/dashboard/,/developers/gitlog/and/help/publications/were dropped on purpose (Bioconductor/bioconductor.org#435); publications links now point to https://impact.bioconductor.org/. The build has no file for them, so the mirror’s old copy answers until the edge redirects are applied (#187)./developers/help_wanted/was dropped in the same change and later restored (Bioconductor/bioconductor.org#444). Every other prose page renders, with no ERB left unresolved. - Files nanoc’s
Rakefilewrote: the build emits them (#446), and the edge serves/config.yamland/js/versions.jsfrom it./bioc-versionand/bioc-devel-versionstill come from the mirror, because the edge doesn’t look up extensionless paths in the build. Thepackages/releaseandpackages/develaliases follow the served build’s own copies of those two files (since #208, 2026-11-24); the other aliases, such ascheckResults/release, come from the edge’s symlink map, whichbioc-syncreads from the mirror’s symlinks, which nanoc writes. Rankis read from the*_pkg_scores.tabfiles under/packages/stats/on bioconductor.org. The Worker serves them from R2, where bioc-traffic uploads them daily, soRankno longer depends on master.- Check results, vignettes, manuals and the other per-package artifacts are served from the mirror; the build does not produce them.
- Search. Site search is a Pagefind index built from
dist/at build time. There is no server-side search;/solris not served.
The 2026-08-04 build (record)
The sections below are the measurements and findings from the first full build, 2026-08-04 to 2026-08-13, which rebuilt all 35 releases. They are kept as written except where marked (corrected 2026-09-30). CI today builds only the versions in the snapshot (above).
What it produces
| Page type | Built | Recall | Source |
|---|---|---|---|
| Package landing pages | 92,142 | 100% | packages.json |
| Prose pages | 518 | 96.8% | the site’s git repo |
| Package index pages | 123 | 100% | packages.json |
| biocViews browsers | 35 | 100% | tree.json |
| Images / CSS / JS | 361 | — | copied verbatim |
The full build then was 93,186 files in about 50 seconds; with the /next/ pages (below), 97,001 files in about 60 seconds. Both figures predate the Pagefind index.
Recall is measured per page type deliberately. A single percentage over a corpus that is 99% package pages would read as ~100% while every prose page was missing.
Precision was checked in the other direction: 30 sampled URLs of each type, all of which resolved on the live site. Nothing is invented. A 200 on a page the real site does not have would be a silent wrong answer rather than a visible gap.
The tarball origin
The largest change. Annotation, experiment and workflow packages (1,387 of them, about a third of the corpus) previously had no origin except VIEWS on the site being rebuilt. Their real origin is DESCRIPTION inside the source tarball: the maintainer’s own file, passed through the repository untouched.
The naive version of this downloads 1,387 tarballs, several of them hundreds of megabytes, to read a few hundred bytes from each. Instead: DESCRIPTION sits near the front of the archive, gzip is a stream, and R2 serves ranged requests, so a 64 KB ranged GET, inflated as far as it goes, is enough. Bounded at 64 KB regardless of package size, roughly 0.1 s each, the whole corpus in about 50 seconds.
Two findings that only appear once you run it:
VIEWS appends the repository’s root biocViews term. A software package declaring only DifferentialExpression is published as ["DifferentialExpression", "Software"]. Packages never declare that term themselves (it comes from which repository they were built into), so any generator reading DESCRIPTION or r-universe has to add it back. Without it, biocViews disagreed on 89% of packages and the category browser lost all four of its top-level roots. With it, overall field agreement against the published data goes from 90.8% to 98.9%.
Not every archive is ordered with DESCRIPTION near the front. 32 of 928 annotation packages put a large .rda first (BSgenome.Hsapiens.UCSC.hg17 leads with chr13.rda), and gzip cannot be read backwards, so no affordable prefix reaches them. Those still fall back to VIEWS and are named in provenance.json rather than absorbed silently.
What the residual 1.1% is
Of 480 disagreeing fields out of 41,844:
- ~230 whitespace only. DESCRIPTION wraps prose across lines; unfolding differs by a space.
- ~110 version drift. r-universe tracks the release branch head; the published VIEWS is a frozen snapshot.
AnVILWorkflowis 1.12.0 upstream-of-record and 1.11.0 as published. This is a real semantic difference and matters for any rebuild that claims to reproduce a release rather than track it. (Since bioc-website#31, 2026-09-29, software landing pages take their version from the repository’sPACKAGESindex instead.) - ~125 absent in ours, concentrated in about 16 packages.
- A handful where our value is right and the published one is wrong.
BubbleTree’s publishedTitleis the literal stringERROR;ViSEAGO’s publishedLicenseisGPL-3 bioconductor.org, with a following field leaked into it.
Deliberate divergences
The biocViews browser is rendered at build time. Upstream ships a near-empty page and builds the tree client-side with a jsTree widget that fetches tree.json over XHR. This renders the same 500 nodes as nested <details>. Same data, same #___Software anchors that the header and footer link to directly, but crawlable, JS-free, and not dependent on a second request succeeding. (Corrected 2026-09-30: since 2026-08-14 the page’s main interface is a hydrated React package finder (PackageFinder, the site’s only island); the <details> tree is the fallback when JavaScript or the island does not load, and is hidden once it does.)
jQuery is served locally. Upstream pulls jQuery 1.5.1 (2011) from ajax.googleapis.com on the rebase path; the same file is already vendored at /js/jquery.js. Same library, one fewer third-party origin.
highlight.js is not loaded from cdnjs. Nothing should need a CDN to be up in order to render.
Divergences in the prose pipeline are now recorded in bioc-website’s UPSTREAM.md (above).
ERB is resolved in the pipeline, not ported by hand
Most of the surviving ERB is trivially evaluable, and treating it as a wall costs pages needlessly: the homepage is eight lines of nothing but static partial includes. The pipeline therefore expands the constructs that occur:
<%= config[:key] %> site-config lookup, optionally .sub()'d
<%= render('/partial/') %> static partial, expanded inline, recursive
<%= ami_url(...) %> a one-line link builder in lib/helpers.rb
Anything else is left in place and reported per page as erbUnresolved, so whether a page can render is decided once, in the pipeline, and the renderer just obeys. An earlier hardcoded exclusion list in the Astro side went stale the moment the resolver improved.
Partials that loop over build data cannot be expanded this way (that data belongs to the renderer), so they become named slots. _top_events is the first: the pipeline emits <!--slot:events--> and Astro fills it from the same events.json it already writes. An explicit slot means a page that needs one cannot silently render without it.
Detecting ERB is easy to get wrong in both directions. The first attempt counted bare <% with no closing %>, which flagged a 6,973-line release-notes page containing no ERB at all: the matches were R’s %<% operator quoted in package NEWS text. It also used a more-than-two-tags threshold, which let ten pages with one or two real tags reach the build and ship visible <% %> to readers. The fix requires <%...%> on a single line. Prose recall fell from a reported 97.9% to 96.8% when this was fixed, and no page in dist/ then contained a visible ERB tag, where ten had. (Corrected 2026-09-30: this page said every ERB tag in the content tree is single-line. It is not: /help/events/ has two multi-line render() calls, which the detector misses and which ship as visible text; see What the build does not cover.)
What was still missing on 2026-08-04
- 17 prose pages with ERB the pipeline cannot evaluate. Still 17 on 2026-09-30; the current list is above.
- 33 of 35 releases still use snapshotted data. Only 3.23 and 3.24 had been regenerated from primary sources; r-universe holds only release and devel. (Since settled: releases 2.5 to 3.22 are archival per ADR 0006 and served from the mirror.)
hasNEWS/hasREADME/hasINSTALL/hasLICENSE,vignettes,Rfilesfor the three tarball-sourced repositories. These are whole-archive facts and the 64 KB prefix cannot see them. They are reported as unavailable rather than guessed: defaulting them tofalsewould silently drop documentation links from ~1,400 landing pages.Rankhad no independent path: bio-web-stats was reachable only because master reverse-proxies it.- Search. Solr was out of scope. (Since 2026-08-14 the build ships a Pagefind index.)
- checkResults, vignette and manual files. Static artifacts already in R2; the Worker serves them, the build does not produce them.
Next-generation pages from the build-system data plane (added 2026-08-13)
Everything above reproduces the existing site from its existing data contract. A second track renders pages the legacy build never produced, from a data source the legacy pipeline never had:
/next/{universe}/checkResults.html: a check-results matrix per universe (release and devel), built from the propagation pipeline’s archived observations: per-configuration verdicts for every package, worst-first, with a column showing what the propagation gate let through. nanoc never built check pages (they arrive in the docroot from the build system), so this is new rendering, not a port./next/{universe}/package/{pkg}.html: one landing page per entry in bioc-registry’s propagation index, rendered through the same component as the parity build via a mapping from the registry’s metadata into the existingpackages.jsoncontract. Legacy JSON and the new data plane feed identical rendering. Version truth comes from the gate, not the latest build; downloads point at the gate’s content-addressed artifacts; per-architecture availability follows the gate’s per-arch decisions. Build360bb87(2026-09-29) has 2,418 pages forbiocand 2,390 forbioc-release, one per index entry including seeded ones.- The
/next/pages carry their own clean-slate layout (system fonts, dark-mode aware, no jQuery, no legacy CSS cascade), with the rendering stance settled for the redesign: content is static HTML; reactivity is layered over it (a copy button, table filtering) as progressive enhancement. Landing and check pages are cited, curled and archived documents; they are never a client-rendered application.
(Corrected 2026-09-30: title, description, authors and vignettes come from the metadata bioc-registry archives in its propagation index (bioc-website cf759fa, 2026-08-13), so they describe the propagated version. The build asks r-universe only for downloads, stars and reverse-dependency counts and for the banner shown when r-universe has a newer version, and an r-universe outage leaves those out rather than failing the build.)
The /next/ pages are a preview of pages built from bioc-registry data. bioconductor.org’s own package pages do not use it; switching them is part of the registry switch plan.