Skip to content

test(serve-debug): unify readiness on the Server-banner guard (parity) + fix carbon bench scss drift - #193

Merged
tina4stack merged 1 commit into
v3from
fix/serve-debug-parity-and-carbon
Oct 2, 2026
Merged

tina4stack merged 1 commit into
v3from
fix/serve-debug-parity-and-carbon

Conversation

@tina4stack

Copy link
Copy Markdown
Owner

Parity (the point)

The serve-debug harness now reads identically across python/php/ruby — no cross-framework surprises:

clean child env (python env= filtered — the idiomatic equivalent of ruby's unsetenv_others) → wait for the child's own Server: http://…:<port> banner (the boot banner all four frameworks print) → poll /__dev → retry on a fresh port.

This replaces the python-only sentinel-route guard I'd added (speculative — python was never vulnerable to the ruby-only ENV-inheritance flake, since env= already replaces the environment). Ruby's proven banner approach is unchanged; python/php now match it. PYTHONUNBUFFERED=1 so the banner reaches the log immediately. Verified 4/4 single, 12/12 under CPU load; no mocks.

Carbon benchmark drift fix

bench_startup() imported tina4_python.scss.compile_string — a module removed when SCSS compilation moved to the Rust CLI — which crashed carbon_benchmarks.py --carbon. Dropped the dead import; the run now completes all 9 categories (SCI grade APlus each, region ZA, modelled on a host without a hardware energy counter). Python-only drift (php/ruby/node benchmarks carry no scss reference).

🤖 Generated with Claude Code

…d (parity); fix carbon bench scss drift

Parity: the serve-debug harness now reads identically across python/php/ruby
-- clean child env (python env= filtered, the idiomatic equivalent of ruby's
unsetenv_others) -> wait for the child's own 'Server: http://...:<port>'
banner (the cross-framework boot banner all four print) -> poll /__dev ->
retry on a fresh port. Replaces the python-only sentinel-route guard so there
are no cross-framework surprises; ruby (the proven banner approach) is
unchanged. PYTHONUNBUFFERED=1 so the banner reaches the log immediately.
Verified 4/4 single + 12/12 under CPU load; no mocks.

Carbon benchmark: bench_startup imported tina4_python.scss.compile_string,
a module removed when SCSS compilation moved to the Rust CLI -- the import
crashed . Dropped the dead import; the run now
completes all 9 categories (SCI grade APlus each, region ZA, modelled on a
host without a hardware energy counter). python-only drift; php/ruby/node
benchmarks carry no scss reference.

Signed-off-by: Andre van Zuydam <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Tina4 <[email protected]>
@tina4stack
tina4stack merged commit 393e23d into v3 Oct 2, 2026
15 checks passed
@tina4stack
tina4stack deleted the fix/serve-debug-parity-and-carbon branch October 2, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants