Skip to content

fix: prevent duplicate Test Improver monthly activity issues#681

Merged
danielmeppiel merged 2 commits intomicrosoft:mainfrom
sergio-sisternes-epam:fix/658-673-679-test-improver-dupes
Apr 19, 2026
Merged

fix: prevent duplicate Test Improver monthly activity issues#681
danielmeppiel merged 2 commits intomicrosoft:mainfrom
sergio-sisternes-epam:fix/658-673-679-test-improver-dupes

Conversation

@sergio-sisternes-epam
Copy link
Copy Markdown
Collaborator

Description

Fix the Daily Test Improver agentic workflow to prevent it from creating duplicate monthly activity issues. The workflow's Task 7 was creating a new issue on every run instead of finding and updating the existing one, resulting in three identical issues for April 2026.

Fixes #658, #673, #679

Root cause

The original Task 7 instruction was a single vague sentence: "Search for an open issue... If it's for the current month, update it." The AI agent wasn't reliably following this, creating new issues each run instead.

Changes

  • .github/workflows/daily-test-improver.md — Replaced the single-line Task 7 step 1 with explicit, step-by-step instructions that:
    1. Provide the exact gh search issues command to find existing issues
    2. Enumerate all three cases (found current month / found old month / found nothing)
    3. Emphasize "never create duplicates" as a guardrail constraint repeated twice

Duplicate cleanup

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

N/A — this is an agentic workflow instruction change, not code. The fix will be validated on the next scheduled workflow run.

…ft#658, microsoft#673, microsoft#679)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sergio-sisternes-epam sergio-sisternes-epam marked this pull request as ready for review April 12, 2026 10:01
Copilot AI review requested due to automatic review settings April 12, 2026 10:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Daily Test Improver agentic workflow instructions to reliably reuse (and only create when necessary) the monthly activity tracking issue, preventing duplicate monthly issues across repeated runs.

Changes:

  • Replaces the vague Task 7 guidance with explicit, step-by-step issue discovery/update/create logic.
  • Adds a concrete gh search issues invocation and enumerates the decision cases for current-month vs previous-month vs no issue found.

Comment thread .github/workflows/daily-test-improver.md Outdated
Comment thread .github/workflows/daily-test-improver.md Outdated
… multiple duplicates

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danielmeppiel danielmeppiel enabled auto-merge April 19, 2026 16:02
auto-merge was automatically disabled April 19, 2026 16:18

Pull request was closed

@danielmeppiel danielmeppiel reopened this Apr 19, 2026
@danielmeppiel danielmeppiel added CI/CD and removed CI/CD labels Apr 19, 2026
@danielmeppiel danielmeppiel added this pull request to the merge queue Apr 19, 2026
Merged via the queue into microsoft:main with commit a44dd0a Apr 19, 2026
27 of 31 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.

[Test Improver] Monthly Activity 2026-04 [Test Improver] Monthly Activity 2026-04

3 participants