Skip to content

fix(ci): release notes heredoc executed installer on runner — use template file - #1041

Merged
ajianaz merged 2 commits into
developfrom
fix/release-workflow-heredoc
Aug 15, 2026
Merged

ajianaz merged 2 commits into
developfrom
fix/release-workflow-heredoc

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

What

Unquoted heredoc << RELEASEEOF in the release workflow's Generate release notes step underwent shell expansion. Markdown backticks in the downloads table and the ```bash fence turned into command substitutions — executed on the CI runner.

Why

v0.14.3 release workflow hung for 48 minutes × 2 runs (deterministic). Log evidence (attempt 1):

  • line 22: uteke: command not found ×12 — table cells executed as commands
  • Odd backtick count → multi-line command substitution swallowed the entire Quick Start block
  • curl -fsSL …/install.sh | sh — installer ran on the runner
  • uteke-serve --port 8767 — blocking server started, never exited → hang
  • Cleanup: Terminate orphan process: pid (2130) (uteke-serve)

Changes

  • Static tail (downloads table + quick start) moved to scripts/release-notes-template.md with __VER__ placeholder
  • Workflow now: header + changelog body via grouped echo/cat, template via sed "s/__VER__/…/g"
  • Zero shell expansion over markdown content — backticks can never execute again

Testing

  • Local dry-run of the new generate step: completes instantly, exit 0, output byte-correct (60 lines, version substituted in all 6 slots)
  • python3 -c yaml.safe_load: workflow YAML parses
  • Local repro of the bug (before fix): exit 124 timeout, same hang signature as CI

…mplate file

The unquoted heredoc << RELEASEEOF underwent shell expansion: markdown
backticks became command substitutions and executed on the runner.
v0.14.3 release: installer curl|sh ran, uteke-serve --port 8767 started
and blocked the job for 48 minutes (2 runs, deterministic).

Move the static tail (downloads table + quick start) to
scripts/release-notes-template.md and substitute __VER__ via sed.
Zero shell expansion over markdown content. Validated locally: generate
completes instantly, output byte-correct.

Fixes the release pipeline for all future releases.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review could not complete. LLM API error after retries: Unknown error — check workflow logs


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit c2d85de into develop Aug 15, 2026
14 checks passed
@ajianaz
ajianaz deleted the fix/release-workflow-heredoc branch August 15, 2026 17:34