Skip to content

fix(pipeline): say so when a release has nothing for the technical reader - #333

Merged
goldbarth merged 1 commit into
mainfrom
empty-technical-release
Oct 6, 2026
Merged

goldbarth merged 1 commit into
mainfrom
empty-technical-release

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Closes #307

  • Why: a release whose changes reach no technical reader, such as one with only chore: and docs: pull requests, got an empty technical rendering, and Chartula wrote it as it was: a bare ## VERSION - DATE heading in CHANGELOG.md and empty release notes, which for a published release replaced its notes with nothing. A reader could not tell that from a run that lost its text, and Common Changelog does not count an empty heading as a release (chartula-evals docs/output-format.md, rule 16).
  • The sentence: "This release has no features, fixes, performance improvements or breaking changes." It claims only what an empty technical rendering proves: every change that is new, fixed, faster, breaking or labelled as visible reaches that rendering. So it is also true for a release with no facts at all.
  • Written by Chartula, not by the model: ReleasePipeline.NothingForTechnicalReaders takes the place of the empty text when the pipeline writes CHANGELOG.md and the release notes. The release still costs no model call.
  • renderings.technical stays empty: changelog-json.md documents an empty string as "no change for that audience". Putting the sentence there would change that meaning, which the schema's stability rules say bumps schemaVersion, and a consumer could no longer tell a release with nothing to render from one with one entry. changelog-json.md now says the sentence is not in the file.
  • The customer side is unchanged, as feat(output): write the customer rendering as a page of its own #104 decided: no customer entries, no page. The product rendering has no file.
  • Docs: outputs.md, "A release with nothing to say", describes the sentence in CHANGELOG.md and the release notes, and that the model writes none of it.

Verified:

  • Reproduced with a pipeline test before the change: the internal-only-release and empty-release fixtures, replayed through the real pipeline in generate mode, handed "" to the CHANGELOG.md and release-notes writers.
  • End to end with the built CLI: a scratch repository whose v1.2.0 holds a single chore: bump dependencies commit, GitHub on a local stub, generate --tag v1.2.0 --no-publish --audience technical. CHANGELOG.md reads ## 1.2.0 - <date> followed by the sentence, changelog.json holds "technical": "", and no request reached the model endpoint, which was not even running.

Tests: FixturePipelineTests gains a theory over internal-only-release and empty-release that holds the CHANGELOG.md body, the release notes and the empty changelog.json rendering; the spy writers now keep what they were handed. All tests pass.

@goldbarth goldbarth self-assigned this Oct 6, 2026
@goldbarth
goldbarth merged commit 99cfd98 into main Oct 6, 2026
4 checks passed
@goldbarth
goldbarth deleted the empty-technical-release branch October 6, 2026 14:07
goldbarth added a commit that referenced this pull request Oct 7, 2026
Follows #344. Step 1 of `docs/development/releasing.md`.

- **Why now:** the launch points are merged, and the binary people
install is still `0.1.0-preview.3`, which has none of them. The
announcement needs a release that holds what the README and the docs on
`main` describe.
- **What ships since preview.3,** 63 commits:
- a first run: `chartula doctor` (#295, grouped in #341), `chartula
--version` (#286), a free `preview` (#292), progress while a run works
(#297, with a spinner and `--plain` in #340), a first tag from the first
commit with a confirmation for a large range (#282);
- what a release contains: commits without a pull request (#291), issue
numbers at every depth (#293), a sentence for a release with nothing for
developers (#307 in #333);
- checks and prompts: pull request text quoted and bounded (#338), no
false flag for a wrapped phrase or a fenced block (#336), flags set
apart from the entries (#331);
- publishing: the token checked before the first model call (#285), a
published release not replaced unless asked (#335);
- the files: `changelog.json` without descriptions and readable as text
(#294, #332).
- **Breaks to state in the notes,** as `docs/versioning.md` asks of a
preview:
- `changelog.json` is schema version 2: a change's `description` is gone
(#294). The run record is schema version 3 and holds the complete facts.
- `generate` stops on a tag whose release is already published;
`--replace-published` restores the old behaviour (#335).
- An option a command does not take stops the run (#301), and
`--whole-history` is gone (#282).
- The terminal output changed form (#340 to #342): the summary's first
line, audience headings in place of `--- Technical ---`, and `doctor`'s
last line. A script that reads those lines needs a look; exit codes and
the files are unchanged.
- The csproj `Version` is the single source; nothing else carries the
number.

**After merge:** tag the merge commit on `main` with `v0.1.0-preview.4`
and push it; `release.yml` builds the draft, `chartula generate --tag
v0.1.0-preview.4` writes the notes into it, and publishing runs
`install.yml`. The pinned `v0.1.0-preview.3` in `docs/ci.md` and
`docs/install.md`, and the template link in the `doctor` samples, move
to the new tag once the release exists, with the changelog pull request
of step 6.

**Verified:** the built CLI prints `chartula 0.1.0-preview.4+<commit>`.

Tests: no test changed. Full suite 1,010 passing, build without
warnings.
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.

A release with nothing for the technical reader publishes empty release notes and a bare CHANGELOG.md heading

1 participant