Skip to content

Move the changelog.yml configuration into the domain model - #4929

Open
Mpdreamz wants to merge 1 commit into
split/integration-wave1from
split/10a-changelog-config
Open

Mpdreamz wants to merge 1 commit into
split/integration-wave1from
split/10a-changelog-config

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

The changelog.yml configuration records move to Elastic.Documentation/ReleaseNotes and the errors the loader raised inline become a ChangelogConfigurationConstraints set. Behaviour is unchanged. This is PR 10a of the release-notes stack (10a configuration, 10b bundles, 10c entries and service consumers).

Affects: Release notes, Configuration

Stack: 1 of 3 of the release-notes area of #4530, on top of the wave-1 integration branch split/integration-wave1 (foundation #4888; wave 1: #4907 catalog, #4900 search, #4905 applies-to, #4906 links, #4903 feature flags, #4901 build status, #4899 version index, #4902 sync plan, #4904 page feedback). Next: 10b (bundles), 10c (entries and services).

Why

#4530 splits into one pull request per aggregate root. The changelog configuration is the first piece of the release-notes root: its records live in the Configuration project and its rules live inline in a 1,700-line loader.

What

Records

ChangelogConfiguration, BundleConfiguration, BlockConfiguration, PivotConfiguration, ExtractConfiguration, ProductsConfig, FilenameStrategy, RequiredPivot and VersionLifecycleInference move to Elastic.Documentation.ReleaseNotes with git mv. Members keep their public init. The YAML DTOs get the *Dto names (ChangelogConfigurationYaml becomes ChangelogConfigurationDto, and so on).

Rules

ChangelogConfigurationConstraints checks a ChangelogConfigurationInCatalog (the configuration plus the product catalog its ids refer to). It holds the errors the loader raised inline: pivot types and subtypes, required types, pivot and default products, repo syntax, link_allow_repos, release-to-profile references, include/exclude exclusivity, the retired filename values. Message text is unchanged.

Loader

ChangelogConfigurationLoader keeps its public methods and the LoadResult of one checked path (Load). It does not use Loader.For: today's contract returns the configuration even when the read made errors (an unknown key, a bad products_config entry), and returns null only when the read gives up or the check finds an error. Loader.For cannot express that, and a snapshot locks it. Warnings and hints stay emitted in the loader where they are today, so their order is unchanged.

Deferred behaviour changes

  • Loader.For and Result<T> loading API; empty or comment-only changelog.yml stays an InvalidOperationException (the S7 snapshots lock it).
  • R13 (label mapped twice), R17 (type or area not configured), R26 (output_directory is a file) and R29 (two profiles share a primary product).
  • Moving the deprecation warnings and the per-product match_products warning and disjoint hint into rules: they would sort after later loader warnings.
  • products_config errors becoming fatal (today the configuration is still returned).
  • [Equatable] and internal init on the records (needs InternalsVisibleTo for Elastic.Changelog).
  • Counting only this load's errors: the loader already counts its own findings through a private buffer; a shared collector that held an earlier error no longer turns "no rules section" into null.
  • DTO projection coverage tests: the ProjectionCoverage helper is not on the base branch.

Verify

./build.sh unit-test      # 9,990 tests; the one failure is explained below
./build.sh lint
mise run snap:status      # no pending snapshots
mise run snap:orphans
dotnet test --project tests/Elastic.Documentation.Tests --treenode-filter "/*/*/ChangelogConfigurationConstraintsTests/*"

No verified file is modified (git diff origin/split/integration-wave1 --stat -- '*.verified.*' is empty). The 85 changelog.yml snapshots pass unchanged. Mutation: making PivotTypesValid always true turns the constraint tests and PivotTypeNotAValidType red.

UnifiedProductBundlerTests.Bundle_PoolExists_WritesTheBundle fails only in a checkout whose path contains changelog-config (it filters bundle files by that substring); the worktree for this stack is named split-10a-changelog-config. It does not fail in CI.

Golden compare

Local builds of the isolated docs, the prod assembler site and the codex example site, this branch's head against the wave-1 integration branch (split/integration-wave1: current main plus the nine wave-1 PRs); aggregate counts, the output stays local.

4 paths differ across the three sites. All also differ between two captures of that baseline taken hours apart (159 paths: live OpenAPI specs, the release-notes CDN and the generated llms files), so none of these can be attributed to this change.

Limit: golden cannot show a real change inside those drifting pages.

…ules

The changelog.yml configuration records move from Configuration to Elastic.Documentation/ReleaseNotes. A ChangelogConfigurationConstraints set now holds the errors the loader used to raise inline. The loader reads through one checked path and keeps its public API, its warnings and its empty-document exception.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
assembler-preview — 7cbba5d3 Deployed Nov 18, 2026 by github-actions[bot]
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.

1 participant