GxPlex

Rebuilding the site from a release

The procedure that builds this site from one of its monthly releases and a copy of the repository the release names, on a machine other than the record's own: each command in order, the directory it runs from, and what it prints. A build from a release's payload does not reproduce every page of the site; the bag's README states how many it leaves out. The steps are held in one file, which this page renders and the record's rehearsal runs.

What a release carries

A release carries the record's public payload, as a BagIt bag in one archive, and not the software that builds the site. Steps 1 to 4 take the release alone: they check every file of it and unpack the record. Step 5 takes a copy of the repository besides, at the commit the release names, because the software is held there and in no release. That repository is not published, as How this record is made states, so steps 5 to 8 can be run only by a holder of a copy of it; a release alone carries steps 1 to 4. A file the export withholds from the public payload is listed, with its digest and reason, in the bag's data/export/MANIFEST.json; the bag's data/export/README.md states, in its first paragraph, how many of the site's pages a build from the payload does not reproduce.

Releases

No release has been cut: this build serves none under /releases/. The last rehearsal below ran on a fixture release, as its receipt states.

Last rehearsal

Rehearsed on , on a fixture release (2026-09, root 7d2417b7f43d0fc6771044b69eb6a130d6050f38f2d4fc01af6d18f230dfa473): every step it ran printed what the step states. It ran this procedure as it stands, with the rehearsal tool as it stands.

That release is not retained: it was removed with the directory the rehearsal ran in, so its root cannot be checked against a copy.

Fixture record
cut by the record's release tool with a temporary key, from an export holding 5 files of the record as git holds them and 32 files of the public payload that git does not hold
Machine
the record's own machine, in a directory made for the run and removed after it; not another machine
Network
each step it ran was run in a network namespace whose only interface is a downed loopback, so no network was reachable from it
Install
not run: the install reads the npm registry and is the reader's step; in its place the rehearsal copied the Node packages the record's own machine holds
Commit step 5 checked out
98ce3ffb6f78: the commit the release names

3 rehearsals are recorded.

Tools

Placeholders and directories

The procedure

Before step 1. Sets the C locale in the shell every step runs in. GNU coreutils prints the word that ends each line of steps 1, 2 and 4 in the shell's locale; in the C locale that word is OK, as those steps state.

export LC_ALL=C
  1. Checks every file of the release against its SHA-512, as VERIFY.md's first check does. Runs from release (work/release, the release directory as /releases/<month>/ serves it). It makes no request over a network.

    sha512sum -c manifest-sha512.txt

    One line per file checked, each ending “: OK”, and no other line.

    Last rehearsal: printed what the step states.

  2. Checks every file against its SHA-256 as SHA256SUMS lists it. SHA256SUMS is the file the record's signature and the timestamp proofs cover; VERIFY.md's checks 3 to 7 check those, with the lines each prints. Runs from release (work/release, the release directory as /releases/<month>/ serves it). It makes no request over a network.

    sha256sum -c SHA256SUMS

    One line per file checked, each ending “: OK”, and no other line.

    Last rehearsal: printed what the step states.

  3. Unpacks the bag from the release's archive. Runs from work (an empty working directory, holding the release directory under the name release). It makes no request over a network.

    tar -xzf release/gxplex-record-<month>.tar.gz

    Prints nothing.

    Last rehearsal: printed what the step states.

  4. Checks every payload file of the bag, then every tag file, against the bag's own SHA-256 manifests (RFC 8493). Runs from bag (work/gxplex-record-<month>, the bag the release's archive unpacks to). It makes no request over a network.

    sha256sum -c manifest-sha256.txt
    sha256sum -c tagmanifest-sha256.txt

    One line per file checked, each ending “: OK”, and no other line.

    Last rehearsal: printed what the step states.

  5. Takes the software from the repository at the commit the release names. A release carries the record and not the software that builds the site, so this step needs a copy of the repository besides the release. Runs from work (an empty working directory, holding the release directory under the name release). It makes no request over a network.

    git clone --quiet --no-hardlinks <repository> site
    git -C site checkout --quiet <head>

    Prints nothing.

    Last rehearsal: printed what the step states.

  6. Installs the Node packages at the versions package-lock.json pins. This is the procedure's one install, and it reads the npm registry unless a local cache already holds every package. Runs from site (work/site, the software at <head> with the release's record laid over it). It is the one step that reads a network.

    npm ci

    Exits 0; what it prints depends on the packages already held.

    Last rehearsal: not run.

  7. Lays the release's record over the software, at the repository paths the export keeps. Runs from work (an empty working directory, holding the release directory under the name release). It makes no request over a network.

    cp -R gxplex-record-<month>/data/export/record/. site/

    Prints nothing.

    Last rehearsal: printed what the step states.

  8. Builds the site into site/dist/ with the repository's own build script. Runs from site (work/site, the software at <head> with the release's record laid over it). It makes no request over a network.

    bash scripts/build.sh

    Exits 0, and among the lines it prints are these:

      [build] identity headers written into dist/_headers' one `/*` rule
      [pagefind] index built over dist/

    Last rehearsal: printed what the step states.

What the rehearsal does not show

The procedure file's SHA-256 is e48aaa82e03111b7116281a48bda3163f6d9ae4eee9caeac01984a125fdf2e6b.

Last updated: