Skip to content

ci: test the release version logic #153

Closed

Description

@uniqueg

Why?

The release workflow decides from the tag which version is released, whether it is a prerelease (a/b/rc), and which image tags are set (#126). This logic is inline bash in .github/workflows/release.yaml and untested; a mistake would hit the release itself (e.g. a wrong latest tag or prerelease flag). Found in the v0.3.0 pre-release review.

How?

  1. Move the logic into a small, typed, documented Python script (e.g. scripts/release_version.py), called by the workflow; outputs as GITHUB_OUTPUT lines.
  2. Test it with pytest over a table of tags: v0.3.0, v0.3.0rc1, v1.0.0b2, v1.0.0a1, invalid tags (no v, local versions, garbage), and the image tags and prerelease flag for each.
  3. Keep the workflow's behaviour identical for valid tags.

Acceptance criteria

  • The workflow uses the script; tests cover every branch (100% coverage).
  • Release behaviour is unchanged for valid tags; invalid tags fail clearly.

Activity

  1. added
    priority: high
    status: blocked
    type: ci / cd
    workload: hours
    status: triage
    status: in progress
    and removed
    status: blocked
    status: triage
    on Oct 21, 2026
  2. removed
    status: in progress
    on Oct 21, 2026
  3. added a commit that references this issue on Oct 21, 2026
    72b2b21
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

    priority: hightype: ci / cdworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions