Repository navigation
fix(ci): escape heredoc << in CircleCI ios-testflight config - #440
Conversation
Live-triggering pipeline #145 (release-build + firebase-distribution + ios-testflight together) failed outright with a config compile error before any job ran: Error calling workflow: 'manual-ios-testflight' Unclosed '<<' tag ('<<' must be escaped as '\<<' in config v2.1+) cat > ExportOptions.plist << EOF CircleCI's own config v2.1+ template engine uses << >> for pipeline parameter interpolation (same syntax already used correctly throughout this file, e.g. << pipeline.parameters.foo >>) and collides with a literal bash heredoc `<< EOF` in the "Create Export Options" step — not caught by plain YAML parsing (python's yaml.safe_load, used to validate every prior PR in this series) since it's a separate preprocessing pass CircleCI itself runs. Fixed by escaping as \<< per CircleCI's own error message. Grepped the rest of the file for other `<<` occurrences — everything else is a legitimate pipeline. parameters/pipeline.number reference, no other instances of this bug. No real side effects from the failed trigger: the whole pipeline errored at compile time, before release-build/firebase-distribution/ ios-testflight jobs started, so no APK was built/signed and no real Firebase Distribution notification went to testers. Also folds in an earlier uncommitted .gitignore addition (.claude/settings.local.json, used for narrowly-scoped one-shot permission grants while pushing CircleCI secrets this session). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
This PR was opened outside the automated pipeline (author isn't |
Principal review —
|
📱 iOS Build Status: PASSED✅ iOS Simulator Build & Unit Tests - success iOS UI tests run in a separate, informational job and are not reflected above — check "iOS UI Tests (informational)" for those. |
Summary
Live-triggering CircleCI pipeline #145 (release-build + firebase-distribution + ios-testflight together, part of verifying #379/#378 end to end) failed outright with a config compile error, before any job ran:
CircleCI's own config v2.1+ template engine uses
<</>>for pipeline parameter interpolation — same syntax already used correctly throughout.circleci/config.yml(e.g.<< pipeline.parameters.foo >>) — and it collides with a literal bash heredoc<< EOFin theios-testflightjob's "Create Export Options" step. Not caught by plain YAML parsing (python3 -c "import yaml; yaml.safe_load(...)", used to validate every prior PR in this series) since CircleCI's parameter interpolation is a separate preprocessing pass, invisible to a plain YAML parser.Fix
Escape as
\<<per CircleCI's own error message. Grepped the rest of the file for every other<<occurrence — all are legitimatepipeline.parameters/pipeline.numberreferences, no other instances of this bug.No real side effects from the failed trigger
The whole pipeline errored at compile time, before
release-build/firebase-distribution/ios-testflightstarted — no APK was built or signed, and no real Firebase Distribution notification went to testers (the point of that trigger's custom release notes was exactly to make it obviously a test if it had gone out — it never got that far).Also included
An earlier uncommitted
.gitignoreaddition (.claude/settings.local.json, used for narrowly-scoped one-shot permission grants while pushing CircleCI secrets this session).Testing
python3 -c "import yaml; yaml.safe_load(open('.circleci/config.yml'))"— syntax valid (as before — this bug is invisible to that check, which is exactly why it needed a live trigger to surface).🤖 Generated with Claude Code