Skip to content

Fail the Tool Rather Than the Run Where Microsoft Publishes No Feed for the Host #4124

Description

@ptr727

Problem

host-setup/linux/install-tools.sh microsoft_feed calls die when packages.microsoft.com publishes no config for the host's DISTRO_ID and DISTRO_VERSION. dotnet_feed reaches it on an amd64 host whose distro carries no .NET SDK, and powershell reaches it on every host.

die exits the whole script from inside apply_tool. So an --install run on such a host stops at that tool, skips every tool after it, and never prints the Changed and Failed summary. host-setup/linux/README.md says a failed install is collected and the run carries on, and that only a refusal, such as an unverifiable keyring, a checksum mismatch, or a declined prompt, ends the run. A missing feed config is none of those.

Constructed case: an amd64 host whose /etc/os-release names a Debian derivative with a VERSION_ID packages.microsoft.com has no config for, running install-tools.sh --install with no distro SDK. The run ends at dotnet with "Microsoft publishes no feed for ...", and powershell and the summary never run.

Found by the local strict review of #4110, which made the sibling no-SDK exit in dotnet_install fail the tool and carry on. This exit predates that change.

Proposed Fix

Have microsoft_feed warn and return non-zero, and have dotnet_feed and the powershell install treat that as a failed tool, so the run collects it and carries on.

Activity

  1. added
    pre-existing
    on Nov 12, 2026
  2. ptr727 commented on Nov 22, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-22): the branch merged as #4352 and was cleaned up, so this claim holds no files.

    Backlog burndown claim (round 4, group 7, 2026-11-22): branch burndown/r4-install-tools-defects, issues #4172, #4124, #2596.

    Predicted files: host-setup/linux/install-tools.sh, tests/test_install_tools.py, host-setup/linux/README.md.

    The stale branch feature/wsl-2299 also edits these files. The maintainer ruled on 2026-11-22 that its claim is released and that he deletes that branch himself, so this group does not wait on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions