Skip to content

[docs] Tighten agent guidance for backports, builds, and MTP tests - #13886

Merged
jonathanpeppers merged 1 commit into
mainfrom
dev/simonrozsival/agent-instructions-2026-12-02
Dec 2, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
dev/simonrozsival/agent-instructions-2026-12-02

Conversation

@simonrozsival

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 007d37ca0480cb445bd5978bef56f031d9184963

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ Docs-only; each edit traces to failures seen in several local agent sessions.
↑ dotnet test --project passed 142 tests in one migrated session.
↓ --project not rerun for every catalog entry.

Context: #13817

A review of about 110 recent local agent sessions in this repo found three recurring wastes that the agent instructions either didn't cover or got wrong.

Backports

One backport to release/11.0 cost about 30% of the reviewed agent spend. The agent ported main-only renames, refactors, a C# rewrite of native logic, and new tests. The user then had to remove them over several rounds. "Keep it simple" now adds: backports port only the fix, keeping the target branch's design, names, and native code, with no main-only refactors or new tests.

Parallel builds

After a coordinator asked about 70 sessions to rebase onto main, many started full make prepare && make leeroy builds at once. One session reported free disk space dropping from 67 GiB to 47 GiB within minutes. Sessions then made up a disk-space "admission" rule and polled for it: about 150 df and 110 ps checks across about 20 sessions. The local-build parallel-sessions guidance now says:

  • Prefer per-project rebuilds or an existing SDK.
  • Start a build once and wait on its process or log.
  • Don't poll df/ps in sleep loops, and don't broadcast disk or admission rules to other sessions.

This section is one line shorter.

Standalone test command

global.json selects Microsoft.Testing.Platform, so dotnet test <project>.csproj fails:

global.json defines test runner to be Microsoft.Testing.Platform. All projects must use that test runner.
The following test projects are using VSTest test runner: ...

The tests skill and its catalog now use dotnet test --project <project>.csproj.

Net change across the four instruction files: −1 line.

Validation: documentation-only, so nothing was built or tested. The --project form was confirmed by an agent session after the MTP migration: 142 tests passed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 13:26

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.

🟢 Approval recommended

The documentation-only guidance update has no active review issues.

No open issues 🎉

What changed in this PR

Refines .NET for Android’s agent guidance to reduce backport scope creep, unnecessary concurrent builds, and incorrect standalone test commands. Documentation only; no product code changes.

Changes:

  • Limit backports to the fix while preserving the target branch’s design.
  • Prefer targeted rebuilds and avoid repeated process/disk polling.
  • Use dotnet test --project in standalone examples for Microsoft.Testing.Platform.
File Description
.github/​skills/​tests/​SKILL.md Updates standalone test command guidance.
.github/​skills/​tests/​references/​test-catalog.md Adds --project to catalog commands.
.github/​skills/​local-build/​SKILL.md Tightens parallel-build and waiting guidance.
.github/​copilot-instructions.md Adds backport scope restrictions.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member

/review

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ Android PR Reviewer completed successfully!

Generated by Android PR Reviewer for #13886

@github-actions github-actions Bot 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.

No actionable findings in revision 007d37ca0480cb445bd5978bef56f031d9184963: 0 errors, 0 warnings, 0 suggestions.

Reviewed all four changed files in full. The standalone --project examples align with the repository’s MTP runner configuration, and the build guidance retains the shared-toolchain safety precautions while discouraging redundant work.

CI: CLA and the existing automated review check passed. No Azure DevOps build checks or commit statuses are reported for this revision, so full pipeline status is unverified—not confirmed green. No local builds or tests were run for these documentation-only changes.

Generated by Android PR Reviewer for #13886 · copilot · gpt61 · ~24 AIC · ⌖ ~11 AIC · ⊞ 22.3K
Comment /review to run again

@PeppersMuse

Copy link
Copy Markdown

Reviewed this docs-only change. What I checked:

  • Every positional dotnet test <project>.csproj form in .github/skills/tests/SKILL.md and references/test-catalog.md now uses dotnet test --project <project>.csproj, including all 14 catalog rows and the focused-suite command at the bottom of the catalog. I grepped the four touched files on the head ref and no positional forms remain.
  • The backport sentence added to .github/copilot-instructions.md matches the described intent (port only the fix, keep the target branch's design/names/native code, no main-only refactors or new tests).
  • The local-build parallel-sessions rewrite keeps the at-most-two-full-builds cap (MSBUILD_ARGS='-m:4') and adds the wait-on-the-build-process guidance instead of polling df/ps.
  • Copilot's review reported no open issues, and I found nothing to add.

Docs-only, no build or test impact.

@jonathanpeppers
jonathanpeppers merged commit d24972a into main Dec 2, 2026
2 checks passed
@jonathanpeppers
jonathanpeppers deleted the dev/simonrozsival/agent-instructions-2026-12-02 branch December 2, 2026 15:55
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.

4 participants