Repository navigation
Description
Summary
Baseline, 2026-09-22 to 2026-10-20. A (build): deploy reached production in a median of 1090 s (18.2 min), with a p90 of 1386 s (23.1 min). That covers 14 deploys from 2026-09-22 to 2026-10-20. A PR run took a median of 519 s.
After #565. M1 after: see #569 Measured 6812443811. Window 1 missed the 620 s target (ruling). #760 owns the M5 rise.
This tracker makes the pipeline start each piece of work as soon as its inputs exist. It skips work that a change cannot affect, and it reuses work from earlier runs. Every run reports its own timings.
Targets are computed from measured steps, not measured end to end. #569 measures the real result.
- After Build the deploy images while the quality gates run #565 lands, the median time to live is about 620 s or less. Build the deploy images while the quality gates run #565 with set B saves about 476 s: 1090 − 476 ≈ 614 s.
- After set E, the stretch goal is about 540 s. That holds only if the Measure whether the backend image build still needs --no-cache #566, Run the backend and webapp image builds at the same time, to cut the image build step #567 and Measure and trim the Next.js build-trace step in the webapp build #568 experiments keep their changes.
Where the time went (baseline, 2026-09-22 to 2026-10-20):
- The gate path ends before
🚀 Deploy Productionstarts, at a median of 417 s. - Then
🏗️ Build Docker Imagesruns on the prod host for a median of 546 s. - The deploy tail, from
🔧 Ensure Infrastructureto🩺 Verify Deployment, takes about 76 s. M5, the roll-out step alone, takes 57–70 s.
The image build reads no gate output, but it waits for every gate. Inside it:
Part of 🏗️ Build Docker Images |
Seconds |
|---|---|
Backend build --no-cache call, run alone first |
69–80 |
Two webapp bun install runs, never CACHED in 6 parsed deploys |
144–182 |
Webapp next build, with "Collecting build traces" alone at 99–119 |
185–262 |
There is also one live safety bug. A failed image build rolls all five live services back, and the notice then says production is unchanged. #555 fixes it first.
Some runs showed 25–30 min in the GitHub UI. That extra time came from GitHub incident tails and manual re-runs, not from pipeline work. For example, run 39275929831 shows 1643 s, but production was live at +994 s.
Benchmark
Tracker ledger. Each child owns its own Benchmark section. A row is "done" when the child closes with its after value posted. #796 holds every before and after number; this table keeps child, metric and status only. Reads dated 2026-11-11 come from the GitHub API and job logs on that day.
| Child | Metric | Status |
|---|---|---|
| #569 | M1 time to live: run createdAt to the end of 🩺 Verify Deployment |
window 1 done, ruled a clear win 2026-11-12 (Measured); window 2 open; the issue closed in v2.3.6 |
| #555 | Rollback scope after a failed image build | done, closed 2026-11-03 |
| #556 | Timing table in every run summary | done, closed 2026-11-10 |
| #557 | Watchdog repo secrets set | open: maintainer sets the secrets |
| #558 | Start wait of the Ext suites and the webapp unit job (ext_wait, unit_wait) |
done, closed 2026-11-10 |
| #559 | Sum of the two webapp bun install steps per deploy |
open: hand check 3 and one bun run format |
| #560 | Type-check phase in the Docker next build |
done, closed 2026-11-03 |
| #561 | active_caches_size_in_bytes |
done, closed 2026-11-11 |
| #562 | Ext suites started by a README media change | open |
| #563 | Suites run per PR or non-deploy push (M6) | open |
| #564 | free_gb after the prune |
done, closed 2026-11-09 |
| #565 | Image build waits for the gates (W) | done, closed 2026-11-10 |
| #566 | Backend --no-cache A/B |
open |
| #567 | Parallel image builds | open; guard is SP5 |
| #568 | "Collecting build traces" window | done, closed 2026-11-03: no go |
| #552 | Runner restricted to main deploys |
open |
| #756 | Used bytes on / outside the build cache, after the prune |
open, wave 3 |
| #759 | Cancel paths; M6 of an .agents/**-only change |
open, wave 4 |
| #760 | M5 roll-out step seconds; long retires | open, wave 3 |
| #794 | bun run typecheck wall time, 15 workspaces |
open: the CI read (3) is left |
| #795 | bun run check:ci wall time with the bun fmt gate |
open: the CI read (3) is left |
| Set F, ten items (Q1–Q9, Q11) | per child | not filed; not in v2.3.7 (see Set F) |
Guard for every child that adds host build load (SP5): rest-api max event-loop lag per 🧱 Build Images window. Before, from a review read on 2026-11-11: median 187 ms, range 78–369 ms, n = 6 build windows (2026-11-09 to 2026-11-11). REST p95 and collab p95: posted in Measured, 2026-11-11. REST p95 window median 96 ms (82–99 ms). Collab p95 has data in 2 of 6 windows. Control lag median 89 ms (75–115 ms); the earlier review read gave 95 ms (66–114 ms).
Condition: GitHub-hosted gates, plus the image build on the old 4 vCPU, 16 GB production host. Every row names its host. The sample count restarts at the #747 cutover.
Claim: the #569 ruled sentence (ruling), in seconds. M1 after: see #569 Measured 6812443811. #796 holds the one copy of the claim; this tracker does not restate it.
Maintainer rulings
Ruled by the maintainer on 2026-10-20. The same text is posted as a Maintainer ruling, 2026-10-20 comment on this issue. Children cite these rules by number and do not copy them.
- The headline metric is time to live: from run
createdAtuntil the🩺 Verify Deploymentstep ends. Measure CI/CD time to live after the v2.3 work: 1090 s median before #569 owns every metric definition. - The baseline is the last 30 days of
(build):deploys, with the median and the p90. Results are split by "Ext suite ran" and by cache class, not byfront/back+front. - The final "after" result needs at least 8 successful attempt-1 deploys after Build the deploy images while the quality gates run #565 lands, or 30 days, whichever comes first. The median verdict is posted at 8. The p90 is judged at 10 or more. A set that lands mid-sample does not restart the count; each row is tagged with the later sets it contains.
- Controlled A/B deploys are allowed only for the backend
--no-cachequestion (Measure whether the backend image build still needs --no-cache #566). - Results live in each run's step summary and on these issues. There is no dashboard.
- "Smart" means all three: start early, skip what a change cannot affect, and reuse earlier work.
- Every deploy still runs the migration and rolls all three backend services. Nothing here skips the backend on a
(build): frontdeploy. - The Ext suites and the webapp unit job stop waiting for
back-validation. - PRs and non-deploy pushes run only the suites their change can affect. The weekly cron still runs everything.
- A docs-only push skips the app jobs.
- Building early is accepted, with a cleanup step.
- Building early does not wait for a runner limited to
main. Runner hardening is Restrict the production self-hosted runner to main deploys #552. - The early image job honours
skip_quality_gates, asbuilddoes. - The host size is known. It limits only Run the backend and webapp image builds at the same time, to cut the image build step #567.
- Landing order: Roll back only after the deploy has started rolling services #555 first, as its own commit. Then Prune Docker build cache toward a free-disk target and keep rollback images #564, because it is a disk-safety fix. Then the rest of set A (Write a timing table to every CI/CD run summary #556, Make CI failures reach Telegram: set the watchdog secrets, alert on red E2E pushes #557), then sets B and C, then Build the deploy images while the quality gates run #565, then set E, then Final. Within set E, Measure whether the backend image build still needs --no-cache #566 finishes before Run the backend and webapp image builds at the same time, to cut the image build step #567 merges.
- Each child's Decisions were ruled on 2026-10-20 as recommended. Each child states the chosen behaviour in its steps and has no open Decision.
Later rulings live in dated Maintainer ruling comments: 2026-10-24 (deploy reads wait for the final push), 2026-11-04 (milestone move), 2026-11-06 (Bun pin 1.4.4) and 2026-11-10 (Q1–Q11).
- Milestone v2.3.7, moved 2026-11-14 at the v2.3.6 release audit. This replaces the v2.3.6 setting of 2026-11-11 and the 2026-11-04 move to v2.4.0.
Child issues, in order
Each line names its change set. Each issue is its own commit, unless the issue says otherwise. The landing order is ruling 15.
Set A: safety and measurement first
- Roll back only after the deploy has started rolling services #555: Guard the rollback on a roll-started marker, and roll back to the right tag. It lands first.
- Write a timing table to every CI/CD run summary #556: Write the timing table to every run summary. Every later change is then measured the same way.
- Make CI failures reach Telegram: set the watchdog secrets, alert on red E2E pushes #557: Set the Telegram secrets, make the watchdog warn, alert on red chatroom E2E, fit the timeouts and fix stale facts.
Set B: small, independent speed-ups
- Start the extension and webapp unit tests without waiting for backend validation #558: Remove the wait on
back-validation. About 64 s median, and 114–139 s on Ext runs, until Build the deploy images while the quality gates run #565 lands. - Cut the webapp image installs from 158 s to about 25 s per deploy #559:
--ignore-scriptson the webapp installs, plus manifest-first copying. About 120 s. - Skip the duplicate type check inside the webapp Docker build #560: Skip the duplicate type check inside Docker. About 25–48 s, median 31 s.
- Keep the Actions cache under its limit and pin Bun in CI #561: Keep the Actions cache under 10 GB, and pin Bun to
1.4.4in CI. 10–25 s, mostly reliability.
Set C: change-aware gating
- Stop extension README media from triggering extension test suites #562: Stop README media from triggering extension suites. Lands before Run only the CI suites a pull request or push can affect #563.
- Run only the CI suites a pull request or push can affect #563: Run only the suites a PR or non-deploy push can affect.
Set D: overlap the image build
- Prune Docker build cache toward a free-disk target and keep rollback images #564: Prune toward a free-disk target, keep rollback images and raise the hard guard. It lands right after Roll back only after the deploy has started rolling services #555 (ruling 15).
- Build the deploy images while the quality gates run #565: Build the images while the gates run. About 340 s median alone, or about 476 s with Cut the webapp image installs from 158 s to about 25 s per deploy #559 and Skip the duplicate type check inside the webapp Docker build #560. It needs Roll back only after the deploy has started rolling services #555 and Prune Docker build cache toward a free-disk target and keep rollback images #564.
Set E: experiments on real deploys
- Measure whether the backend image build still needs --no-cache #566: A/B the backend
--no-cacheflag. It needs Roll back only after the deploy has started rolling services #555 and Write a timing table to every CI/CD run summary #556. - Run the backend and webapp image builds at the same time, to cut the image build step #567: Run the two image builds at once. It needs Build the deploy images while the quality gates run #565, and it merges only after Measure whether the backend image build still needs --no-cache #566 is finished.
- Measure and trim the Next.js build-trace step in the webapp build #568: Measure, then trim, "Collecting build traces".
Final
- Measure CI/CD time to live after the v2.3 work: 1090 s median before #569: Measure the "after" benchmark against the baseline.
Close rule (2026-11-14): this tracker closes when these 12 children close: #552, #557, #559, #562, #563, #566, #567, #756, #759, #760, #794 and #795.
Not in v2.3.7. The Set F lines below are not filed and have no milestone. They are not part of the close rule.
Set F: accepted 2026-11-10 (ruling comment of 2026-11-10, Q1–Q11). Each line stays "not filed" until its builder starts it. Then the builder files it as its own child, or folds it into the named child, and links it here. Before work starts, each child records its before value from 5 current deploys, names its owner and states its stop condition.
- Q1, not filed: Build Verification starts after
🔎 Detect Changes, beside the gates.deploytakes over the "every gate passed" check. Measure CI/CD time to live after the v2.3 work: 1090 s median before #569 redefines M2g. - Q2, not filed: one dependency-ordered
bun run --filtercall builds the extensions. Keep it only if the webapp image build saves 12 s or more. - Q3, not filed: the webapp
builderstage starts frombuild-extensionsand reuses its install. Its before value is in Cut the webapp image installs from 158 s to about 25 s per deploy #559 (builder install). - Q4, not filed: a
cache-prunejob runs after the deploy. The inline prune and the 20 GB guard stay. The 15 GB reserved build cache (Prune Docker build cache toward a free-disk target and keep rollback images #564) stays. The child measures disk free after the prune, not reclaimable bytes. Do not file it: Find what fills the production host disk, and clean it without touching the 15 GB build cache #756 owns host disk. If Find what fills the production host disk, and clean it without touching the 15 GB build cache #756 step 2 finds the cause is build cache, Q4 becomes Find what fills the production host disk, and clean it without touching the 15 GB build cache #756 step 5. - Q5, not filed:
start_interval: 1son the four other services only. The webapp healthcheck stays as it is. - Q6, not filed: a Bun-only build stage for the webapp and admin images, per the four ruled steps.
- Q7, not filed: Build Verification and local
build:ciskip Next's own type check. - Q8, not filed: a Dependabot
productiongroup for minor and patch bumps, with the pins out and Hocuspocus majors ignored. - Q9, not filed: its own child, per the 2026-11-16 ruling on Run the backend and webapp image builds at the same time, to cut the image build step #567. It is not Run the backend and webapp image builds at the same time, to cut the image build step #567 Step 1c. Try
webpackBuildWorkerandparallelServerBuildTraces, with the ruled keep rule and its own 5-deploy read. - Q11, not filed: the cheap
check:cigates run through a pool of 4.CHECK_CI_SERIAL=1runs them one at a time.
Q10 is "Not yet". It is not a child.
Related, independent: #552 restricts the production self-hosted runner to main deploys. #756 owns host disk. #759 owns the cancelled-push path test. #760 owns the M5 rise.
Claim ledger: #796. It holds the one copy of each before and after number. Ledger rows here link to the child.
Savings do not add up. Once the images build during the gates, the critical path is the longer of the gate path and the image path, plus the deploy tail. A faster gate path then saves nothing on most runs.
Shared rules
These bind every child issue.
- If a skip is not provable, run the job. Each of these means "run everything": an unmatched path, a shared config file, a missing diff base, a
workflow_dispatchand the cron. So does anything under.github/, except Markdown files and.github/ISSUE_TEMPLATE/**. - Never move a safety property.
- Production stays untouched until every gate has passed. Every step before
🔧 Ensure Infrastructuremust leave the host's running services alone. - Rolling replace, rollback, the migration gate and the in-flight deploy protection keep their meaning.
- Production stays untouched until every gate has passed. Every step before
- No new platform: no registry, no new CI vendor and no metrics stack.
- Judge Docker changes from the production build log only. Times do not transfer between a laptop and the amd64 host. Prove a cache-order change with a cache-hit check: two builds with the cache on, changing only one input. Never measure a cache fix under
--no-cache. - Samples name their host. Move production to a new Debian 13 droplet #747 moves production to a new host. Measure CI/CD time to live after the v2.3 work: 1090 s median before #569 restarts its sample count at the cutover. After the cutover, the builder re-reads Host facts with the same read-only commands and dates the new table.
- Count attempt 1 only. A
gh run rerunkeeps the runcreatedAt, so its M1 or M6 includes the wait since attempt 1. For n = 5, use 5 real runs or 5 empty commits. Never take n = 5 from reruns. - Settled Docker rules (AGENTS.md §Docker):
- no
--parallelondocker compose build; - no build-once-then-
docker tagstep; - no
chown -R; - no copying
node_modulesbetween stages.
- no
Shared procedures
Children link here by name, for example "#554, SP1". Each procedure has one home.
SP1. Live-run check, before any push or dispatch
A push or a dispatch on main joins the workflow-level -quality concurrency group, which sets cancel-in-progress: true (prod.docs.plus.yml:68-70, at 0b302b222).
- The new run cancels every job of the older run that has not started yet.
- A job that is already running under
always()keeps running. In run 34223310158,🚀 Deploy Productionkept rolling and endedsuccess, while run 34224526419 waited for it. - So a push can still cancel a deploy that has not started, or the jobs after it.
- The
imagesjob has its own-imagesgroup withcancel-in-progress: false. A new push never cancels a running image build.
Run this, and push only when it prints 0:
gh run list --repo docs-plus/docs.plus --workflow prod.docs.plus.yml --branch main --limit 10 \
--json status -q '[.[] | select(.status != "completed")] | length'If it prints more than 0, wait for the run to end, then run it again.
SP2. Commit and push
- Work on
main. Make one commit per issue, unless the issue says otherwise. - Use a subject that does not start with
(build):, unless the issue asks for a deploy. A deploy reads only the subject of the pushed tip commit. git pushrunsbun run check:cithrough husky. Stop any Next development server of this checkout first, or the hook refuses the push. Never use--no-verify.- Run SP1, then push.
- To deploy a change, push a tip commit whose subject starts with
(build):and names the domains, for example(build): front back.
SP3. Record the result
After the first deploy that carries the change, post this comment on the child issue:
Measured, <YYYY-MM-DD>
Run: <run id>, attempt 1
On main: <child issues already landed>
M1 <s> | M2g <s> | M2i <s> | M3 <s> | M4 <s> | M5 <s> | W <s> | free_gb <n> | cached_installs <0-2>
host <old|new> | rest_p95 <ms> | ws_p95 <ms> | lag_max <ms>
Expected: <the child's expected value>
Verdict: keep, or revert (reason)
Read the values from the run's step summary (#556). Before #556 lands, read them from the run's job and step times, as #569 shows. cached_installs is never in the summary; read it from the BuildKit log, as #569 shows. The metrics are defined in #569.
The guard fields come from SP5. ws_p95 is the collab p95 that SP5 defines. Tick the child's box on #554 the same day the child closes.
SP4. Revert
Each child names its stop condition. When a stop condition fires:
- Run SP1.
- Run
git revert <commit>for that child's commit only. Use a subject that does not start with(build):. - Push it (SP2).
- If the change affected the deploy, push a
(build):tip commit to deploy the revert. - Post
Reverted, <date>on the child issue, with the run id and the reason.
SP5. User-impact guard
Images build on the host that serves users. Any child that adds host build load runs this: #565, #567, Q2, Q6 and Q9. #567 uses SP5 as its guard and has no second rule. Owner: the agent in the repo drafts; the maintainer runs the Grafana reads. The vmstat 1 host read is the maintainer's, on the next (build): deploy; post the median st and wa on #567.
- In each
🧱 Build Imageswindow, read per job.<W>is the window length in seconds:max(max_over_time(nodejs_eventloop_lag_max_seconds{job="rest-api"}[<W>s]));- REST p95, window:
histogram_quantile(0.95, sum by (le) (increase(http_request_duration_seconds_bucket{job="rest-api"}[<W>s]))). Recorded as a field (step 6); - collab p95, window: the same query on
document_load_duration_seconds_bucket{job="hocuspocus-server"}. No WebSocket round-trip histogram exists, so this stands in forws_p95; - recorded only: the peak of
histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket{job="rest-api"}[5m])))over the window.
- Read the same clock window 24 h earlier, with no build, as the control.
- Use n >= 5 windows. Prometheus keeps 15 days, so post each before read as a Measured comment within that time.
- Stop and revert per SP4 if rest-api max lag is above 450 ms on 3 of 5 windows. This is the step 6 retune, ruled 2026-11-12.
- Store gauges, one rule for every child. Read
queue_jobs{queue="store-documents",state="failed"},sum(queue_jobs{queue="store-documents-dlq"})andincrease(document_store_rejections_total[30m])before the build and 10 minutes after the deploy. Stop and revert per SP4 if any rises. The maintainer reads them in Grafana. Measure whether the backend image build still needs --no-cache #566 and Run the backend and webapp image builds at the same time, to cut the image build step #567 use this rule. - Retune, ruled 2026-11-12. Stop only on rest-api max lag above 450 ms on 3 of 5 windows. REST p95 without probes and collab p95 are recorded as fields, not stop rules. Reason: two of six before windows read 368 and 369 ms, within 6 ms of the old 374 ms line.
SP6. Deploy-tail content check
Any child that changes M5, healthchecks, stop timing or roll order runs this on its first deploy. Ruling 7 rolls all three backend services on every deploy. M5 rose from 58–59 s to 93 s and 103 s on 2026-11-03. #760 owns the cause. The general content-safety checklist lives in #762; SP6 holds only the deploy-specific steps.
- The maintainer creates a scratch pad. Never type into /demo.
- Open the scratch pad in two browsers: desktop Chrome and phone Safari.
- Type in both through the whole roll window.
- After the deploy, open the scratch pad in a fresh private window with no local copy. Compare the full text with what was typed.
- Go offline in one browser, type, then go back online. The text must sync to the other browser.
- Confirm that failed store jobs and the dead-letter queue stay at 0.
- Record the result in the SP3 comment. Delete the scratch pad.
- On any missing word, stop. Keep the pad, revert per SP4, and post the counts.
SP6 applies only to the changes in its first line. #559, #566 and #657 change none of those, so they do not run it (review, 2026-11-16).
Host facts, 2026-10-20 (old host, before #564)
Read with read-only commands at 11:32 UTC on 2026-10-20, while that day's third deploy (run 39414945889) was building.
| Fact | Value |
|---|---|
| CPU and RAM | 4 vCPUs, 16 GB RAM, 9.7 GB available during a build |
| Disk | 158 GB, 27 GB free during a build (47 GB before that day's first deploy) |
| Docker | Engine 29.1.3, Compose 5.0.0, buildx v0.30.1 |
| Build cache | 44.2 GB, 37.84 GB reclaimable |
Disk is the binding limit:
- The 24 h age prune freed 0 B on all three deploys of that day.
- One build writes about 14 GB (47 GB free, then 33 GB, on 2026-10-20).
- The hard guard aborts only below 10 GB.
Not doing
- Skip the backend images on
(build): front. Ruling 7. - Build on hosted runners and push to GHCR, for now. It needs 14
NEXT_PUBLIC_*values copied into GitHub. Revisit it if free disk stays under the Prune Docker build cache toward a free-disk target and keep rollback images #564 prune target for a week after Prune Docker build cache toward a free-disk target and keep rollback images #564 lands. Kept by the Q10 "Not yet" ruling (2026-11-10). - Turbopack.
next-pwa, thechunkGraphexclude and the Sentry plugin need webpack. - A BuildKit cache mount with a 168 h prune, and prune only below 30 GB free. Both were refuted on disk safety.
Build Verification in parallel with the gates.Overturned 2026-11-10 (Q1); see Set F.OneOverturned 2026-11-10 (Q2); see Set F.RUNfor the extension builds..next/cachein CI and atsbuildinfocache. After Build the deploy images while the quality gates run #565 these are off the critical path, or they save 12 s or less.- Gate deploys on chatroom E2E, for now. Make CI failures reach Telegram: set the watchdog secrets, alert on red E2E pushes #557 adds the alert first. The suite was red on 15 of 16 pushes (Make CI failures reach Telegram: set the watchdog secrets, alert on red E2E pushes #557, 2026-11-03 to 2026-11-11).
Amended 2026-11-06 (maintainer ruling): the Bun pin reads 1.4.4, after 72f08af7a (#650, #651).
Activity
HMarzban commentedon Oct 20, 2026
Maintainer ruling, 2026-10-20
The maintainer ruled on every open question in this tracker and its children, in chat on 2026-10-20. This comment is the record. The tracker body lists rulings 1–16. Each child now states the chosen behaviour in its steps.
Tracker rulings
1–14 as in the tracker body, with two updates:
front/back+front.Landing order: Roll back only after the deploy has started rolling services #555 first, as its own commit. Then Prune Docker build cache toward a free-disk target and keep rollback images #564, a disk-safety fix. Then the rest of set A, then sets B and C, then Build the deploy images while the quality gates run #565, then set E, then Final. Measure whether the backend image build still needs --no-cache #566 finishes before Run the backend and webapp image builds at the same time, to cut the image build step #567 merges.
Every child Decision, as recommended:
workflow_dispatchfromrefs/heads/mainonly. Require SHA-pinned actions. Add "Restrict updates" tomain safety, with the maintainer as the only bypass actor. Stop the stage runner until adevbranch exists.ROLL_STARTED. Also fix the rollback tag (export DEPLOY_TAG="${PREVIOUS_TAG}"). Test B in a fork is the optional test. Land as its own commit at the front of set A.always(). Also printload1.sentry-clicheck.skip_quality_gatesdispatch keeps the Docker type check. Land after #555.1.4.1. Delete thechatroom-e2e.ymloverride. No manual cache deletion. No single-saver job.extensions/*/assets/**. Add.github/filters/**to_shared. Land as its own non-deploy commit..mdunder anysrc/counted as code. Type Check and Backend Validation start after🔎 Detect Changes. Backend Validation stays off for pushes without(build):. Ext suites skip on docs-only. Keep.github/**in Shared, except Markdown and issue templates. Land after set B.--reserved-space 15GB,--min-free-space 45GB, a 20 GB hard guard. Keep only this run's tag,PREVIOUS_TAGand in-use images. Land right after #555, before #565. Calldocker buildx pruneby name.-imagesconcurrency group. Cleanup rules as written. Lands after sets A to C and after #564 (ruling 15). One sharedscripts/ci/prepare-deploy-env.sh. The cleanup job checks for a live run withcurlon the host. Noenvironment: productiononimages. Accept the sourcemap upload before the gates. No forced gate failure.--no-cacheonly when all three test conditions hold. Accept cachedapt-getlayers. Allow one extra dispatch. Run after #556 and before #567 merges. Remove the timing line after the test.HMarzban commentedon Oct 24, 2026
Maintainer ruling, 2026-10-24
Deploy-based measurements wait for the maintainer's final push. During the v2.3.0 run, agents build and test each CI/CD child locally and commit it on local
main. Every step that needs a real deploy, a dispatch or a run onoriginruns after that push. So those children stay open past the run, marked "awaits the final push".test(hocuspocus): skip the Redis-only worker tests when REDIS_HOST is…
HMarzban commentedon Nov 3, 2026
Status, 2026-11-03. Sets A to D are pushed and deployed on 2026-11-03 in run 41608014517. Its time to live (M1) is 598 s, against a 1090 s baseline median. One deploy is a read, not the #569 result.
Left:
HMarzban commentedon Nov 3, 2026
Status, 2026-11-03 (after the 1b05cb2 deploy).
(build):deploys now carry sets A to D: 41608014517, 41626334830, 41636667896 and 41677887088. Their M1 values are 598, 633, 670 and 616 s. The baseline median is 1090 s.3298c7f83. It is not a benchmark sample (benchmark sample: no).🔧 Ensure Infrastructuretook 0 s and 1 s on the two runs after the Traefik host fix.docker stopof old replicas. The cause is not known yet.Left:
dry_run_subject='(build): front'dispatch covers Write a timing table to every CI/CD run summary #556, Run only the CI suites a pull request or push can affect #563 (first) and Build the deploy images while the quality gates run #565 B1.free_gbread.HMarzban commentedon Nov 4, 2026
Maintainer ruling, 2026-11-04
Moved from milestone v2.3.0 to milestone v2.4.0, from the v2.3.0 open-issue review. The tracker closes only after #569, which moves with set E.
The issue stays open. Its remaining items are unchanged.
HMarzban commentedon Nov 6, 2026
Maintainer ruling, 2026-11-06
The acceptance list is amended in the issue body. Each changed line is marked with this date.
1 remaining item
HMarzban commentedon Nov 10, 2026
Maintainer ruling, 2026-11-10
Answers to the ruling questions of the 2026-11-10 comment, quoted as given.
🔎 Detect Changes, beside the gates. The deploy job takes over the "every gate passed" check, and Measure CI/CD time to live after the v2.3 work: 1090 s median before #569's M2g is redefined. This overturns "Build Verification in parallel with the gates" in Not doing.bun run --filtercall builds the extensions, as a trial. Keep it only if the webapp image build saves 12 s or more. This overturns "oneRUNfor the extension builds" in Not doing.builderstage starts frombuild-extensionsand reuses its install. Update AGENTS.md §Docker, the Dockerfile comments and Cut the webapp image installs from 158 s to about 25 s per deploy #559's Target in the same change.cache-prunejob runs after the deploy. The inline prune stays, and so does the 20 GB guard.start_interval: 1s, which needs no ruling.nodejsin the image. Compare the route table, the.nft.jsonfile lists, the standalone tree, the build time and the peak memory with today's build.build:ci. Askip_quality_gatesdispatch keeps it, as Skip the duplicate type check inside the webapp Docker build #560 ruled. This reverses Skip the duplicate type check inside the webapp Docker build #560's stated scope. Revisit it if Benchmark bun check against tsc in every workspace #654 moves the gate tobun check.productiongroup takes the minor and patch bumps. The pinned packages stay out of it, and Hocuspocus majors are ignored.webpackBuildWorkerandparallelServerBuildTraces. Keep them only if Run the backend and webapp image builds at the same time, to cut the image build step #567's sampler shows at least 2048 MB free at the lowest point, a swap rise of 512 MB or less, no restarts and no exit 137. Otherwise revert the two lines.check:cigates run through a pool of 4.CHECK_CI_SERIAL=1runs them one at a time again.When the build starts, each accepted item becomes its own child of this tracker, or joins an existing child.
HMarzban commentedon Nov 10, 2026
Maintainer ruling, 2026-11-10
Q10, "Not yet". The deploy images keep building on the production host. Revisit a hosted build, passed as an Actions artifact with no registry, after #567 and #569, and only if the median image build still finishes more than 60 s after the gates. "Build on hosted runners" stays in Not doing until then.
With this answer, every question of the 2026-11-07 review is ruled.
HMarzban commentedon Nov 11, 2026
Measured, 2026-11-10: image builds on the production host
These numbers are for the "Not doing" item "Build on hosted runners and push to GHCR, for now". The ruling stands. Nothing here asks to reopen it yet.
Collecting build tracesto the route table took 151.7, 155.4, 163.2 and 197.0 s on the host. The hosted Build Verification of the same commits took 29.9, 44.9, 51.3 and 47.4 s, so the host is 3.18 to 5.07 times slower. The window was 99.3 to 118.6 s before 2026-11-03 (Measure and trim the Next.js build-trace step in the webapp build #568). Nobody has measured why.Before anyone revisits the ruling, take two cheap reads:
vmstat 1on the host through the trace window. Read CPU steal (st) and I/O wait (wa).No child issue is filed for this.
HMarzban commentedon Nov 11, 2026
Status, 2026-11-11
Milestone. This tracker stays in v2.3.6, the benchmark milestone, by maintainer ruling on 2026-11-11. That replaces the 2026-11-04 ruling that moved it to v2.4.0. Nothing else in the 2026-11-04 ruling changes: the tracker closes only after #569.
Note on the 2026-10-20 ruling comment. The body is current. In ruling 16, the #561 row says "Pin Bun to
1.4.1". The 2026-11-06 ruling superseded it. The pin is 1.4.4 (72f08af7a, #650).Body changes today:
.next/cacheandtsbuildinfo. "Build on hosted runners" now cites the Q10 "Not yet" ruling.0b302b222, lines 68–70.Owners for the two reads in the 2026-11-11 Measured comment:
(build):deploy. Runvmstat 1on the host through the trace window. Post the medianstandwa. If Q9 folds into Run the backend and webapp image builds at the same time, to cut the image build step #567, post this read on Run the backend and webapp image builds at the same time, to cut the image build step #567.HMarzban commentedon Nov 11, 2026
Measured, 2026-11-11. SP5 before read: rest-api max event-loop lag, REST p95 and collab p95, in one read.
Windows
Each window is the
🧱 Build Imagesjob of a(build):push run ofprod.docs.plus.yml, from job start to job end (gh run view <id> --json jobs). The control is the same clock window 24 h earlier. No build ran in any control window. The primary set is the 6 windows of the earlier lag read (2026-11-09 to 2026-11-11). The 9 older windows (2026-11-03 to 2026-11-07) are still in the 15-day store, so they are below as extra rows.Queries
Prometheus instant queries at the window end.
<W>is the window length in seconds (390 s to 533 s).max(max_over_time(nodejs_eventloop_lag_max_seconds{job="rest-api"}[<W>s]))histogram_quantile(0.95, sum by (le) (increase(http_request_duration_seconds_bucket{job="rest-api"}[<W>s])))max_over_time((histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket{job="rest-api"}[5m]))))[<W>s:15s])document_load_duration_seconds_bucket{job="hocuspocus-server"}sum(increase(document_load_duration_seconds_count{job="hocuspocus-server"}[<W>s]))The window p95 is the number the stop rule compares. It gives one value per window and uses every request in it. The peak column reads the SP5 query as written. Its first point also covers the 5 min before the build.
Result, 6 windows (2026-11-09 to 2026-11-11)
n = 6.
/metricsmake up 84–100 % of rest-api requests in these windows. Other routes give 0 to 63 requests a window. So REST p95 mostly measures probe latency. Without probes, the window p95 is 10–242 ms on the build side and has no data in one control.hocuspocus-serverlogs 0 to 5 document loads in a build window. Its p95 is a bucket estimate from those few loads.Extra rows, 9 windows (2026-11-03 to 2026-11-07)
Max lag: build median 101 ms (67–195 ms), control median 84 ms (60–116 ms). REST p95: build median 94 ms (93–223 ms).
What it means for the SP5 stop rule
Raw responses:
554-sp5-windows.json,554-sp5-no-probes.jsonand554-build-windows.jsonin the evidence folder.HMarzban commentedon Nov 12, 2026
Measured, 2026-11-11 (copy of #569)
This is a copy of the #569 window 1 result, as #569 acceptance asks. Source: #569 Measured, 2026-11-11. Ruling: #569 Maintainer ruling, 2026-11-12. If the two differ, #569 wins. The ruling names #760 as the M5 owner, in place of "candidate #746" in the copied text.
Setup: gates on GitHub-hosted ubuntu-latest; images and deploy on the 4-vCPU self-hosted production runner; window 2026-11-03 to 2026-11-07; Bun 1.4.4; n = 8.
Window: 41608014517 (2026-11-03) to 42344958557 (2026-11-07). n = 8 qualifying deploys.
Window 1b, for the p90 only: 41608014517 (2026-11-03) to 42582921035 (2026-11-09). n = 10 qualifying deploys.
Left out: 41669629388 (A/B dispatch (#566); its Run Report prints
benchmark sample: no; diff base only), 42443026527 (schedule run, window 1b only; its deploy job was skipped). For M6: 41608343253, 41608354341, 41626692066, 41637030759 (failed PR runs; Step 5.2 counts successful runs only).FIRST_AFTERis the first(build):push that containsIMAGES_EARLY_SHAf8d391fa4, checked withgit merge-base --is-ancestor. The 12 earlier(build):pushes do not contain it.(build): backrow.benchmark sample: yes, so the report agrees with the sample rules.72f08af7a, from row 5 on.72f08af7a); Bun check (16c59999b)72f08af7a); Bun check (16c59999b)72f08af7a); Bun check (16c59999b)72f08af7a); Bun check (16c59999b); Bun check never fails (d9bcd3d82)72f08af7a); Bun check (16c59999b); Bun check never fails (d9bcd3d82)72f08af7a); Bun check (16c59999b); Bun check never fails (d9bcd3d82)BACK_PID) and the build-traces trim (outputFileTracingExcludes) are not onmain. Every row is "no" for both.backend_no_cachestill occurs 4 times onmain, so the Measure whether the backend image build still needs --no-cache #566 A/B test is open. Every row is "A/B only".free_gbandload1come from each Run Report. The reportfree_gbequals thebench.tsvalue on all 10 rows.free_gbis 39, so no Prune Docker build cache toward a free-disk target and keep rollback images #564 comment is due.db_regionandtraefik_timeoutfollow the issue body. Every row was created before the 2026-11-11 database move.Window 1,
bun stats.ts after-all.json --from 41608014517 --to 42344958557 --before before.json:Window 1b, the same call with
--to 42582921035:All slice without the
traefik_timeoutrows (41626334830 and 41636667896), fromstats.tson the same rows less those two:Slice verdicts. A slice is a clear win when its after median is below its before minimum.
bun.lockchange, an extension change, or a gap above 24 h.traefik_timeoutrows.traefik_timeoutrows. Stretch 540 s: not measured, because window 2 has not started.bun.lockPRs, and each ran 6 Ext suites. 0 of 3 PRs ran 0 Ext suites.(build):deploy.traefik_timeoutrows.Stage check against the Verification table, window 1 (n = 8):
Missed stage: for the M1 median miss (630 against 620), two stages miss their expected values.
deployjob is 630 − 506 − 9 = 115 s from the medians. The median of per-row values is 120 s (80–147).deployjob bydb_region: NYC1 120 s (80–147, n = 8). London: no rows.deployjob without thetraefik_timeoutrows: 108 s (80–147, n = 6).deployjob, has a median of 80 s, above the 70 s limit. Its before median was 59 s.Stop condition: not met. The All median is 630 (limit 1090). Ext suite ran is 630 (limit 1354). Cold is 630 (limit 1132). No Ext suite and Warm have n = 0. The max M1 is 714 (limit 1510).
Set E window (window 2): it starts at the first
(build):push that contains the #567 commit. If #567 reverts, it starts at the #566 drop commit. It ends at the 5th qualifying deploy. It uses the samestats.tscall with--fromand--toset to those runs. Only window 2 judges the 540 s stretch. Status on 2026-11-11: not started. #567 is not onmain, and #566 has no drop commit. Rows after the #747 host move start a new sample.Method notes:
created_atto the🩺 Verify Deploymentstepcompleted_at, attempt 1 only. Nogh run rerundata is used.attempts/1/jobs, andjobs?filter=allkept to attempt 1) gives the same M1 on all 24 rows. The difference is 0 s.main:f8d391fa4andcd96b8dfb. Each step name occurs once. No regex inbench.tschanged. Log retention is 90 days.stats.tsprints M1, M2, M2g, M2i, W and M3.stage.tsgives M4, M5, thedeployjob and the M6 PR median.m2i-split.tsgives the M2i split. Both helpers copy thestats.tsmedian code.abd852f92is onmainand in every row. So "Run only the CI suites a pull request or push can affect #563 is open" is not a reason for either M6 row.created_at(16:48:07Z). The 2026-11-03 status gave 616 s, from the Run Report attempt line (16:48:08Z).stats.tson the first 6 rows prints 622. That confirms the correction: 622 s, not 621.5 s. The 2026-11-11 status comment already holds that paragraph.Claim: the All slice is a clear win (630 is below the before minimum of 777). The 620 s target is still missed, and the maintainer rules on the verdict.
"A docs.plus production deploy now goes live in a median of 630 s, down from 1090 s (n = 14 before, 2026-09-22 to 2026-10-20; n = 8 after, 2026-11-03 to 2026-11-07)."
HMarzban commentedon Nov 12, 2026
Correction, 2026-11-12 to Measured, 2026-11-11 (SP5 before read).
The first comment stays as it is.
HMarzban commentedon Nov 12, 2026
Maintainer ruling, 2026-11-12: SP5 retune
SP5 stops only on rest-api max lag above 450 ms on 3 of 5 build windows. REST p95 without probes and collab p95 are recorded as fields, not stop rules. Reason: build noise alone read 368 and 369 ms against the old 374 ms line (Measured 6803253313). This applies before #567 Step 1b uses SP5.
HMarzban commentedon Nov 14, 2026
Moved to v2.3.7 at the v2.3.6 release audit. Children #552, #557, #559, #562, #563, #566, #567, #756, #759, #760, #794 and #795 are still open. The tracker closes when every child closes.
HMarzban commentedon Nov 16, 2026
Review, 2026-11-16 (maintainer approved).
HMarzban commentedon Nov 17, 2026
Measured format. The house format now lives in release-product §Measured comment format, with the §Content-safety checklist beside it. Use that section for every Measured comment (#762, ruling A).