Skip to content

Retry transient Copilot CLI downloads in Dependency Security Monitor - #11383

Merged
lpcox merged 3 commits into
mainfrom
copilot/aw-fix-dependency-security-monitor
Nov 10, 2026
Merged

lpcox merged 3 commits into
mainfrom
copilot/aw-fix-dependency-security-monitor

Conversation

Copilot AI commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Dependency Security Monitor failed before agent execution when downloading Copilot CLI’s checksum manifest repeatedly returned HTTP 504.

  • Recovery: Extend the existing installer retry wrapper to this workflow: three attempts, 90 seconds each, with 30/60-second backoff.
  • Verification: Preserve version and checksum pins; retry only download failures, failing immediately on verification or installation errors.
  • Regression coverage: Share recovery, retry-exhaustion, fail-fast, and idempotency cases across both workflows using the wrapper.

Copilot AI changed the title [WIP] Fix Dependency Security Monitor failure before agent execution Retry transient Copilot CLI downloads in Dependency Security Monitor Nov 9, 2026
Copilot AI requested a review from lpcox November 9, 2026 19:04
@lpcox
lpcox marked this pull request as ready for review November 9, 2026 20:07
Copilot AI adaptive review requested due to automatic review settings November 9, 2026 20:07

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

There are no active review issues for the Dependency Security Monitor installer retry changes.

No open issues 🎉

What changed in this PR

Extends the existing Copilot CLI installer retry wrapper to Dependency Security Monitor, addressing transient download failures that prevent agent startup in #11352.

Changes:

  • Adds up to three 90-second installation attempts with 30/60-second backoff for selected download failures.
  • Preserves version and checksum pins and fail-fast handling for verification and installation errors.
  • Shares recovery, retry-exhaustion, fail-fast, and idempotency regression cases across both workflows.
File Description
scripts/​ci/​copilot-token-optimizer-workflow.test.ts Parameterizes existing regression cases across both workflows.
scripts/​ci/​apply-general-workflow-patches.ts Extends retry-wrapper generation to Dependency Security Monitor.
.github/​workflows/​dependency-security-monitor.lock.yml Applies the bounded retry wrapper to the pinned CLI installation.

Review effort: Balanced (auto)

@github-actions

github-actions Bot commented Nov 9, 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 commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

…ency-security-monitor

# Conflicts:
#	scripts/ci/apply-general-workflow-patches.ts

Co-authored-by: lpcox <[email protected]>

Copilot AI commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@copilot merge main and resolve conflicts

Merged main and resolved the workflow-patch conflict, preserving both the retry wrapper and main’s cache-memory sanitization. Merge commit: 8b4e7e2.

Copilot AI commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@copilot merge main and resolve conflicts

Merged main and resolved the patcher conflict in 8b4e7e2. The merge commit has both parents; targeted Jest tests were blocked because the npm package-feed host could not resolve.

@lpcox
lpcox merged commit 8859852 into main Nov 10, 2026
33 of 35 checks passed
@lpcox
lpcox deleted the copilot/aw-fix-dependency-security-monitor branch November 10, 2026 01:58
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] Dependency Security Monitor: failed before agent execution started

3 participants