Skip to content

[BUG]: HelmInstaller@1 treats alpha versions as stable #21287

@NoDataAvailable

Description

@NoDataAvailable

New issue checklist

Task name

HelmInstaller

Task version

1.246.3

Issue Description

As-of the release of helm 4.0.0-alpha.1, the filtering logic for the "latest stable" release of helm is broken. The current logic in getStableHelmVersion() only checks for the 'rc' string as an indicator of a non-stable version; with the release of 4.0.0-alpha.1, it should also check for 'alpha'.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Azure Linux 3.0

Relevant log output

Starting: 📥 Install Helm
==============================================================================
Task         : Helm tool installer
Description  : Install Helm on an agent machine
Version      : 1.246.3
Author       : Microsoft Corporation
Help         : https://aka.ms/azpipes-helm-installer-tsg
==============================================================================
Downloading: https://api.github.com/repos/helm/helm/releases
Downloading: https://get.helm.sh/helm-v4.0.0-alpha.1-linux-amd64.zip
Extracting archive
/bin/unzip /mnt/vss/_work/_temp/helm-v4.0.0-alpha.1-b2d46852-9a1d-445b-8690-bb9a29b67370.zip
Archive:  /mnt/vss/_work/_temp/helm-v4.0.0-alpha.1-b2d46852-9a1d-445b-8690-bb9a29b67370.zip
   creating: linux-amd64/
  inflating: linux-amd64/README.md   
  inflating: linux-amd64/LICENSE     
  inflating: linux-amd64/helm        

Caching tool: helm 4.0.0-alpha.1 x64
Prepending PATH environment variable with directory: /opt/hostedtoolcache/helm/4.0.0-alpha.1/x64/linux-amd64
Verifying helm installation...
Finishing: 📥 Install Helm

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions