Audit and remove copied || true failure-masking
#6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
~18 s390x files carry
kill $ATTIC_PID && wait $ATTIC_PID || trueplus 4 occurrences in servers/mermaid-gpu pipelines. Per standing rule,|| trueis banned — replace with explicit exit-code handling. The attic-cleanup instances are benign but must still be converted; the pattern is copied uncritically.Removed every
|| truein scope (building/s390x + building/arm64), replacing with explicit exit-code handling that still tolerates the one benign case (the backgroundedattic watch-storeexiting non-zero after being killed):10 via the template (same commits as #1). 5 fixed directly since they're bespoke pipelines outside the template's scope: scipy-s390x ce76a0e, scikit-learn-s390x 38db510, geesefs-s390x cf25d44, attic-client-s390x 78f77d4, onnxruntime-s390x 6d27d73.
grep -rl '|| true' building/s390x/*/.woodpecker.yaml building/arm64/*/.woodpecker.yaml building/arm64/mempalace/.woodpecker/*.yamlnow returns nothing. All touched files passwoodpecker-cli lint.Note: the issue body also mentions "4 occurrences in servers/mermaid-gpu pipelines" — that's outside my assigned scope (building/s390x, building/arm64, oleks/ci-scripts only), left untouched. Flagging to team-lead as a separate follow-up if wanted.
Closing.
Follow-up: fixed the last
|| trueresidue flagged as out-of-scope above — oleks/mermaid-gpu.woodpecker/test-mermaid-gpu-worker.yamllines 37 and 42 (cat /etc/os-release || true,ls -la /dev/kfd /dev/dri/ || true). Since these are diagnostic probes whose whole point is "don't fail the pipeline if the file/device is missing," replaced with explicit branching that preserves that intent without the blanket mask:Commit: oleks/mermaid-gpu 8897228 (main).
droplet-image.yamlwas already clean (another worker had extracted its shell intoci/*.sh). Passedwoodpecker-cli lintand the repo's strict shellcheck/yamllint pre-receive hook on push.