We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c5324 commit e4f8a50Copy full SHA for e4f8a50
1 file changed
.github/scripts/poll-validation.sh
@@ -99,9 +99,13 @@ while [[ $SECONDS -lt $end ]]; do
99
exit 0
100
else
101
echo "FAILED: ${RUNTIME}"
102
- echo "$result" | python3 - <<'PYEOF'
103
-import json, sys
104
-d = json.load(sys.stdin)
+ # Write result to a temp file — avoids the bash stdin conflict between
+ # a pipe and a heredoc both trying to own python3's stdin (broken pipe bug).
+ printf '%s' "$result" > /tmp/val_result.json
105
+ python3 <<'PYEOF'
106
+import json
107
+with open('/tmp/val_result.json') as f:
108
+ d = json.load(f)
109
for variant in ("standard", "slim"):
110
section = d.get(variant) or {}
111
for f in section.get("functions", []):
0 commit comments