mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
v10.49 printed the listing the previous fix added, and it settles two releases of guessing: 7z t: archive is intact. 7z l -ba listed 51850 entries; the first five: 2026-07-28 21:58:39 D.... 0 0 bundle 2026-07-28 21:52:07 ..... 9 9 bundle\.node_version.txt 2026-07-28 21:58:36 ....A 8828928 3365469 bundle\bsondump.exe 2026-07-28 21:58:39 ....A 55313920 26791675 bundle\ferretdb.exe 2026-07-28 21:52:07 ..... 243 168 bundle\main.js ##[error]Process completed with exit code 141 bundle\main.js is right there, and the step still failed - with 141, which is 128+13, SIGPIPE. `printf '%s\n' "$listing" | head -5`: head has its five lines and exits, printf is killed writing to a closed pipe, `set -o pipefail` (which GitHub's bash sets) makes that the pipeline's status, and `set -e` ends the step. The evidence printed, then killed the job. The same mechanism is the ORIGINAL v10.48 failure, and this is the part worth keeping: `printf '%s' "$listing" | grep -qF -e "bundle\main.js"` - grep -q exits the instant it MATCHES, printf dies of SIGPIPE, pipefail reports 141, and `if !` reads that as "not found". So "wekan-10.48-win64.zip has no bundle/main.js" was printed BECAUSE the file was found. Reproduced both, exactly, in bash. Every listing now goes through a file and every reader reads the file: the win64 verify, the four `unzip -l "$zip" | grep -q " $want$"` checks on the other platforms (same trap, only luckier about the pipe buffer so far), and the five `gh release view ... | grep -qxF` asset checks. No pipe, no SIGPIPE, no pipefail verdict on a command that did its job. tests/releaseWin64AndVariants.test.cjs pins that nothing in the workflow pipes a listing into grep or head, and that the win64 verify reads its listing from a file. Thanks to xet7 !