Skip to content

Commit 4205c94

Browse files
authored
Chore: Make the flaky-spec Copilot prompt request a standalone PR off dev (#23785)
Make flaky-spec Copilot prompt request a standalone PR off dev Copilot read "open a separate pull request" as a follow-up stacked on the triggering PR: it inherited that PR's title and based its branch on it, so the agent session died when the base PR merged. The prompt now pins the work as standalone off origin/dev, targeting dev, with a title naming the fixed specs and a description covering root cause and fix.
1 parent cd46d9a commit 4205c94

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/test-core.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ jobs:
105105
printf '<details>\n<summary>🤖 Ask Copilot to investigate</summary>\n\n'
106106
printf 'Copy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer.\n\n'
107107
printf '```\n'
108-
printf '@copilot The following spec(s) were detected as flaky on PR #%s:\n\n' "$PR_NUMBER"
108+
printf '@copilot The following spec(s) are flaky in CI (first seen on PR #%s, linked for reference only):\n\n' "$PR_NUMBER"
109109
printf '%s\n\n' "$specs"
110-
printf 'Follow the playbook in docs/development/testing/handling-flaky-tests/README.md to investigate the root cause and apply a fix. Open a separate pull request with the change and request a review from @%s.\n' "$PR_AUTHOR"
110+
printf 'Treat this as a standalone task, unrelated to PR #%s. Create a new branch from origin/dev and open a new pull request targeting dev — do not stack it on PR #%s or reuse that branch.\n\n' "$PR_NUMBER" "$PR_NUMBER"
111+
printf 'Follow the playbook in docs/development/testing/handling-flaky-tests/README.md to find the root cause and fix the flakiness. Title the PR after the spec(s) it fixes, and use the PR description to explain the root cause and how the change resolves it. Request a review from @%s.\n' "$PR_AUTHOR"
111112
printf '```\n\n'
112113
printf '</details>\n'
113114
} > tmp/flaky_comment.md

0 commit comments

Comments
 (0)