Skip to content

The wrong Python version is tested when testing automatic updates #73

@robmoss2k

Description

@robmoss2k

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

When testing automatic updates, streams are sorted lexicographically descending. This means that Python 3.9 is tested instead of Python 3.14. The same is most likely true of many packages.

What is Expected?

Python 3.14.0-a2 should be the recipient of the test install.

How Did You Get This To Happen?

  1. I created a PR against chocolatey-packages.
  2. AppVeyor shows Python 3.9 as the recipient of the test install.

System Details

  • Operating System: Windows 11
  • Windows PowerShell version: 7.4.6
  • Chocolatey CLI Version: v2.4.1
  • Chocolatey Licensed Extension version: N/A
  • Chocolatey License type: Free
  • Terminal/Emulator: Terminal

Installed Packages

I'm not sure, this is the hosted environment used for testing.

Output Log

https://ci.appveyor.com/project/chocolateycommunity/chocolatey-packages/builds/51144306

Additional Context

The problem is here. I'm not enough of a PowerShell guru to know how to test this, but I believe the fix is:

if ($res.Streams -is [HashTable]) { $streams = $streams | Sort-Object { [System.Version]::Parse($_) } -Descending }

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssues where something has happened which was not expected or intended.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions