Skip to content

test(release-validation): pass --target copilot to apm init on Windows#1180

Merged
danielmeppiel merged 1 commit intomainfrom
fix/v0.12.3-windows-release-validation
May 7, 2026
Merged

test(release-validation): pass --target copilot to apm init on Windows#1180
danielmeppiel merged 1 commit intomainfrom
fix/v0.12.3-windows-release-validation

Conversation

@danielmeppiel
Copy link
Copy Markdown
Collaborator

TL;DR

Hero scenario 2 of release validation fails only on Windows (run 25484129617) because the .ps1 mirror of test-release-validation.sh was missed when #1171 added --target copilot to apm init --yes.

Why only Windows

Script apm init invocation
scripts/test-release-validation.sh:224 apm init my-project --yes --target copilot
scripts/windows/test-release-validation.ps1:263 (before this PR) apm init my-project --yes (missing)

Without --target copilot the resulting apm.yml has no target, the fresh my-project/ has no .github/ signal, and the next step apm install microsoft/apm-sample-package exits 2 under post-#1154 strict harness detection.

Fix

One-line addition: pass --target copilot to apm init in the Windows release-validation script, matching the .sh mirror.

Follow-up

After merge, retag v0.12.3 to the new merge SHA so the release pipeline reruns.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

The .ps1 mirror of test-release-validation.sh was missed in #1171.
Bash script already passes '--target copilot' to 'apm init --yes' so
the resulting apm.yml has an explicit target. Without the flag on
Windows, the fresh project has no target and no .github/ signal, so
the next 'apm install microsoft/apm-sample-package' exits 2 under
post-#1154 strict harness detection.

Why only Windows: the mirror gap. macOS/Linux release validation has
been passing this flag since #1171.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 7, 2026 08:24
@danielmeppiel danielmeppiel merged commit 2c73e36 into main May 7, 2026
20 checks passed
@danielmeppiel danielmeppiel deleted the fix/v0.12.3-windows-release-validation branch May 7, 2026 08:27
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

Aligns the Windows release-validation script with the Unix shell mirror so Hero Scenario 2 initializes a project with an explicit Copilot harness target, preventing subsequent apm install from failing closed on Windows due to missing harness detection.

Changes:

  • Update apm init invocation in the Windows release-validation script to include --target copilot.
  • Update the corresponding Write-Host “Running:” line to match the actual command being executed.
Show a summary per file
File Description
scripts/windows/test-release-validation.ps1 Passes --target copilot to apm init in Hero Scenario 2 to ensure apm.yml declares a target and downstream steps behave consistently on Windows.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

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.

2 participants