Repository navigation
test: keep a sampling-hook Off worker run and harden the rerun refusal check - #113
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the five nits from
/code-review 1a0c605^..6874ff2(#111–#112).[Unreleased]said non-worker calls behaved "as before alpha.22". alpha.21 also returned without calling FrankenPHP: its pending-fatal check, added by fix: end the worker script on a fatal error deferred by worker detection #99, sat outsideif (wrap). It now says "as before alpha.21".PROFILER_TEST_WORKER_INTERRUPT=nonechecks thefalseresult and the pending error, on every platform;keeprequires the real hook to raise the error where sampling is supported.profiler_test_sampling_bailout_order(): it no longer restoresEG(vm_interrupt), which could erase a sampling tick or signal requested in the meantime. An extra interrupt is harmless, sincesample_interruptignores interrupts it didn't request.CG(unclean_shutdown)and GC protection are still restored.RunnerRetry::alreadyRunning()and now requires both GitHub's message andHTTP 403. It is tested against gh's real output from run 45456810366.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 theHTTP 403match, fails one test each.scripts/native-unit-tests.shpasses, with all four Off runs.make fmt-checkpasses.Not checked locally: the
keepassertion can only fail on Linux, where sampling is supported. CI runs it there; I haven't run a break test for it.