Skip to content

Use a test-specific followUp prompt for "does not deploy aspire custom resources" - #1682

Merged
kvenkatrajan merged 1 commit into
microsoft:mainfrom
tmeschter:20260402-Issue-1591
Apr 2, 2026
Merged

Use a test-specific followUp prompt for "does not deploy aspire custom resources"#1682
kvenkatrajan merged 1 commit into
microsoft:mainfrom
tmeschter:20260402-Issue-1591

Conversation

@tmeschter

Copy link
Copy Markdown
Member

The default FOLLOW_UP_PROMPT ("Go with recommended options and proceed with Azure deployment.") improperly encourages the agent to continue with a deployment even when there is nothing to deploy. In the does not deploy aspire custom resources test, the Aspire app contains only non-deployable custom resources (TalkingClock, TestResource with .ExcludeFromManifest()). The agent correctly identifies this and creates a plan saying the app is not deployable, but then the follow-up prompt pushes it to add a new Web API project and deploy anyway—causing the containsDeployLinks assertion to fail.

This PR replaces the follow-up prompt for this specific test with one that allows the agent to stop when it determines there is no further work.

Fixes #1591

…m resources"

The default FOLLOW_UP_PROMPT ("Go with recommended options and proceed with
Azure deployment.") improperly encourages the agent to continue with a
deployment even when there is nothing to deploy. In this test the Aspire
app contains only non-deployable custom resources, and the agent correctly
identifies this, but then the follow-up prompt pushes it to add a new
project and deploy anyway.

Replace with a prompt that allows the agent to stop when it determines
there is no further work.

Fixes microsoft#1591

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 2, 2026 21:39

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

Adjusts the azure-deploy integration test harness so the “does not deploy aspire custom resources” scenario is not pushed into an unintended deployment path when the agent correctly determines there is nothing deployable.

Changes:

  • Replaces the default FOLLOW_UP_PROMPT for the does not deploy aspire custom resources test with a test-specific follow-up that permits stopping when there’s no further work.

@kvenkatrajan
kvenkatrajan merged commit def27f2 into microsoft:main Apr 2, 2026
15 checks passed
Barbara 4bes (Ba4bes) pushed a commit to Ba4bes/GitHub-Copilot-for-Azure that referenced this pull request Apr 24, 2026
…m resources" (microsoft#1682)

The default FOLLOW_UP_PROMPT ("Go with recommended options and proceed with
Azure deployment.") improperly encourages the agent to continue with a
deployment even when there is nothing to deploy. In this test the Aspire
app contains only non-deployable custom resources, and the agent correctly
identifies this, but then the follow-up prompt pushes it to add a new
project and deploy anyway.

Replace with a prompt that allows the agent to stop when it determines
there is no further work.

Fixes microsoft#1591

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Integration test failure: azure-deploy – aspire custom resources brownfield [Assertion mismatch]

3 participants