The record as a page
On this page
The events are the factory's record, written for programs. The status report says how things stand now, in words. This is the third view: the record as one page for a person, with every change's journey drawn so that the difficult ones stand out.
GITHUB_REPOSITORY=owner/repo GITHUB_TOKEN=... python -m factory.page --out record.html
Open record.html in a browser. A token that can read the repository is enough (gh auth token gives one).
#What it shows
- A strip of totals: changes, accepted, send-backs, held for a person, accepted with no send-back.
- A row for each release line that names its workflow (the record says how), above the changes: where the line stands, when it last released, and a mark for each hold, release, undo and release that went wrong. Opening it lists them newest first, from the line's 20 most recent runs (the counts and "last released" cover only those), each with the changes it carried and a link to its run. A line with no release yet says so; if the releases could not be read when the page was built, the page says that and shows the rest.
- A row for each change, newest first: its number and title, whether it is open, accepted or closed, and a run of marks, one for each step. Send-backs are square and orange, so a change that took several goes shows as a long run of them. Under the marks, one sentence: "Sent back 3 times, then passed, accepted after 5.2 hours."
- Opening a row lists each step with its time and, for opening, reviews and acceptance, who did it. A review that sent the change back shows why, in the review's own plain words: the
In shortblock that the review standard asks every record to carry. A review record can be opened in full (up to 40,000 characters; the rest is a link away).
A review written without an In short block shows no summary, only its full text.
#What to know before relying on it
- It is a picture, taken when it was built. Nothing on it updates. Build it again to bring it up to date; the time it was taken is at the top.
- It reads the most recently changed pull requests (those into the factory file's
branch, when it names one), 60 unless--changessays otherwise, at most 200. Each costs five to ten requests to GitHub, read one change after another: about two seconds a change, so around two minutes for 60 and several for 200. - It holds what it shows. Titles and the text of reviews are inside the file, so anyone given the file can read them. Treat the file as you treat the repository: do not publish the page of a private repository where the repository's readers are not the only readers.
- Reviews are other people's words, shown as text. The page builds every element itself and sets only text: a title or a review cannot add markup or script to it. A review longer than 40,000 characters is cut, with a note; the link to it on GitHub is beside it.
- It loads two typefaces from Google Fonts and nothing else. Without a network it falls back to the system's.
- What the record does not have, the page does not have: a test failure that was run again to a pass on the same version (the record), and, for a line that names no release workflow, everything after a change is accepted.
--fragment leaves off the outer <html> document, for a host that supplies its own. --context names the gate's status if it is not independent-review.
This guide is docs/RECORD_PAGE.md in the repository, and this page is made from it. Something wrong or unclear? Open an issue or send a pull request. Next: The record of every step.