Skip to content

fix(release-complete): fit the Slack head message in 4,000 bytes and give Linear a git work tree - #30

Merged
jjavieralv merged 1 commit into
mainfrom
fix/release-complete-slack-bytes-linear-checkout
Nov 19, 2026
Merged

jjavieralv merged 1 commit into
mainfrom
fix/release-complete-slack-bytes-linear-checkout

Conversation

@tyhonchik

Copy link
Copy Markdown
Contributor

The Slack thread of @aragon/assistant@0.3.4 never flipped to Completed. The complete job in Assistant Production logged:

Slack message truncated from 6585 to 3975 characters.
Failed to send Slack message: Slack API error: msg_too_long

chat.update counts the 4,000 limit in UTF-8 bytes, not characters. The changelog listed ~100 knowledge-base pages, each a • bullet (3 bytes), so 3,975 characters came to 4,107 bytes. Both steps run with continue-on-error, so the job stayed green.

The same job also showed that the Linear step has never worked here: linear-release must run inside a git repository, but no .git directory was found. Neither release-complete nor release-pr-cancel checks out the repo, so Linear releases were never completed or canceled (app 1.44.0 shows the same error).

Changes

  • slack-notify measures the limit and the kept closing paragraph in bytes, and a hard cut never splits a code point. Replaying the 0.3.4 message gives 3,978 bytes.
  • release-complete checks out the tag (depth 1, no persisted credentials) before Linear complete, which also sends the tagged commit to Linear.
  • release-pr-cancel runs git init before Linear update: update reads nothing from git, and the merge ref of a closed PR may be gone.

After merge: cut v1.0.3 with release-self.yml, then rerun the complete job of aragon/app run 44502193093 to close the 0.3.4 thread and its Linear release.

🤖 Generated with Claude Code

…give Linear a git work tree

slack-notify cut messages to 4,000 characters, but chat.update counts UTF-8
bytes: the assistant 0.3.4 changelog (~100 `•` bullets) was cut to 3,975
characters / 4,107 bytes and rejected with msg_too_long, so the head message
never flipped to Completed. The limit is now measured in bytes.

release-complete and release-pr-cancel ran linear-release without a checkout,
and the CLI exits outside a git work tree: Linear releases were never
completed or canceled. complete now checks out the tag (depth 1), cancel runs
`git init` (update reads nothing from git).

@jjavieralv jjavieralv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jjavieralv
jjavieralv merged commit 05da181 into main Nov 19, 2026
4 checks passed
@jjavieralv
jjavieralv deleted the fix/release-complete-slack-bytes-linear-checkout branch November 19, 2026 11:59
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.

2 participants