Azure / Azure/azure-dev

Extension upgrade: network outage silently makes extensions appear delisted

Open
#7,973 0 comments 0 reactions 0 assignees View on GitHub
area/extensions enhancement
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

## Description

When the network is down during `azd extension upgrade --all`, SourceManager silently drops unreachable sources and `FindExtensions` returns 0 matches with no error. The `isNetworkError` check never fires because `err` is nil. This causes every extension to appear "delisted" rather than surfacing the actual network failure.

## Expected Behavior

When a source is unreachable due to network issues, the error should be surfaced so `isNetworkError` can detect it and report the actual problem to the user, rather than silently treating all extensions as delisted.

## Context

Identified during review of PR #7853 by @jongio.

## Suggested Approach

Surface the underlying error from SourceManager when a source fails to load, rather than silently dropping it. This would allow the upgrade flow to distinguish between "extension genuinely removed from registry" and "registry unreachable."

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.