Repository navigation
Record a release with no notes instead of failing - #4866
Merged
Merged
Conversation
`release serverless` failed on a range with no user-facing pull request, such as
a run of dependency bumps, and every such release raised an alert. It now writes
a bundle with the products, the release date and `git_ref` and no entries, so
the release stays on record. The `{changelog}` render already skips a bundle
with nothing to show.
Bundle names are `{repo}-{product}-{date}`, so a second release on the same day
would replace the first when published. When the published registry already
lists the bundle, the release is written as its next `.amend-N` sidecar. An
unreadable registry stops the run, so an outage never becomes an overwrite.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4866/ |
When the bundle rules removed every resolved entry, a range now wrote an empty bundle even if the metadata of another pull request in the range could not be read, so a failed fetch was recorded as a release with no notes. That case is an error again. Tests cover the rule-filtered empty release, the same range without the option, and the unreadable pull request. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The review pull request in docs-internal-workflows already adds the promotion's short sha to every bundle file name, so two releases on one day publish as separate files with the same target, and the site merges them into one section. That also made the amend path unreachable: the registry never lists the bundle under the unsuffixed name it looked for. This removes the registry lookup, the amend writer and their tests, and adds a render test for an empty bundle beside a bundle with notes that share a target. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Bundle files were named {repo}-{product}-{date}, so a release with no notes
could carry the name of a bundle with notes published earlier on the same day,
and publishing it would replace that bundle. `release serverless` now ends each
file name with the short ref of the promotion, as the review pull request already
does, so no two promotions share a name whoever uploads the files.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
When the requested bundle file already exists, the service writes the new bundle to a timestamped name but told the caller the requested path. A caller that renames the reported file then moved the older bundle and left the new one behind. `release serverless` renames each bundle to carry the short ref of its promotion, so it hit this. The service now reports the path it wrote. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
release serverlessnow writes a bundle with no entries when a range has nothing to publish. A release with no notes stops failing the run and raising an alert, and it stays on record.Affects: Release notes, CLI
Prompt summary: Let Elastic Cloud Hosted releases that only carry dependency bumps succeed. The release is tracked in the ledger, but the markdown render does not show it.
Why
The dry run of
frontend-adminconsoleover2f4acb2be2a6..d3124c7dda83failed with "No changelog entries could be resolved for commit range": the range holds five Renovate bumps and no user-facing pull request. ECH deploys this service often, so each such release would fail the run and alert#docs-alerts.What
Empty releases are written, not failed
With the new
WriteEmptyRangeoption, a range with no notes writes a bundle holding the profile's products, the release date andgit_ref, and no entries. The same applies when therules.bundlefilter removes every entry. A pull request whose metadata could not be read is still an error in both cases, so a failed fetch is never recorded as a release with no notes. The DRA path keeps itsOnEmptyRangebehaviour.release serverlessturns it onServerlessReleaseCommandsets the option, so the existingbundle_pathoutputs always point at one file. This also applies to Kibana and Elasticsearch: an empty promotion now writes an empty bundle.docs/cli-schema.jsonregenerates with the new remarks.Bundle names carry the promotion's short ref
Bundles were named
{repo}-{product}-{date}, so a release with no notes could take the name of a bundle with notes published earlier on the same day, and publishing it would replace that bundle.release serverlessnow ends each file name with the 12-character short ref of the promotion (cloud-cloud-hosted-2026-11-16-d3124c7dda83.yaml), and thebundle_pathoutputs point at it. The review pull request indocs-internal-workflowsalready adds the same suffix, so published names do not change; the suffix now also holds for any other way of uploading the files.The render stays quiet
The
{changelog}directive already skips a bundle with no entries and nodescription. New tests lock that in for a bundle without anentrieskey, and for an empty bundle beside a bundle with notes that share its target, which renders as one section.Verify
The last command is read-only and writes
bundles/cloud-cloud-hosted-<today>-d3124c7dda83.yamlwithproducts,release-dateandgit_ref, and no entries. Making the incomplete-range guard always allow an empty release fails the unreadable-pull-request test.🤖 Generated with Claude Code