Skip to content

Avoid blocked npm mirror in Test Quality Improver - #11326

Merged
lpcox merged 2 commits into
mainfrom
copilot/aw-test-quality-improver
Nov 8, 2026
Merged

lpcox merged 2 commits into
mainfrom
copilot/aw-test-quality-improver

Conversation

Copilot AI commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Test Quality Improver reported an incomplete result after npm ci failed certificate verification against the blocked Azure mirror, preventing baseline test execution.

  • Dependency preparation: Install root dependencies before sandbox startup. Temporarily normalize mirror URLs to the public registry, preserve locked versions and integrity hashes, and restore the original lockfile on success or failure.
  • Runtime preservation: Retain the published AWF runtime during postprocessing, avoiding a redundant mirror-based install. Regenerate the workflow lock.
  • Regression coverage: Cover URL normalization, unchanged package metadata, lockfile restoration, and preparation before agent launch.

Installation keeps TLS verification enabled and disables lifecycle scripts:

npm ci --ignore-scripts --registry=https://registry.npmjs.org --no-audit --no-fund

Copilot AI changed the title [WIP] Fix incomplete result reported by Test Quality Improver Avoid blocked npm mirror in Test Quality Improver Nov 8, 2026
Copilot AI requested a review from lpcox November 8, 2026 18:37
@lpcox
lpcox marked this pull request as ready for review November 8, 2026 18:42
Copilot AI adaptive review requested due to automatic review settings November 8, 2026 18:42

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.

🟢 Approval recommended

No active review issues were identified in the changes to prepare test dependencies before sandbox startup.

No open issues 🎉

What changed in this PR

Addresses #11292 by preparing Test Quality Improver’s root test dependencies before sandbox startup, avoiding the Azure npm mirror that blocked baseline testing.

Changes:

  • Temporarily redirects mirror URLs to the public npm registry, preserves locked versions and integrity hashes, and restores the lockfile after installation.
  • Preserves the published AWF runtime and regenerates the workflow lock.
  • Adds regression coverage for dependency preparation, lockfile restoration, and runtime preservation.
File Description
scripts/​ci/​test-quality-improver-workflow.test.ts Tests URL normalization, metadata preservation, restoration, and preparation order.
scripts/​ci/​apply-general-workflow-patches.ts Adds Test Quality Improver to the published-runtime preservation list.
scripts/​ci/​apply-general-workflow-patches.test.ts Covers published-runtime preservation for this workflow.
.github/​workflows/​test-quality-improver.md Adds dependency preparation and instructs the agent to reuse installed dependencies.
.github/​workflows/​test-quality-improver.lock.yml Regenerates the executable workflow with the preparation step.

Review effort: Balanced (auto)

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@lpcox
lpcox merged commit 0e6b944 into main Nov 8, 2026
35 of 40 checks passed
@lpcox
lpcox deleted the copilot/aw-test-quality-improver branch November 8, 2026 19:44
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.

[aw] Test Quality Improver: reported incomplete result

3 participants