Skip to content

test: check the worker wrapper's false result on every platform and correct release notes - #112

Merged
phcorp merged 1 commit into
mainfrom
fix/review-followups-worker-result
Nov 30, 2026
Merged

phcorp merged 1 commit into
mainfrom
fix/review-followups-worker-result

Conversation

@phcorp

@phcorp phcorp commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Fixes from /code-review f6ee5b9^..65179da (#108–#109).

  • Important. test: cover the shutdown-report drop and the worker wrapper's false result #109's check that the worker wrapper returns false under observer=Off never ran in CI. Every Linux job supports sampling, and there the sampling interrupt hook raises the pending fatal error first, so the helper skipped the result check. The macOS jobs don't run native-bailout-tests.php. The Off worker-materialize and worker-end runs now serve with zend_interrupt_function unset, so the check runs on every platform. Reverting RETURN_FALSE to return now fails worker-materialize (exit 42); I ran that locally on macOS.
  • The Off runs' output now goes through the sanitizer diagnostics check, like the other bailout modes.
  • profiler_test_sampling_bailout_order() now restores CG(unclean_shutdown), GC protection and EG(vm_interrupt) after its caught bailout. Before, the rest of the process ended on the unclean path, which skips the debug build's leak report.
  • Release notes. fix: restore alpha.21's release notes and tighten review follow-ups #108 added a ### Fixed list to alpha.22's already-tagged section; that section is restored to match v0.1.0-alpha.22. The alpha.23 note said worker detection could defer a fatal error on a call that is not a worker's, which it can't: a deferral makes detection treat the call as a worker's. Both corrections are under [Unreleased]. Each released section now matches its own tag.
  • bridge.c: same comment correction, on the same two lines, so no ledger coordinate moves. The ledger hashes are renewed, with an audit note.

Checks run locally (macOS):

  • make fmt-check passes.
  • scripts/native-unit-tests.sh passes.

@phcorp
phcorp force-pushed the fix/review-followups-worker-result branch from 094485d to a070f39 Compare November 30, 2026 09:32
@phcorp
phcorp merged commit 6874ff2 into main Nov 30, 2026
53 checks passed
@phcorp
phcorp deleted the fix/review-followups-worker-result branch November 30, 2026 10:15
phcorp added a commit that referenced this pull request Nov 30, 2026
…l check (#113)

Fixes the five nits from `/code-review 1a0c605^..6874ff2` (#111–#112).

- **Changelog:** the alpha.23 correction under `[Unreleased]` said
non-worker calls behaved "as before alpha.22". alpha.21 also returned
without calling FrankenPHP: its pending-fatal check, added by #99, sat
outside `if (wrap)`. It now says "as before alpha.21".
- **Off worker runs:** #112 served them with no interrupt hook, so
nothing on Linux checked any longer that the sampling hook raises the
worker's deferred fatal error. Each mode now runs twice:
- `PROFILER_TEST_WORKER_INTERRUPT=none` checks the `false` result and
the pending error, on every platform;
- `keep` requires the real hook to raise the error where sampling is
supported.
- **`profiler_test_sampling_bailout_order()`:** it no longer restores
`EG(vm_interrupt)`, which could erase a sampling tick or signal
requested in the meantime. An extra interrupt is harmless, since
`sample_interrupt` ignores interrupts it didn't request.
`CG(unclean_shutdown)` and GC protection are still restored.
- **Rerun refusal:** the check moved into
`RunnerRetry::alreadyRunning()` and now requires both GitHub's message
and `HTTP 403`. It is tested against gh's real output from run
45456810366.
- **Rerun closure result:** `retry()` now throws if the closure returns
anything other than a bool, so a void closure can no longer read as
"already rerun elsewhere".

The ledger hashes are renewed, with an audit note.

Checks run locally (macOS):
- `RunnerRetryTest`: 14 passed. Reverting the bool check, or the `HTTP
403` match, fails one test each.
- `scripts/native-unit-tests.sh` passes, with all four Off runs.
- `make fmt-check` passes.

Not checked locally: the `keep` assertion can only fail on Linux, where
sampling is supported. CI runs it there; I haven't run a break test for
it.
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.

1 participant