Skip to content

fix: repair main after component-groups metadata + overlay-metadata API drift#274

Merged
liunan-ms merged 1 commit into
microsoft:mainfrom
liunan-ms:liunan/fix-group-metadata-test
Jul 10, 2026
Merged

fix: repair main after component-groups metadata + overlay-metadata API drift#274
liunan-ms merged 1 commit into
microsoft:mainfrom
liunan-ms:liunan/fix-group-metadata-test

Conversation

@liunan-ms

Copy link
Copy Markdown
Contributor

The component-groups metadata PR (#3b8701d) was written against the pre-rework OverlayMetadata API and landed after the API rework, leaving main red on static, unit, coverage, lint, and docs gates.

Failures addressed

  • Static Analysis / Analyze, Run tests / Unit tests, Test coverage / Coverage, Format code / Lintinternal/projectconfig/loader_test.go referenced removed identifiers (OverlayCategoryBackportDistGit, BugRef, OverlayMetadata.Upstreamable) and inline TOML using the old upstreamable field. Migrated it to OverlayCategoryUpstreamBackport, URLRef, and upstream-status.
  • Check docs / Check linksdocs/user/reference/config/component-groups.md linked to a nonexistent overlays.md#bug-references anchor. Updated to #url-references, which is the actual heading in overlays.md.

Verification

  • mage check all ✅ (includes lint + static analysis)
  • mage unit

CI failures referenced:

Copilot AI review requested due to automatic review settings July 10, 2026 01:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Repairs main after the OverlayMetadata API rework by updating affected unit tests and fixing a broken documentation link introduced by the component-groups metadata change, restoring CI gate health.

Changes:

  • Update internal/projectconfig/loader_test.go to use the new overlay metadata API (OverlayCategoryUpstreamBackport, URLRef, upstream-status).
  • Fix a broken anchor in docs/user/reference/config/component-groups.md linking into overlays.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
internal/projectconfig/loader_test.go Migrates component-group metadata test coverage to the post-rework OverlayMetadata schema/types.
docs/user/reference/config/component-groups.md Fixes the broken reference to the overlay metadata “URL references” section.

Comment thread docs/user/reference/config/component-groups.md Outdated
…PI drift

The component-groups metadata PR was based on the pre-rework OverlayMetadata
API and landed after that rework, leaving main red:

- loader_test.go referenced removed identifiers (`OverlayCategoryBackportDistGit`,
  `BugRef`, `Upstreamable`) and inline TOML using the old `upstreamable` field.
  Migrated it to `OverlayCategoryUpstreamBackport`, `URLRef`, and
  `upstream-status`.
- component-groups.md linked to a nonexistent `#bug-references` anchor in
  overlays.md. Updated to the actual `#url-references` heading.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@liunan-ms liunan-ms force-pushed the liunan/fix-group-metadata-test branch from bac86b4 to f6c0a3f Compare July 10, 2026 01:31
Copilot AI review requested due to automatic review settings July 10, 2026 01:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@liunan-ms liunan-ms merged commit 830e6fe into microsoft:main Jul 10, 2026
18 checks passed
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.

3 participants