Skip to content

Require an exact binary version in release package smoke tests #140

Closed

Description

@LunaStev

Problem

x.py — smoke_binary checks version output with:

re.search(rf"\bvex\s+{re.escape(version)}\b", version_output)

The trailing word boundary accepts a hyphen or plus sign after the expected version. When packaging version 0.0.1, both vex 0.0.1-pre-beta and vex 0.0.1+other pass the smoke check.

A stale or differently versioned executable can therefore be accepted under the requested release archive name.

Acceptance criteria

  • Parse the complete version value from the supported vex --version output and compare it exactly with the requested release version.
  • Preserve ANSI stripping and supported surrounding whitespace.
  • Add focused tests/xpy cases for an exact match, different patch version, extra prerelease/build suffix, and a longer prerelease sharing the expected prefix.
  • Keep help validation and native/emulated smoke execution unchanged.
  • Run python3 -m unittest discover -s tests/xpy -v.

Difficulty: easy. This does not change accepted release-version syntax (#136) or dependency package-version semantics (#132).

Activity

  1. added
    bug
    good first issue
    release
    tooling
    on Sep 22, 2026
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

    buggood first issuereleasetooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions