Repository navigation
docs(issues): [#2386] determine the minimum self-hosted runner capacity - #2389
josecelano merged 13 commits into
Conversation
…etrospective
|
ACK ff9b82f |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
Review effort: Lite
Findings: 5
Open (5)
Documenting SSH access 'asroot' is a risky operational default (root login expands blast radius… · New Thecreatedfilter syntax appears invalid (created=>=<YYYY-MM-DD>). GitHub’s API filter format… · New The prose describes the limit as120 GiB, while the systemd unit uses--max-used-space 120GB… · New The prose describes the limit as120 GiB, while the systemd unit uses--max-used-space 120GB… · New This command performs an API call per workflow run (/actions/runs/$run/jobs), which can quickly… · New
What changed in this PR
Adds and updates documentation to determine and record the minimum viable self-hosted runner capacity for the current CI workload (issue #2386 under EPIC #1840), including operational guidance and supporting evidence/audit artifacts.
Changes:
- Added a new folder-style issue spec (#2386) plus manual verification evidence documenting queue-time analysis and measurement plans.
- Expanded
docs/self-hosted-runner.mdwith current runner facts, cost rationale, queue-time recheck commands, and clearer operational guidance (including capacity additions). - Updated EPIC tracking, repaired an archived-link regression, and improved the cleanup skill instructions to detect relative links.
| File | Description |
|---|---|
| docs/self-hosted-runner.md | Adds runner inventory, cost break-even, queue-time recheck procedure, and clarified operational/capacity guidance |
| docs/pr-reviews/pr-2383-review/PR-REVIEW.md | Adds an audit record for the Copilot review carried over from the superseded PR |
| docs/issues/open/2386-1840-self-hosted-runner-minimum-capacity/manual-verification-evidence.md | Adds queue-time/workload replay evidence and pending measurement placeholders |
| docs/issues/open/2386-1840-self-hosted-runner-minimum-capacity/ISSUE.md | Adds the #2386 specification describing goals, constraints, plan, and acceptance criteria |
| docs/issues/open/1840-improve-pr-workflow-performance-epic/EPIC.md | Adds missing sub-issue row (#2374) and a new row for #2386; updates timestamps/progress log |
| docs/issues/closed/2323-1840-hetzner-self-hosted-ci-runner/ISSUE.md | Repairs a broken relative link after archiving (#2374 moved to closed/) |
| .github/skills/dev/planning/cleanup-completed-issues/SKILL.md | Updates the skill to find relative links and notes link-checker limitations for closed specs |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| | Traffic | 20 TB outgoing per month included | | ||
| | Price | 69.49 EUR per month | | ||
| | Public IP | Not recorded in this public repository; see the server in the Hetzner console | | ||
| | SSH | Key only, as `root`, with the dedicated key from "Set Up SSH Key Login" | |
| rechecking capacity, also recheck the volume and the current per-minute prices: | ||
|
|
||
| ```bash | ||
| desktop$ gh api "repos/torrust/torrust-tracker/actions/workflows/container.yaml/runs?created=>=<YYYY-MM-DD>&per_page=1" -q .total_count |
| cache to 120 GiB (`docker system df` shows about 128.8 GB) and removes stale containers, images, | ||
| and anonymous volumes; in-use cache and running containers are never removed. The trim runs once | ||
| a day, so on busy days the cache grows well past it before the next run: on 2026-09-30 it reached | ||
| 187.6 GB (71% of the disk) by 10:30 UTC. The disk is sized to absorb that. |
| cache to 120 GiB (`docker system df` shows about 128.8 GB) and removes stale containers, images, | ||
| and anonymous volumes; in-use cache and running containers are never removed. The trim runs once | ||
| a day, so on busy days the cache grows well past it before the next run: on 2026-09-30 it reached | ||
| 187.6 GB (71% of the disk) by 10:30 UTC. The disk is sized to absorb that. |
| (`started_at - created_at`): | ||
|
|
||
| ```bash | ||
| desktop$ since=<YYYY-MM-DD>; for wf in container.yaml testing.yaml; do gh api --paginate "repos/torrust/torrust-tracker/actions/workflows/$wf/runs?created=>=$since&per_page=100" -q '.workflow_runs[].id'; done | while read -r run; do gh api "repos/torrust/torrust-tracker/actions/runs/$run/jobs" -q '.jobs[] | select((.labels | index("torrust-hetzner")) and (.runner_name // "") != "") | [.run_id, .name, .created_at, "queued \((.started_at | fromdate) - (.created_at | fromdate)) s"] | @tsv'; done |
…s and decision 6a376a7 docs(pr-reviews): record PR #2403 review audit (Jose Celano) 0f77d58 docs(issues): [#2402] tighten verification scenarios and correct the replay table (Jose Celano) 1d17fa7 docs(issues): [#2386] correct the queueing figures and date the decision (Jose Celano) 59a0d49 docs(issues): [#2386] replay cancellations event by event and narrow the memory claim (Jose Celano) ef55db5 docs(issues): add issue specification for #2402 (Jose Celano) 0da9df7 docs(issues): [#2386] record runner capacity measurements and decision (Jose Celano) Pull request description: ## Summary Continues #2386 (Determine the minimum self-hosted runner capacity, EPIC #1840) after PR #2389, and opens its follow-up #2402. - Measurement evidence for #2386, from a maintainer-approved window on 2026-09-30 (runner stopped 13:34 to 14:58 UTC, no jobs delayed): - 8 vCPU / 16 GB: build 639 s, projected job 801 s (13.4 minutes); no out-of-memory kills. - Constrained to 4 vCPU / 8 GB: build 1065 s, projected job 1227 s (20.5 minutes), at the memory limit throughout. - The 30-day queue replay rerun at the measured 801 s job: one runner has a 90th-percentile wait of 140 minutes; cancelling superseded pull-request runs cuts it to 11 (longest wait 239 to 32 minutes), a second server alone to 13. The review of this PR corrected the cancelling replay; see `docs/pr-reviews/pr-2403-review/PR-REVIEW.md`. - Capacity decision recorded in the #2386 Decision section: keep the current 8 vCPU / 16 GB server and one runner; cancel superseded pull-request runs first (#2402); add a second server only if the recheck still shows frequent waits over 15 minutes. - Specification for #2402 (Cancel superseded pull-request CI runs), created and linked as a sub-issue of #1840. - EPIC #1840: row 17 updated, row 18 added for #2402. ## Files - `docs/issues/open/2386-1840-self-hosted-runner-minimum-capacity/ISSUE.md` and `manual-verification-evidence.md` - `docs/issues/open/2402-1840-cancel-superseded-pr-runs/ISSUE.md` (new) - `docs/issues/open/1840-improve-pr-workflow-performance-epic/EPIC.md` - `docs/pr-reviews/pr-2403-review/PR-REVIEW.md` (review audit) Documentation only; no workflow or server change. ## Validation - `TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh` passed before each commit. - Commit ids cited in the issue folders are on `develop`. #2386 stays open for its close-out (retrospective and review) before archiving. Related to #2386 Related to #2402 ACKs for top commit: josecelano: ACK 6a376a7 Tree-SHA512: 7dbae9051ebc93bb3f6fb043ef4c2e94e0c19368d166aca972f9721f0995a24d3e94c02369417091e520a6296190623f408a029f35443618590e9bb8f6ac2451
|
Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: This pull request changed only documentation (the self-hosted runner capacity specification, its evidence and the related issue records), with no executable code, build or CI change. |

Summary
Implements #2386 (Determine the minimum self-hosted runner capacity), a sub-issue of EPIC #1840. The output is documentation.
docs/issues/open/2386-1840-self-hosted-runner-minimum-capacity/ISSUE.md. It started as a deferred draft; the maintainer chose to open, implement, and close an issue instead of keeping a draft as documentation.docs/self-hosted-runner.md: records the current server's facts (provider, location, server type and ID, CPU, memory, disk, firewall, versions; not its IP address), a Cost section (flat monthly server cost versus GitHub larger runners, with the break-even volume), accurateDocker E2Erouting, the fallback's rebase caveat, and "Add Runner Capacity" (a second server, never a second instance on the same server). Setup steps are referenced by section name instead of number.cleanup-completed-issuesskill find relative links.Still to do in this PR
The link will change to
Closes #2386when the remaining tasks are done.Validation
TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.shvalidate-audit-record.py --pr-number 2383: 0 failures (the docs(issues): [#2386] determine the minimum self-hosted runner capacity #2383 audit)Supersedes #2383, which was opened from a branch named after the EPIC (
1840-record-runner-capacity-decision) instead of this issue. GitHub closes a pull request when its head branch is renamed, so the same commits, rebased ontodevelop, continue here. The review of #2383 and its audit (docs/pr-reviews/pr-2383-review/PR-REVIEW.md) carry over unchanged.Related to #2386