Skip to content

LATX, infra: Set master version to 1.7.0-dev and align LATX_VERSION - #583

Merged
LaurenIsACoder merged 1 commit into
lat-opensource:masterfrom
LaurenIsACoder:lauren/master-version-1.7.0-dev
Dec 2, 2026
Merged

LaurenIsACoder merged 1 commit into
lat-opensource:masterfrom
LaurenIsACoder:lauren/master-version-1.7.0-dev

Conversation

@LaurenIsACoder

Copy link
Copy Markdown
Contributor

Summary

  • Update VERSION on master from 1.6.5 to 1.7.0-dev so master builds and packages no longer appear older than 1.6.6/1.6.7 releases from stable-1.6.
  • Replace raw git describe --always in meson.build with scripts/latx-version.py when -Dlatx_version is not explicitly provided:
    • Exact version tags on HEAD (e.g. 1.6.8, 1.6.8-rc1, 1.7.0) still resolve directly to the tag.
    • Commits after a tag in the same VERSION series (e.g. fixes after 1.6.8 on a stable branch) keep git describe output (1.6.8-N-g<sha>).
    • Commits whose VERSION moved ahead of the nearest ancestor tag (such as master at 1.7.0-dev after 1.6.5, or a pre-tag version bump) resolve to <VERSION>-g<short_sha> (1.7.0-dev-g<sha>) without needing a fake dev tag on master.
    • Non-git source tree builds fall back to VERSION instead of unknown.
  • Add LatxVersionTest in tests/ci/test_lat_ci_version.py and register test-latx-version in tests/unit/meson.build (lat-pr-fast).

Validation

  • Local host tests (non-LoongArch macOS, Python 3.9 + git):
    • python3 -B scripts/latx-version.py --root . -> 1.7.0-dev-g<sha>
    • python3 -B -m unittest discover -s tests/ci -p 'test_*.py' -v -> 78 tests run, 73 passed (LatxVersionTest 6/6 passed, test_lat_ci_release 18/18 passed, test_lat_ci_matrix 38/38 passed, test_lat_ci_workflows 11/11 passed), 5 skipped (VersionCacheTest requires meson, ninja, and ccache).
  • Remaining gates for CI:
    • Full lat-pr-fast Meson suite and Build and Release LAT / LAT Tests across LoongArch containers (AOSC/Debian/Fedora), plus VersionCacheTest on a host with meson, ninja, and ccache.

Release tags 1.6.6 and 1.6.7 were cut from stable-1.6 after it branched from 1.6.5, leaving master with VERSION=1.6.5 and `git describe --always` reporting 1.6.5-591-g... on master builds.

Update VERSION on master to 1.7.0-dev and resolve default LATX_VERSION via scripts/latx-version.py:
- Keep explicit -Dlatx_version overrides unchanged.
- Use an exact version tag on HEAD directly (e.g. 1.6.8, 1.6.8-rc1, 1.7.0).
- Preserve `git describe` output (including commit distance, e.g. 1.6.8-3-g<sha>) when the nearest version tag matches VERSION's series.
- Otherwise format as <VERSION>-g<short_sha> (e.g. 1.7.0-dev-g<sha>), or fall back to VERSION when building outside a git checkout.

Add unit tests in tests/ci/test_lat_ci_version.py (LatxVersionTest) and register them in the lat-pr-fast Meson suite.

Signed-off-by: Hanlu Li <heuleehanlu@gmail.com>
@LaurenIsACoder
LaurenIsACoder merged commit 8c69575 into lat-opensource:master Dec 2, 2026
24 checks passed
@LaurenIsACoder
LaurenIsACoder deleted the lauren/master-version-1.7.0-dev branch December 2, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant