Skip to content

[avocado] Support "vN" version numbers #38150

@mikeharder

Description

@mikeharder

Going forward, a small number of specs may use the "v1/v2/..." versioning scheme (in parallel with date-based versions). To support these:

  1. Split versions into two groups. Date-based (YYYY-MM-DD) and semver-based (N.N, vN, vN.N, etc). If neither match, error?
  2. Sort date-based and sem-ver based (separately)
  3. Rule NOT_LATEST_API_VERSION_IN_DEFAULT_TAG should allow either the latest date-based or semver-based version.
  4. If needed, vN should be compatible with the latest date-based version (at the time).

We should also add this to spec-model, instead of special-casing in Avocado.

This should allow us to support both version schemes without any tooling breaking changes.

Example specs

New

Legacy

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions