Skip to content

Define storage for release note validation samples - #10596

Merged
danroth27 merged 18 commits into
mainfrom
release-notes/code-sample-storage
Sep 26, 2026
Merged

danroth27 merged 18 commits into
mainfrom
release-notes/code-sample-storage

Conversation

@danroth27

@danroth27 danroth27 commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • keep maintained release-note validation samples in release-notes/<major>.0/samples/<component>/
  • treat them as release-note verification fixtures, not substitutes for officially documented samples
  • upgrade component sample sets from preview to preview and start each major release fresh
  • use scratch projects only for one-off checks outside feature validation
  • read the exact SDK from the milestone's existing build-metadata.json
  • install that SDK in a scratch directory with the official dotnet-install script
  • verify the installed SDK matches build.sdk_version
  • build and run maintained samples for every release-note feature, including those without snippets; test any documented snippets as part of the samples
  • document preview-to-preview breaking changes and migration steps surfaced while upgrading maintained samples
  • record the last validated SDK in the top-level release-notes/<major>.0/samples/README.md
  • document each component's samples, run steps, and expected behavior in its README
  • define ownership, expected-result, and artifact guidance

Follow-up to #10516.

Validation

  • targeted markdownlint passed
  • links in both edited files passed markdown-link-check
  • git diff --check passed
  • full repository markdownlint still reports the existing releases.md blank-line error
  • full Prettier check reports the existing repository-wide formatting baseline
  • Checkov was unavailable because Python is not installed in this environment

Document versioned, component-owned validation samples in dotnet/core and retain scratch projects for one-off compile checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
@danroth27
danroth27 marked this pull request as draft September 25, 2026 20:51
Keep upgrade coverage within a major release while avoiding copied scenarios between major versions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
@danroth27
danroth27 marked this pull request as ready for review September 25, 2026 20:54
State that the fixtures verify release notes and do not replace officially documented product samples.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5

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.

Copilot review overview

🟡 Changes recommended

An unresolved moderate documentation conflict and a clarification nit remain.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)
What changed in this PR

Defines storage and maintenance conventions for release-note validation samples, with updated breaking-change guidance.

Changes:

  • Establishes per-major/component sample storage and lifecycle guidance.
  • Clarifies ownership, expected results, artifacts, and scratch-project usage.
  • Links breaking-change validation to maintained sample sets.
File Summary
.github/​skills/​validate-code-samples/​SKILL.md Adds sample storage and maintenance guidance; includes one moderate documentation conflict and one nit requiring clarification.
.github/​skills/​release-notes/​references/​format-template.md Updates breaking-change guidance to reference maintained sample sets.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/skills/validate-code-samples/SKILL.md Outdated
Avoid implying that committed sample content is exempt from normal repository checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

Resolved since last review (1)

Use the existing build-metadata.json as the SDK source of truth and delegate scoped installation to the official dotnet-install script.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5

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.

Copilot review overview

🟡 Changes recommended

Moderate SDK validation issues remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity

Open (2)

Comment thread .github/skills/validate-code-samples/SKILL.md Outdated
Comment thread .github/skills/validate-code-samples/SKILL.md Outdated
Use fresh SDK directories and explicit version checks on Windows and POSIX; require build provenance to match the actual release-notes change set.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Use the product commit as the immutable change-set head and stop when the SDK and regenerated metadata cannot be aligned.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Verify the installed SDK matches build-metadata.json without requiring productCommit lineage or regeneration of release-notes artifacts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Keep the required version and installation safeguards while letting the validation workflow read JSON with its available tools.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5

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.

Copilot review overview

🟡 Changes recommended

Critical validation gaps remain, along with branch and artifact guidance that needs clarification.

Review effort: Lite
Findings: 2 High severity

Open (2)
Resolved since last review (2)

Comment thread .github/skills/validate-code-samples/SKILL.md
Comment thread .github/skills/validate-code-samples/SKILL.md Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 637615df-deba-4407-bf00-9a3bd4e569b5

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.

Copilot review overview

🟢 Approval recommended

The only finding is a minor nit, with no blocking issues.

Review effort: Lite
Findings: None

Resolved since last review (2)

@danroth27
danroth27 merged commit ab40126 into main Sep 26, 2026
7 checks passed
@danroth27
danroth27 deleted the release-notes/code-sample-storage branch September 26, 2026 19:40
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