Repository navigation
Fix release notes never being posted when a new version comes online - #246
Merged
Merged
Conversation
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
…keg2d # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
CHANGELOG.mdwasn't in the image..dockerignoreexcludes*.md, and the Dockerfile never copied it. The startup read failed and Pixel loggedrelease.changelog_unreadable.PIXEL_VERSION, but the Release workflow, CD andjust deployall set that to a git SHA. It looked for a heading like## [3f2a1bc], which never exists, and loggedrelease.no_notes.Changes
.dockerignore:!CHANGELOG.md.Dockerfile:COPY CHANGELOG.md ./in the runtime stage.package.jsonversion (packageVersion()fromobservability/build-info.ts, which the online post already uses), throughreleaseVersion()infeatures/release-announcement. With noPIXEL_VERSION("dev", a run from a checkout), Pixel still never posts. Ifpackage.jsoncan't be read ("unknown"), it logs a warning and skips..github/path-filters.yml:CHANGELOG.mdis copied into the image but stays out of theimagefilter 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.tsnames this as an explicit exception, and a new test checks that the Dockerfile and.dockerignoreboth let the file through. Which paths run Docker is unchanged, so the pipeline diagrams don't change.Fixedentry.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
releaseVersion(SHA build vsdev), theunknownskip, a SHA build still finding its notes,packageVersion, and a check that the realCHANGELOG.mdhas a section for the currentpackage.jsonversion.tscand Vitest with coverage pass locally (3,541 tests).No files under rule 14 (access, dispatcher, OpenR and so on) are touched.
Generated by Claude Code