Skip to content

fix: pass jobs_json via env var to fix stdin conflict in drift-to-issue#13

Merged
fullstackjam merged 1 commit into
mainfrom
fix/drift-to-issue-stdin
Jun 2, 2026
Merged

fix: pass jobs_json via env var to fix stdin conflict in drift-to-issue#13
fullstackjam merged 1 commit into
mainfrom
fix/drift-to-issue-stdin

Conversation

@fullstackjam
Copy link
Copy Markdown
Contributor

Summary

  • echo "$jobs_json" | python3 - <<'PY' is broken: the heredoc and pipe both compete for stdin. Python reads the script from the heredoc, leaving sys.stdin.read() to return an empty string, which causes json.JSONDecodeError on every run.
  • Fix: pass the JSON via JOBS_JSON env var and read it with os.environ["JOBS_JSON"] instead.

This is why drift-to-issue: All jobs have failed emails fire on every Harness run.

Test plan

  • Merge and verify the next Harness workflow run triggers drift-to-issue without error

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fullstackjam fullstackjam merged commit b69df5e into main Jun 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant