Skip to content

Add PR label management to test verification skill - #33739

Merged
PureWeen merged 3 commits into
dotnet:mainfrom
kubaflo:verify-if-tests-fail-without-fix-labels
Jan 29, 2026
Merged

Add PR label management to test verification skill#33739
PureWeen merged 3 commits into
dotnet:mainfrom
kubaflo:verify-if-tests-fail-without-fix-labels

Conversation

@kubaflo

@kubaflo kubaflo commented Jan 28, 2026

Copy link
Copy Markdown
Collaborator

Adds automatic PR label management to the verify-tests-fail-without-fix skill. After test verification completes, the skill now updates labels on the PR to indicate verification status.

New Labels:

  • s/ai-reproduction-confirmed - Tests correctly FAIL without fix
  • s/ai-reproduction-failed - Tests PASS without fix

Files Changed:

  • SKILL.md - Added PR Labels documentation section
  • verify-tests-fail.ps1 - Added Update-VerificationLabels function
Enhances the verification process by automatically adding or removing PR labels (`s/ai-reproduction-confirmed` and `s/ai-reproduction-failed`) based on test outcomes. Updates documentation to describe label behavior and integrates label updates into both quick and full verification modes.
Copilot AI review requested due to automatic review settings January 28, 2026 14:38
@kubaflo

kubaflo commented Jan 28, 2026

Copy link
Copy Markdown
Collaborator Author

📋 PR Finalization Review

Review 1: Initial finalization check ⚠️ Needs Update

Title ✅ Good

Current: Add PR label management to test verification skill


Description ⚠️ Needs Update

Good summary paragraph but missing required sections

Missing Elements

NOTE block at top,Description of Change section content,Issues Fixed section content

✨ Suggested PR Description

Click to see proposed description

Adds automatic PR label management to the verify-tests-fail-without-fix skill. After test verification completes, the skill now updates labels on the PR to indicate verification status.

New Labels:

  • s/ai-reproduction-confirmed - Tests correctly FAIL without fix
  • s/ai-reproduction-failed - Tests PASS without fix

Files Changed:

  • SKILL.md - Added PR Labels documentation section
  • verify-tests-fail.ps1 - Added Update-VerificationLabels function

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

This PR enhances the test verification skill by adding automated PR label management based on verification outcomes. The skill now adds s/ai-reproduction-confirmed when tests correctly fail without a fix (proving they catch the bug) or s/ai-reproduction-failed when tests pass without a fix (indicating they don't catch the bug).

Changes:

  • Implemented label management function that updates PR labels based on test verification results
  • Integrated label updates into both quick verification mode (test-only) and full verification mode (test + fix)
  • Added comprehensive documentation explaining label behavior, colors, and when each label is applied

Reviewed changes

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

File Description
.github/skills/verify-tests-fail-without-fix/scripts/verify-tests-fail.ps1 Added Update-VerificationLabels function and integrated it at all verification result points (both success and failure paths in quick and full modes)
.github/skills/verify-tests-fail-without-fix/SKILL.md Added PR Labels section documenting the two labels, their colors, when they're applied, and their behavior during re-verification
Comment on lines +164 to +168
if ($LASTEXITCODE -eq 0) {
Write-Host "✅ Labels updated successfully" -ForegroundColor Green
} else {
Write-Host "⚠️ Failed to update labels (may not have permission)" -ForegroundColor Yellow
}

Copilot AI Jan 28, 2026

Copy link

Choose a reason for hiding this comment

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

The $LASTEXITCODE check on line 164 only reflects the exit code of the last gh pr edit command (line 162 - adding the label), not the gh pr edit command on line 157 (removing the label). If removing the label fails but adding succeeds, the function will report success even though the removal may have failed.

Consider checking $LASTEXITCODE after the remove operation as well, or tracking both operations separately to provide accurate feedback.

Copilot uses AI. Check for mistakes.
@kubaflo kubaflo added the area-ai-agents Copilot CLI agents, agent skills, AI-assisted development label Jan 28, 2026
Address Copilot review feedback - track success of both DELETE and POST
operations separately. If the DELETE fails but POST succeeds, report
partial failure instead of full success to avoid misleading logs and
potential conflicting label state.
@PureWeen
PureWeen merged commit e8f0031 into dotnet:main Jan 29, 2026
2 of 3 checks passed
rmarinho pushed a commit that referenced this pull request Jan 29, 2026
Adds automatic PR label management to the verify-tests-fail-without-fix
skill. After test verification completes, the skill now updates labels
on the PR to indicate verification status.

**New Labels:**
- s/ai-reproduction-confirmed - Tests correctly FAIL without fix
- s/ai-reproduction-failed - Tests PASS without fix

**Files Changed:**
- SKILL.md - Added PR Labels documentation section
- verify-tests-fail.ps1 - Added Update-VerificationLabels function

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
kubaflo added a commit to kubaflo/maui that referenced this pull request Feb 2, 2026
Adds automatic PR label management to the verify-tests-fail-without-fix
skill. After test verification completes, the skill now updates labels
on the PR to indicate verification status.

**New Labels:**
- s/ai-reproduction-confirmed - Tests correctly FAIL without fix
- s/ai-reproduction-failed - Tests PASS without fix

**Files Changed:**
- SKILL.md - Added PR Labels documentation section
- verify-tests-fail.ps1 - Added Update-VerificationLabels function

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
@kubaflo kubaflo added the copilot label Feb 6, 2026
This was referenced Feb 12, 2026
This was referenced Feb 19, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai-agents Copilot CLI agents, agent skills, AI-assisted development copilot

3 participants