Skip to content

Bug: release-please workflow fails when announcement text is too long #255

@fasttime

Description

@fasttime

Which packages are affected?

  • @eslint/compat
  • @eslint/config-array
  • @eslint/config-helpers
  • @eslint/core
  • @eslint/mcp
  • @eslint/migrate-config
  • @eslint/object-schema
  • @eslint/plugin-kit

Environment

ESLint version: v9.32.0

What did you do?

Merged #252.

What did you expect to happen?

GitHub Actions workflows should complete without errors.

What actually happened?

The release-please workflow failed because of the release announcement on Bluesky could not be posted. See https://github.com/eslint/rewrite/actions/runs/16827981932/job/47668814498.
This happened because the text of the announcement was too long. The output shows:

❌ Bluesky failed.
Error: 400 Bad Request: Failed to post message:
InvalidRequest - Invalid app.bsky.feed.post record: Record/text must not be longer than 300 graphemes
    at postMessage (file:///home/runner/.npm/_npx/abe28a00ffde018f/node_modules/@humanwhocodes/crosspost/dist/strategies/bluesky.js:282:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Promise.allSettled (index 2)
    at async Client.post (file:///home/runner/.npm/_npx/abe28a00ffde018f/node_modules/@humanwhocodes/crosspost/dist/client.js:119:17)
    at async file:///home/runner/.npm/_npx/abe28a00ffde018f/node_modules/@humanwhocodes/crosspost/dist/bin.js:200:23

node:internal/errors:983
  const err = new Error(message);
              ^

Error: Command failed: npx @humanwhocodes/crosspost -t -b -m "Just released:\n\neslint/core v0.15.2\n[https://github.com/eslint/rewrite/releases/tag/core-v0.15.2\n\neslint/compat](https://github.com/eslint/rewrite/releases/tag/core-v0.15.2/n/neslint/compat) v1.3.2\n[https://github.com/eslint/rewrite/releases/tag/compat-v1.3.2\n\neslint/config-helpers](https://github.com/eslint/rewrite/releases/tag/compat-v1.3.2/n/neslint/config-helpers) v0.3.1\n[https://github.com/eslint/rewrite/releases/tag/config-helpers-v0.3.1\n\neslint/migrate-config](https://github.com/eslint/rewrite/releases/tag/config-helpers-v0.3.1/n/neslint/migrate-config) v1.5.3\nhttps://github.com/eslint/rewrite/releases/tag/migrate-config-v1.5.3"

Link to Minimal Reproducible Example

https://github.com/eslint/rewrite/actions/runs/16827981932/job/47668814498

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

To fix this problem, we could for example split the announcement into multiple posts when the text is too long.

Alternatively, we could post a shortened version of the announcement with just a single link to the release-please pull request.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrepro:neededThis issue should include a reproducible example

Type

No type

Projects

Status

Triaging

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions