Skip to content

cmake: Only take OBS version tags for the OBS version - #220

Merged
zackees merged 2 commits into
masterfrom
ci/version-tag-match
Oct 11, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/version-tag-match

Conversation

@zackees

@zackees zackees commented Oct 11, 2026

Copy link
Copy Markdown
Member

The obs-studio-rust-v* release tags from #215, and the obs-stream-rust-v* tags, broke every macOS build on master and on every PR (#218, #219). cmake/common/versionconfig.cmake runs git describe --tags, which takes the nearest tag of any name:

CMake Error at CMakeLists.txt:5 (project):
  VERSION "obs-studio-rust-v0.1.0" format invalid.
  • RED: ci/test_versionconfig.py builds a throwaway repo tagged 33.0.0-beta6, then newer Rust app tags, and runs versionconfig.cmake with cmake -P. test_newer_rust_app_tags_are_ignored fails: 'obs-stream-rust-v0.1.0' != '33.0.0'.
  • GREEN: git describe ... --match "[0-9]*.[0-9]*.[0-9]*". Both tests pass, and on this repo it yields 33.0.0-beta6-389-ge226c3d25 again. It runs in ./lint's ci self-test.

Local gate: lint, rust-test and tier2-linux all passed.

zackees and others added 2 commits October 11, 2026 01:14
The release workflow (#215) tags obs-studio-rust-v*, and obs-stream-rust
has its own v* tags. versionconfig.cmake runs git describe --tags, which
picks the nearest tag of any name, so every macOS build now fails with
'VERSION "obs-studio-rust-v0.1.0" format invalid'.
test_newer_rust_app_tags_are_ignored gets 'obs-stream-rust-v0.1.0'
instead of 33.0.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
git describe now matches [0-9]*.[0-9]*.[0-9]* tags only, so the
obs-studio-rust-v* and obs-stream-rust-v* release tags no longer become
OBS_VERSION. On master this yields 33.0.0-beta6-389-ge226c3d25 again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=6508a45a08599f299f39114cb11353d048048271 secs=209 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791706671,"gate":"rust/all/fmt","host":"linux-x86_64","key":"daa1e8d0b6205a1487fa6e90a16e357f98aecf4499e82a72b8f8d3dd43443ff0","lane":"lint","parents":["34edeca88f45ac6c6e45b1a3804473a30e02da29"],"secs":86,"stamp":"3e9900df8fb872add172b73729a82f36","tree":"6508a45a08599f299f39114cb11353d048048271","v":1,"via":"run"}
Ci-Attestation: {"at":1791706671,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"daa1e8d0b6205a1487fa6e90a16e357f98aecf4499e82a72b8f8d3dd43443ff0","lane":"lint","parents":["34edeca88f45ac6c6e45b1a3804473a30e02da29"],"secs":86,"stamp":"cc03e6d6bd8d392fa642dda2d63a3c00","tree":"6508a45a08599f299f39114cb11353d048048271","v":1,"via":"run"}
Ci-Attestation: {"at":1791706671,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"e66f2e4846ea88cb11f6ba62f22338f31fafec384961c249ff628aa428ddb52e","lane":"rust-test","parents":["34edeca88f45ac6c6e45b1a3804473a30e02da29"],"secs":43,"stamp":"190bf76ae51f1f036eacb34ae877a6a4","tree":"6508a45a08599f299f39114cb11353d048048271","v":1,"via":"run"}
Ci-Attestation: {"at":1791706671,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"f4c368db7e0b440163e58f9e223f549d0cd560382aa5b70c0ace190f258da97b","lane":"tier2-linux","parents":["34edeca88f45ac6c6e45b1a3804473a30e02da29"],"secs":80,"stamp":"5fc4afce6f979d5efdf0d8b21374cf42","tree":"6508a45a08599f299f39114cb11353d048048271","v":1,"via":"run"}
@zackees
zackees merged commit d04596b into master Oct 11, 2026
23 checks passed
zackees added a commit to rdoupe/obs-studio that referenced this pull request Oct 12, 2026
The repo also carries obs-studio-rust-v* and obs-stream-rust-v* tags.
obs-rust#220 filtered versionconfig.cmake, but .package.zsh (macOS, Ubuntu) and
Package-Windows.ps1 still run plain git describe --tags --long, so the
macOS disk image on master was named
obs-studio-obs-studio-rust-v0.1.0-beta.20261011-984620103-macos-apple.
test_describe_match fails while any git describe --tags lacks --match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
zackees added a commit to rdoupe/obs-studio that referenced this pull request Oct 12, 2026
.package.zsh and Package-Windows.ps1 now pass --match
'[0-9]*.[0-9]*.[0-9]*' to git describe, like versionconfig.cmake (obs-rust#220).
On master this yields 33.0.0-beta6-642-gee4cc0a5f instead of the
obs-studio-rust-v* tag. test_describe_match passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=edf96f481c505bec2c37b64a14440eccd13e2876 secs=144 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791782432,"gate":"rust/all/fmt","host":"linux-x86_64","key":"2165baa707de4830563324b5809b8cf391b81399ddad97a4a3f08a12fe45aa32","lane":"lint","parents":["74df3a0ece5b4fdd5f4cc6096489e0a4af489ac3"],"secs":49,"stamp":"2e2df274940afd07a9da36d950a84851","tree":"edf96f481c505bec2c37b64a14440eccd13e2876","v":1,"via":"run"}
Ci-Attestation: {"at":1791782432,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"2165baa707de4830563324b5809b8cf391b81399ddad97a4a3f08a12fe45aa32","lane":"lint","parents":["74df3a0ece5b4fdd5f4cc6096489e0a4af489ac3"],"secs":49,"stamp":"f3204628c457b64b9caa3c7baaddfe20","tree":"edf96f481c505bec2c37b64a14440eccd13e2876","v":1,"via":"run"}
Ci-Attestation: {"at":1791782432,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"16b7975c060e271fc0eaf03d5679c0be449a06bee00f2274cec822d210a79a38","lane":"rust-test","parents":["74df3a0ece5b4fdd5f4cc6096489e0a4af489ac3"],"secs":42,"stamp":"19f6bbaab0e20daba0a01880d5118182","tree":"edf96f481c505bec2c37b64a14440eccd13e2876","v":1,"via":"run"}
Ci-Attestation: {"at":1791782432,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"77074a72a4282d03085a8fb61151eebb65ed0f36a54a2b0b53ba5f3d6f050b24","lane":"tier2-linux","parents":["74df3a0ece5b4fdd5f4cc6096489e0a4af489ac3"],"secs":53,"stamp":"9311577a998ce45b3ddfb6d49b096d1c","tree":"edf96f481c505bec2c37b64a14440eccd13e2876","v":1,"via":"run"}
@zackees
zackees deleted the ci/version-tag-match branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant