Repository navigation
[docs] Tighten agent guidance for backports, builds, and MTP tests - #13886
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 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 --projectin 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
|
/review |
|
✅ Android PR Reviewer completed successfully!
|
There was a problem hiding this comment.
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
|
Reviewed this docs-only change. What I checked:
Docs-only, no build or test impact. |
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
007d37ca0480cb445bd5978bef56f031d9184963↑
dotnet test --projectpassed 142 tests in one migrated session.↓
--projectnot 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.0cost 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 leeroybuilds 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 150dfand 110pschecks across about 20 sessions. Thelocal-buildparallel-sessions guidance now says:df/psin sleep loops, and don't broadcast disk or admission rules to other sessions.This section is one line shorter.
Standalone test command
global.jsonselects Microsoft.Testing.Platform, sodotnet test <project>.csprojfails:The
testsskill and its catalog now usedotnet test --project <project>.csproj.Net change across the four instruction files: −1 line.
Validation: documentation-only, so nothing was built or tested. The
--projectform was confirmed by an agent session after the MTP migration: 142 tests passed.