Skip to content

DevEx: phpc doctor --gates — 005-SessionsWeb AOT + deploy ladder rows #1969

@PurHur

Description

@PurHur

Problem

#1903 tracks a doctor section for 005 VM/session gates. With #1891 ✅ (AOT execute) and #1893 / #1962 (deploy smoke), contributors still grep script/ci-defaults.env to learn the full ladder:

SESSIONS_WEB_SMOKE_GATESESSIONS_WEB_AOT_LINK_GATESESSIONS_WEB_AOT_SMOKE_GATESESSIONS_WEB_DEPLOY_SMOKE_GATE

MiniWebApp already has parallel doctor rows via #1857 / #1752 patterns.

Goal

Extend phpc doctor --gates (and lib/Doctor.php) with an ordered 005-SessionsWeb block:

Stage Env var Command when =1
VM session flash SESSIONS_WEB_SMOKE_GATE make examples-sessions-smoke
AOT link SESSIONS_WEB_AOT_LINK_GATE PHPUnit SessionsWebAotLinkTest / ExamplesCompileTest
AOT execute SESSIONS_WEB_AOT_SMOKE_GATE examples-aot-smoke.sh 005 slice
Deploy CGI SESSIONS_WEB_DEPLOY_SMOKE_GATE SESSIONS_WEB_DEPLOY_SMOKE_GATE=1 make deploy-smoke (#1962)

Show current default from script/ci-defaults.env and whether LLVM is required.

Scope

Piece Path
Doctor output lib/Doctor.php
CLI bin/phpc.php doctor subcommand
Docs examples/005-SessionsWeb/README.md, docs/local-ci-matrix.md
Tests test/unit/DoctorTest.php or PhpcDoctorTest — assert substring present

Out of scope: flipping gate defaults (#1921, #1923, #1962 follow-ups).

Acceptance criteria

./phpc doctor --gates | grep -E 'SESSIONS_WEB|005-SessionsWeb'

Verification

./phpc test --fast --filter Doctor
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev ./phpc doctor --gates

Dependencies

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions