diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-20 19:28:45 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-20 19:29:04 +0900 |
| commit | 77ff62b1e5333cd05b6c405feb2f42d0d8dcfab8 (patch) | |
| tree | 5bc6d0372c23a7e0c655699a6dfe1d0954083178 /scripts/bench | |
| parent | dc0087845355222d1cbf2820289444db3eebc87e (diff) | |
| download | php-shirabe-77ff62b1e5333cd05b6c405feb2f42d0d8dcfab8.tar.gz php-shirabe-77ff62b1e5333cd05b6c405feb2f42d0d8dcfab8.tar.zst php-shirabe-77ff62b1e5333cd05b6c405feb2f42d0d8dcfab8.zip | |
feat(php-rpc): attach worker process state to request I/O errors
A dead worker and a live one hitting a framing bug both surface as a
raw socket I/O error (e.g. "Broken pipe"), which doesn't say whether
the child crashed, was signaled, or is still running. Query the
child's exit status via try_wait() and attach it as anyhow::Context
so the panic message shows the root cause directly.
Diffstat (limited to 'scripts/bench')
| -rwxr-xr-x | scripts/bench/create-project.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bench/create-project.sh b/scripts/bench/create-project.sh index 5277cd1f..74d183bf 100755 --- a/scripts/bench/create-project.sh +++ b/scripts/bench/create-project.sh @@ -32,8 +32,8 @@ hyperfine \ --prepare "rm -rf '$TARGET_DIR-shirabe' '$TARGET_DIR-composer'" \ --export-json "$OUTDIR/results-$PACKAGE_SLUG.json" \ --export-markdown "$OUTDIR/results-$PACKAGE_SLUG.md" \ - --ignore-failure \ - --command-name Shirabe "'$BIN' create-project --profile --no-plugins --no-scripts --no-audit '$PACKAGE' '$TARGET_DIR-shirabe'" \ + --show-output \ + --command-name Shirabe "RUST_BACKTRACE=1 '$BIN' create-project --profile --no-plugins --no-scripts --no-audit '$PACKAGE' '$TARGET_DIR-shirabe'" \ --command-name Composer "composer create-project --profile --no-plugins --no-scripts --no-audit '$PACKAGE' '$TARGET_DIR-composer'" echo ">> results: $OUTDIR/results-$PACKAGE_SLUG.json" >&2 |
