Skip to content

Get the build green: format CdnChangelogEntryFetcherTests, fix two bundle tests - #4680

Merged
Mpdreamz merged 2 commits into
mainfrom
chore/format-cdn-fetcher-tests
Nov 4, 2026
Merged

Mpdreamz merged 2 commits into
mainfrom
chore/format-cdn-fetcher-tests

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

curb check reports one unformatted file on main, and two BundleOutputConventionTests fail on every build job. This formats the file and fixes the two tests.

Affects: Internals only

Prompt summary: Clear the open pull request queue. Merging main into several branches exposed formatting drift that blocks every local commit, so format the one file that causes it. The build (macos-latest) and build (ubuntu-latest) checks then failed on two tests unrelated to that file, so fix those too.

Why

#4120 passed lint on 28 October. Its last CI run predates the curb setup now on main, so nothing re-checked the file after the merge. The dotnet-lint pre-commit task runs curb check on the whole repository, so one unformatted file fails every commit.

#4221 moved bundle output into a per-product subdirectory. Two tests added in #4222 still expect the file in the changelog directory itself, so Elastic.Changelog.Tests fails.

What

Two raw-string arguments

Two Json(...) calls in CdnChangelogEntryFetcherTests now keep their raw-string JSON on the same line as the call. The test logic and the JSON bodies are unchanged.

Two stale path assertions

OutputPatternOnAnotherProfile_WarnsAndDoesNotBlock and ProfileWithOutputPattern_WarnsAndBundlesByConvention now look for elasticsearch/elasticsearch-9.3.0.yaml. The product code is unchanged.

Verify

dotnet curb check .
# Checked 1718 file(s) ... 0 would change
dotnet test tests/Elastic.Changelog.Tests/
# total: 1728, failed: 0

🤖 Generated with Claude Code

`curb check` reports this file as unformatted on `main`, so the pre-commit hook fails for any commit on a branch that merges `main`. The change inlines two raw-string `Json(...)` arguments and touches no test logic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Mpdreamz
Mpdreamz requested a review from a team as a code owner November 4, 2026 13:05
@Mpdreamz Mpdreamz added the chore label Nov 4, 2026
@Mpdreamz
Mpdreamz requested a review from theletterf November 4, 2026 13:05
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4680/

Bundles now land in a subdirectory named after the product, but two
`BundleOutputConventionTests` still looked for the file in the changelog
directory itself. Both failed on `main` and on every pull request.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Mpdreamz Mpdreamz changed the title Format CdnChangelogEntryFetcherTests the way curb expects Get the build green: format CdnChangelogEntryFetcherTests, fix two bundle tests Nov 4, 2026
@Mpdreamz
Mpdreamz merged commit 1bb5a83 into main Nov 4, 2026
46 of 47 checks passed
@Mpdreamz
Mpdreamz deleted the chore/format-cdn-fetcher-tests branch November 4, 2026 13:55
akira28 added a commit that referenced this pull request Nov 4, 2026
The only conflict was .gitignore. This branch no longer changes it, since received snapshots go to .artifacts, which is already ignored, so the file is taken from main as it is. Main's latest commit, which adds an unformatted CdnChangelogEntryFetcherTests.cs that fails the lint hook until #4680 lands, is left out of this merge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants