Skip to main content

How bioconductor.org Works

How a request to bioconductor.org is answered, how packages and site changes get there, and the terms the rest of this site uses

Reference page, checked 2026-09-30; the site section updated 2026-11-24; hosts, request order and the sync rechecked 2026-12-01. It describes the running system; if something here is wrong, that is a bug in this page. Sources: the Worker in bioc-edge (worker/src/index.ts, keys.ts, sync.sh), astro.yml and sync.yml on the astro branch of seandavi/bioconductor.org, and live responses from bioconductor.org.

Since 2026-09-28 (about 20:09 UTC) bioconductor.org is answered by a Cloudflare Worker, bioc-site, reading from an R2 bucket, also named bioc-site. The legacy server master.bioconductor.org still runs and still produces the package repositories; the edge copies them every hour. The registry does not serve bioconductor.org yet.

Terms

Other pages use these words with these meanings.

Term Meaning
master master.bioconductor.org, the legacy web server. Its docroot is where BBS and the core team’s propagation put the package repositories. The mirror is copied from it. It stays up until parity is clean (roadmap M2).
the mirror The copy of master’s docroot in R2, at the top level of the bioc-site bucket (packages/..., checkResults/...). About 5.1 TB.
the build One output of the site’s Astro build, stored at site/<sha>-<snapshot hash>/ in R2. Since 2026-11-16 it is built from the astro branch of seandavi/bioconductor.org, and before that by bioc-website. site/latest holds the id of the build production serves.
preview A pull request’s build, stored at preview/pr-<n>/ and served at /_pr/<n>/. The R2 key and the URL differ.
the edge The bioc-site Worker plus Cloudflare’s cache in front of R2. The code is in bioc-edge.
route table _routes.json in R2: which URL prefixes the build answers before the mirror. Data, not code.
symlink map _symlinks.json in R2: master’s symlinks (packages/release → 3.23, the R-version aliases under contrib/), which object storage cannot hold. The served build’s bioc-version and bioc-devel-version override packages/release and packages/devel.
the sync bioc-sync, the hourly systemd job that copies master into the mirror.
BBS The Bioconductor Build System on the legacy build machines. It builds the source tarballs.
r-universe r-universe.dev’s bioc and bioc-release universes. They build most of the Windows and macOS binaries on bioconductor.org.
the registry bioc-registry: observes r-universe, applies the propagation gate, and publishes its own repository at its own workers.dev host. Not in the serving path.
parity The daily comparison of bioconductor.org with master, path by path (bioc-edge parity.yml).
the manifest The mirror’s file list at /api/v1/manifest/, used by mirror operators.

Serving: how a request is answered

Hosts

All four hostnames go to the same Worker and read the same bucket, so they serve the same content (checked 2026-12-01: all four return build 24b633aa…-78472b7d at /).

Host Zone Use
bioconductor.org bioconductor.org (Cloudflare nameservers since 2026-09-28 17:30 UTC) Production
www.bioconductor.org bioconductor.org Production
next.bioconductor.org bioconductor.org Same content as production
bioc-dev.cancerdatasci.org cancerdatasci.org (Worker custom domain) PR previews at /_pr/<n>/ and the latest build at /_latest/. Only this host serves them; on the others both prefixes are a 404.

The Route53 zone is kept as the rollback target, with a record freeze until 2026-10-12 (DNS runbook).

The route table: build first, then the mirror

The route table in production is:

{"build": "latest", "prefixes": ["/"]}

Every path is routed, so for each request the Worker tries the build’s files (site/<latest sha>/...) first and the mirror’s files second. The build wins wherever it has a file; anything it lacks (package tarballs, PACKAGES, checkResults, old-release pages) comes from the mirror. A response served from the build carries an x-bioc-build: <sha> header; a mirror response has none. The Worker rereads _routes.json and site/latest at most once a minute per isolate, so a new build or a rollback reaches all traffic within about a minute. Pinning build to an older sha is the rollback.

Request order

The Worker handles a request in this order (packages/edge/worker/src/index.ts on main, checked 2026-12-01):

  1. Anything other than GET or HEAD gets 405.
  2. /packages/stats/...: the .tab files, the HTML pages and static/barchart.js are read from R2, where bioc-traffic uploads them daily. A key missing from R2 is a 404 (download stats).
  3. On bioc-dev.cancerdatasci.org only, /_pr/<n>/... serves that PR’s preview and /_latest/... serves the latest build; other hosts answer both with a 404. Paths the preview lacks fall back to production. Neither is cached, and links in the HTML are rewritten to stay under the prefix.
  4. The redirect table (redirects.json, generated from master’s .htaccess of 2026-07-30) answers with one 301.
  5. Book short URLs (/books/<name>) get a 302 to the release or devel book.
  6. Edge cache lookup (see Caching).
  7. R2: build keys, then mirror keys, with symlinks resolved through the symlink map.
  8. On a miss: a generated directory listing for a few prefixes, or a 302 for a package short URL (/packages/<name>), or a 404 whose body is the site’s 404 page (help/404/index.html, since 2026-09-29).

/solr/ is not served (it returns 404). Before the Worker runs, a Cloudflare WAF rule blocks AS150436 and AS4229 on /talks/, the crawler found on 2026-09-28 (what the new site has changed).

Caching

Detail, keys and the purge procedure are on Edge cache. In short:

  • Cached at the edge: package files and repository metadata (PACKAGES, VIEWS, tarballs), pages from the build (keyed by build sha, so a new build invalidates them), old-release files from the archive copy (never purged), and 404s for 10 minutes (keyed by build sha).
  • Not cached: HTML that comes from the mirror (checkResults, old-release pages), previews, and /packages/stats/ (read from R2 on every request).
  • Freshness: the edge keeps objects for up to a year (s-maxage=31536000); every sync purges the objects it changed on all four hosts. Browsers get max-age=300 by default, 30 seconds for PACKAGES and config.yaml, and one year (immutable) for tarballs and zips, whose names carry the version. Browser Cache TTL is set to respect these headers in both zones.

Measured 2026-09-29 16:00-18:00 UTC: about 4,400 requests per minute, no 5xx, 63% edge hits. A miss took 200 ms from the US west coast and up to 800 ms from Europe, Asia and South America.

Publishing: how content gets there

Two independent paths write to R2. Neither goes through the registry.

flowchart LR
  subgraph PKG[Packages, hourly]
    BBS["BBS<br/>source tarballs"] --> M["master.bioconductor.org<br/>docroot"]
    RU["r-universe<br/>most binaries"] -- "core team propagation" --> M
    M -- "bioc-sync, hourly<br/>rsync + upload + purge" --> MIR[("R2: the mirror")]
  end
  subgraph SITE[Site, on merge, upstream content push or nightly data refresh]
    UP["Bioconductor/bioconductor.org devel<br/>prose, assets"] -- "sync.yml, scheduled<br/>(hours apart) or dispatched" --> GH
    GH["astro branch<br/>seandavi/bioconductor.org"] -- "CI: astro.yml<br/>checks, Astro build" --> B[("R2: site/&lt;sha&gt;-&lt;data&gt;<br/>+ site/latest")]
    SN["bioc-website pipeline<br/>package-data snapshot"] -- "bioc-site-packages, nightly" --> GH
  end
  MIR --> W["bioc-site Worker<br/>build first, else mirror"]
  B --> W
  W --> V(["bioconductor.org"])
  REG["bioc-registry<br/>own workers.dev host"] -. "planned: registry switch" .-> MIR

Packages

Package type Built by Reaches bioconductor.org via
Software, source tarballs BBS master, then the sync
Software, Windows and macOS binaries mostly r-universe, published to master by the core team’s propagation master, then the sync
Annotation, experiment-data and workflow packages the legacy side; no replacement is running (bioc-build is a proof of concept) master, then the sync

