Skip to content

Fix release notes never being posted when a new version comes online - #246

Merged
NinjaLikesCheez merged 2 commits into
mainfrom
claude/modest-volta-ukeg2d
Dec 1, 2026
Merged

NinjaLikesCheez merged 2 commits into
mainfrom
claude/modest-volta-ukeg2d

Conversation

@NinjaLikesCheez

Copy link
Copy Markdown
Contributor

What

Release notes were never posted when a new Pixel version came online. Two separate bugs caused it, and each one alone was enough to stop every post:

  1. CHANGELOG.md wasn't in the image. .dockerignore excludes *.md, and the Dockerfile never copied it. The startup read failed and Pixel logged release.changelog_unreadable.
  2. The notes were looked up by the wrong version. The feature searched for PIXEL_VERSION, but the Release workflow, CD and just deploy all set that to a git SHA. It looked for a heading like ## [3f2a1bc], which never exists, and logged release.no_notes.

Changes

  • .dockerignore: !CHANGELOG.md. Dockerfile: COPY CHANGELOG.md ./ in the runtime stage.
  • The release announcement now uses the package.json version (packageVersion() from observability/build-info.ts, which the online post already uses), through releaseVersion() in features/release-announcement. With no PIXEL_VERSION ("dev", a run from a checkout), Pixel still never posts. If package.json can't be read ("unknown"), it logs a warning and skips.
  • .github/path-filters.yml: CHANGELOG.md is copied into the image but stays out of the image filter on purpose. Only a release's dated section is ever posted, and the Release workflow always builds its own image from the bump commit, so an [Unreleased] edit never needs a rebuild and markdown-only PRs still skip Docker. tests/scripts/path-filters.test.ts names this as an explicit exception, and a new test checks that the Dockerfile and .dockerignore both let the file through. Which paths run Docker is unchanged, so the pipeline diagrams don't change.
  • Runbook: the release-channel row now says where the notes come from and which Sentry log events to look for when nothing is posted.
  • CHANGELOG: a Fixed entry.

After deploy

Each release channel gets the current version's notes once, dev's channels included. Versions released while this was broken won't be posted.

Testing

  • New tests: releaseVersion (SHA build vs dev), the unknown skip, a SHA build still finding its notes, packageVersion, and a check that the real CHANGELOG.md has a section for the current package.json version.
  • Biome, tsc and Vitest with coverage pass locally (3,541 tests).
  • I couldn't build the image locally because there's no Docker daemon in my environment. CI's Docker smoke job runs, since the Dockerfile changed.

No files under rule 14 (access, dispatcher, OpenR and so on) are touched.


Generated by Claude Code

Two things kept every release channel silent:

- The image never contained CHANGELOG.md: .dockerignore excludes *.md
  and the Dockerfile didn't copy it, so the read failed
  (release.changelog_unreadable).
- The feature looked up the notes by PIXEL_VERSION, which every image
  build sets to a git SHA, so no `## [x.y.z]` heading ever matched
  (release.no_notes).

Ship CHANGELOG.md in the image and announce the package.json version.
A run without PIXEL_VERSION ("dev") still never announces. CHANGELOG.md
stays out of the `image` path filter on purpose: only a release's dated
section is posted, and the Release workflow always builds its own image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013csJPLsX33UioPvhqZmD2v
@NinjaLikesCheez
NinjaLikesCheez merged commit b8582be into main Dec 1, 2026
12 checks passed
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