Add more harness to the CI scripts (#53816)

Fixes 
<img width="1238" height="520" alt="image"
src="https://github.com/user-attachments/assets/5e6c0d93-660f-4d1a-ab8c-c9c269292eaa"
/>


If a parent script with `-euo pipefail` invokes a script, that does not
inherit the `-euo pipefail` option. Fix that by adding the flags to the
scripts needed and adjust the curl command to fail too.

Release Notes:

- N/A
d0c8109536Kirill Bulatov committed on 4/13/2026, 7:28:20 PM· committed by GitHubparent850c94c
2 files changedLine totals unavailable