Skip to content

ci(e2e): fix heredoc indentation in user-data script#489

Merged
DorianZheng merged 1 commit into
mainfrom
fix/e2e-heredoc-indentation
May 5, 2026
Merged

ci(e2e): fix heredoc indentation in user-data script#489
DorianZheng merged 1 commit into
mainfrom
fix/e2e-heredoc-indentation

Conversation

@DorianZheng

Copy link
Copy Markdown
Member

Summary

  • Fix bash heredoc syntax error that breaks the E2E CI "Start or create EC2 instance" step
  • YAML run: | strips 10 spaces of indentation; the sed-based heredoc placed the closing USERDATA delimiter at 12 spaces (→ 2 spaces after stripping), but bash << requires it at column 0
  • Switch from sed 's/^ //' to cat > with content at 10-space YAML indent so the heredoc body and delimiter land at column 0 after YAML processing

Fixes: https://github.com/boxlite-ai/boxlite/actions/runs/25384002678/job/74439883200

Test plan

  • Verify CI "Start E2E Runner" step no longer fails with syntax error: unexpected end of file
  • Verify the generated /tmp/user-data.sh script content is correct (no leading whitespace in script body)

YAML `run: |` strips 10 spaces of indentation. The `sed`-based
heredoc placed the closing USERDATA delimiter at 12 spaces (→ 2
spaces after stripping), but bash `<<` requires it at column 0.

Switch to `cat >` with content at 10-space YAML indent so the
heredoc body and delimiter land at column 0 after YAML processing.
@DorianZheng DorianZheng merged commit 3a4e0c6 into main May 5, 2026
9 checks passed
@DorianZheng DorianZheng deleted the fix/e2e-heredoc-indentation branch May 5, 2026 15:18
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