Skip to content

Name the serverless preview releases Staging and Edge, and date them - #5035

Merged
Mpdreamz merged 4 commits into
feature/preview-diagnosticsfrom
feature/preview-edge-staging
Nov 24, 2026
Merged

Mpdreamz merged 4 commits into
feature/preview-diagnosticsfrom
feature/preview-edge-staging

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

The serverless and Elastic Cloud Hosted previews now read Staging and Edge instead of Staging and HEAD, each page says in plain words what it holds, and each shows the version it would get if it shipped today.

Affects: Release notes, Isolated builds

Stack: 2 of 2, on top of #5032. Merge #5032 first. This PR's base becomes main then.

Prompt summary: HEAD and staging mean little to people who browse changelogs.elastic.dev. Find better terms (edge and staging were the suggestion), and show the current date on those pages, because a serverless release is versioned by the day it ships.

Why

A visitor to /cloud-serverless/head sees a release called HEAD and no hint of what it covers. A serverless release has no version number either: the published ones are named by the day of the promotion, so a preview with no date does not say what it would be.

What

Names

The release that ends at the tip of the base branch is Edge, with the label and the URL edge. The one that ends at the version on staging stays Staging. The root page says what each means.

Plain words and the date

Each page opens with one sentence: Staging is the changes running on the staging environment that are not in production yet, and Edge is everything merged to the main branch that is not in production yet, which includes Staging. A second sentence says that if released today, the release would be dated that day. The product page lists both with the date. The day is the UTC day of the build, as in the promotion workflow. A version of a DRA product is its own name and gets none of this.

Verify

dotnet test --project tests/Elastic.Documentation.Build.Tests --treenode-filter "/*/*/UnifiedReleaseNotesTests/*"
dotnet test --project tests/Elastic.Changelog.Tests --treenode-filter "/*/*/ServerlessPromotionTests/*"

I built a site with the command from sample bundles: the pages showed 2026-11-24, today's UTC date, and the Kibana version page was unchanged. Removing the date sentence, the Edge title, or the version check on the index each fails a test.

Out of scope: The heading of the changelog block inside each page still shows the raw label, staging or edge. It comes from the changelog directive and is not changed here.

Risk: The page of the Edge release moves from /head to /edge. The Staging and HEAD pages have been published since the workflow change merged, so a link to /head breaks. The page now changes every day, so the hourly workflow must republish daily, or the date goes stale: that is a change to its cache key, in docs-internal-workflows.

HEAD and staging mean little to someone who browses the release notes. The release that ends at the tip of the base branch is now Edge, its page is /edge, and each page says in plain words what it holds. A serverless release is named by the day it ships, so each page also says what the release would be named if it shipped on the day of the build.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz
Mpdreamz requested a review from a team as a code owner November 24, 2026 13:51
@Mpdreamz
Mpdreamz requested a review from akira28 November 24, 2026 13:51
{
(Label: StagingLabel, End: ParseFinalSliceVersion(versionsYaml, svc.StagingSlice)),
(Label: HeadLabel, End: baseBranchHead)
(Label: EdgeLabel, End: baseBranchHead)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: P3 (Low)

Preserve the published /head URLs when switching the preview label to edge. A clean build now emits only /edge and its child pages, so existing links to /cloud-serverless/head, /cloud-hosted/head, and their section pages will return 404. Add redirects or aliases for those routes.

Generated by Libra. React with 👍 or 👎 to give feedback on this comment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not adding redirects. The /head pages have been live for a few hours, on an internal site behind Okta, and the site is rebuilt from scratch every hour, so a link to one is a link someone made today. The page of the same release is at /edge now, and the index lists it. If a link turns out to matter, a redirect is a line in the site's redirect file and can follow.

Mpdreamz and others added 3 commits November 24, 2026 15:07
AppendLine writes CRLF on Windows, so the multi-line Contain
expectations failed there.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…dows

A run removes the head bundle of a reused folder as well, the Edge description says the default branch because Elastic Cloud Hosted uses master, and the date reaches the rendered pages through the build service, with a test. The diagnostics page was written with the line endings of the platform, which broke its test on Windows. It uses line feeds everywhere now.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz
Mpdreamz merged commit bdb5952 into feature/preview-diagnostics Nov 24, 2026
40 checks passed
@Mpdreamz
Mpdreamz deleted the feature/preview-edge-staging branch November 24, 2026 14:29
Mpdreamz added a commit that referenced this pull request Nov 24, 2026
)

* List the pull requests that lack a label on the release notes preview

release preview bundle no longer fails when a pull request lacks the product or area label that its repository requires. It bundles the pull request under the product of the profile and records it. It also records a pull request without a type label. release preview build turns the records into a diagnostics page, by product and release, with the labels to add. A pull request of a private repository is named by repository and number, without a link or a title.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Keep the diagnostics page when nothing lacks a label

The page used to vanish, with its nav entry and index link, when no pull request lacked a label. It now exists whenever release preview bundle checked, says what it is for, and says that nothing needs fixing. Without a problems file the folder was not checked and there is still no page.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Address review of the diagnostics page

The page is built only when release preview build asks for it, so a folder reused by release unified build puts no private pull request on its site. Each repository of a release names its own labels. A run limited by --products or --services keeps the problems of the bundles it did not refresh. A repository without a type mapping reports no missing type, because no label could fix it. Titles also escape the caret, the log counts pull requests once, and the fixtures use a synthetic private repository.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Write the diagnostics page with LF line endings on every platform

The page builder used AppendLine, which writes CRLF on Windows. The
page test matches on LF and failed on the Windows build.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Name the serverless preview releases Staging and Edge, and date them (#5035)

* Call the serverless preview releases Staging and Edge, and date them

HEAD and staging mean little to someone who browses the release notes. The release that ends at the tip of the base branch is now Edge, its page is /edge, and each page says in plain words what it holds. A serverless release is named by the day it ships, so each page also says what the release would be named if it shipped on the day of the build.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Compare the diagnostics page with LF line endings in its test

AppendLine writes CRLF on Windows, so the multi-line Contain
expectations failed there.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Address review of the Edge rename and fix the diagnostics page on Windows

A run removes the head bundle of a reused folder as well, the Edge description says the default branch because Elastic Cloud Hosted uses master, and the date reaches the rendered pages through the build service, with a test. The diagnostics page was written with the line endings of the platform, which broke its test on Windows. It uses line feeds everywhere now.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* Remove every head bundle of a reused folder and drop the Edge guarantee

A run removes the bundles of the release that was called head for all services, so refreshing one service no longer leaves another's stale head bundle to be published next to Edge. The Edge text no longer says it includes everything on Staging, which is not true when the default branch reverts a change that staging still runs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Remove the head bundles only after the run succeeded

A service drops its own head bundle together with its replacement, and the head bundles of the services a run did not refresh are removed after every service succeeded. A run that fails, for example on the first GitHub request, leaves the last good bundles where they were.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant