Chore: Make the flaky-spec Copilot prompt request a standalone PR off dev - #23785
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the flaky-spec reporter’s delegated @copilot prompt (posted as a PR comment from CI) to explicitly instruct Copilot to open a standalone follow-up PR based off origin/dev, avoiding accidental “stacked-on-the-triggering-PR” behavior and the associated session/base-ref coupling.
Changes:
- Rewords the delegated prompt to clarify the triggering PR is reference-only and the task is standalone.
- Adds explicit branching/targeting instructions (
origin/dev→ PR todev) and guidance for PR title/description content.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the flaky-spec reporter's
@copilotprompt said "open a separate pull request", Copilot read "separate" as a follow-up stacked on the triggering PR (example): it echoed that PR's title, based its branch on it, and framed the work as merging back into it. That coupling also meant the agent session died once the triggering PR merged, since its base ref disappeared. The prompt now states the task is standalone, unrelated to the triggering PR, to branch fromorigin/devand targetdev, to title the PR after the spec(s) it fixes, and to use the PR description for the root cause and the fix. The triggering PR number stays only as a backlink for traceability.No work package — follow-up to the flaky-spec Copilot delegation merged in #23773.
Preview
How the posted comment renders — expand for the refined prompt:
Warning
Flaky specs
rspec ./spec/features/projects/create_spec.rb[1:12:3:2:1]rspec ./spec/features/work_packages/table/switch_types_spec.rb[1:1:2]🤖 Ask Copilot to investigate
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.