Repository navigation
LATX, infra: Set master version to 1.7.0-dev and align LATX_VERSION - #583
Merged
LaurenIsACoder merged 1 commit intoDec 2, 2026
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VERSIONonmasterfrom1.6.5to1.7.0-devsomasterbuilds and packages no longer appear older than1.6.6/1.6.7releases fromstable-1.6.git describe --alwaysinmeson.buildwithscripts/latx-version.pywhen-Dlatx_versionis not explicitly provided:HEAD(e.g.1.6.8,1.6.8-rc1,1.7.0) still resolve directly to the tag.VERSIONseries (e.g. fixes after1.6.8on astablebranch) keepgit describeoutput (1.6.8-N-g<sha>).VERSIONmoved ahead of the nearest ancestor tag (such asmasterat1.7.0-devafter1.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 onmaster.VERSIONinstead ofunknown.LatxVersionTestintests/ci/test_lat_ci_version.pyand registertest-latx-versionintests/unit/meson.build(lat-pr-fast).Validation
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 (LatxVersionTest6/6 passed,test_lat_ci_release18/18 passed,test_lat_ci_matrix38/38 passed,test_lat_ci_workflows11/11 passed), 5 skipped (VersionCacheTestrequiresmeson,ninja, andccache).lat-pr-fastMeson suite andBuild and Release LAT/LAT Testsacross LoongArch containers (AOSC/Debian/Fedora), plusVersionCacheTeston a host withmeson,ninja, andccache.