The sync (bioc-sync, bioc-edge) runs hourly with up to 10 minutes of random delay, on onclappc02 from the operations clone of main (/data/davsean/bioc-ops/bioc-infrastructure/packages/edge). Each run:

  1. rsyncs master’s docroot into /data/davsean/bioc-cloudflare/mirror;
  2. uploads the changed files to R2 and publishes the symlink map;
  3. regenerates the manifest;
  4. purges the changed objects from the edge cache on all four hosts.

A weekly job, bioc-reconcile (Sunday 04:00), checks R2 against the local copy by checksum. Both open a GitHub issue on failure (CI & scheduled jobs).

So a package update reaches bioconductor.org at the next sync after it lands on master: up to about 70 minutes, plus however long that run takes.

The registry publishes a gated r-universe repository at its own host. No request to bioconductor.org reads from it; its data reaches the site only through the build, which fetches the propagation index for the experimental /next/ package pages. Making it the source of the software repositories is the registry switch, a plan with open decisions.

The site

The site content means the pages the build renders plus the documents they link to: prose pages, events, site assets, and package data for the live releases. The package repositories are not part of it. Exactly what it covers, where each part is written, and how it should be managed are open for discussion in bioc-infrastructure#91 (sub-issues #92 to #95).

The site is built from the astro branch of seandavi/bioconductor.org, which is the site’s own source repository with an Astro build in place of nanoc. Its CI (astro.yml) runs on every push to astro, every pull request into it, and on dispatch:

  1. Tests, then the build: pull the package-data snapshot _ci/site-data.tar.zst, convert the checkout’s content, and run Astro and Pagefind.
  2. Checks: parity with what nanoc would publish, links, canonical URLs, the sitemap, types, and a dry run of the freeze conversion.
  3. If they pass: upload to site/<sha>-<snapshot hash>/, then write that id to site/latest while the repository variable PUBLISH_LATEST is true. A pull request uploads to preview/pr-<n>/ instead, which is deleted when the PR closes.

Live pages carry the id as x-bioc-build. It includes the snapshot hash because the edge cache keys on the build id and treats builds as immutable, so new data on the same commit must get a new id. Re-running a build does not refresh cached pages (#90).

bioc-website, which built the site from 2026-09-28 to 2026-11-16, keeps building as the fallback with its own PUBLISH_LATEST set to false. Handing production back is flipping the two variables and writing one of its build ids to site/latest (Building the site).

A merge to astro is live 3 to 8 minutes later (measured 2026-11-24), plus up to a minute for the Worker to follow site/latest. The inputs are refreshed differently:

Part Source Refreshed
Prose pages, events, courses, config.yaml and site assets (assets/: style, images, js, PDFs such as TAB minutes) Bioconductor/bioconductor.org devel Automatically. sync.yml on astro merges devel and publishes; a conflict or failed check opens a PR instead. It is scheduled every 30 minutes, but GitHub runs it 4 to 12 hours apart (measured 2026-11-24), so an upstream push can take that long. Dispatched by hand (gh workflow run sync.yml -R seandavi/bioconductor.org --ref astro) it is live in about 5 minutes
Package data for each version in the snapshot (data/<n>: 3.23, 3.24 and, since 2026-11-24, 3.25) r-universe, tarball DESCRIPTIONs, download stats, biocViews, through bioc-website’s pipeline Nightly. bioc-site-packages (06:00 UTC) refreshes the snapshot and dispatches the build (CI & scheduled jobs)
Layout, components, /next/ pages seandavi/bioconductor.org astro On merge

Package landing pages for the versions in the snapshot take versions and download links from the repositories’ own PACKAGES indexes as of that snapshot (bioc-website#31); the 33 older releases are frozen.

When something looks wrong

  • A page looks different from before: check x-bioc-build on the response. Present means the build answered; compare with master (curl -sI https://master.bioconductor.org/<path>). Known differences are bioc-edge #43-#46.
  • A package update is missing: check master first. If master has it and more than 70 minutes have passed, the sync may have failed (look for its issue in bioc-edge), or the edge is holding a stale copy (Edge cache).
  • Report it: where to file issues.