You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DevEx: phpc doctor --selfhost — top CFG gaps from bootstrap-inventory-triage (#2254) #2285
./phpc doctor --selfhost (#2053 ✅) prints gate defaults and copy-paste probes, but not which CFG gaps dominate the 611-file inventory (~1579 warnings in docs/bootstrap-inventory.md). Contributors still run a separate triage command (#2254) or grep the generated markdown.
Goal
Extend lib/Doctor.php::runSelfhost() (no new CLI flag name):
When script/bootstrap-inventory-triage.php exists, run --top 3 (5s timeout) and print a compact table under an Inventory triage section.
When the script is missing, print: pending #2254 — php script/bootstrap-inventory-triage.php.
Problem
./phpc doctor --selfhost(#2053 ✅) prints gate defaults and copy-paste probes, but not which CFG gaps dominate the 611-file inventory (~1579 warnings indocs/bootstrap-inventory.md). Contributors still run a separate triage command (#2254) or grep the generated markdown.Goal
Extend
lib/Doctor.php::runSelfhost()(no new CLI flag name):script/bootstrap-inventory-triage.phpexists, run--top 3(5s timeout) and print a compact table under an Inventory triage section.pending #2254 — php script/bootstrap-inventory-triage.php.unset) when message prefix matches.Optional
--jsonon doctor is out of scope (triage already has--json).Implementation hints
lib/Doctor.phpproc_opentriage subprocess; swallow stderr on timeoutscript/bootstrap-inventory-triage.phptest/unit/PhpcDoctorTest.phpAcceptance criteria
Harness:
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && ./phpc doctor --selfhost'Verification (local / Docker only)
No GitHub Actions (#394 ✅). Do not use raw
docker run -v "$(pwd):/compiler"on Runforge — usedocker-exec.sh/make test-harness.Dependencies
--selfhostentrypointLinks