Skip to content

rust/tools: Name builds from OBS version tags only - #457

Merged
zackees merged 2 commits into
masterfrom
fix/sanitize-describe
Oct 13, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/sanitize-describe

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Unblocks #448 and #449.

The sanitizer workflow failed in about a minute on every pass (run 38343670911): CMake Error at cmake/common/versionconfig.cmake:41: Invalid version supplied. rust/tools/sanitize/sanitize.sh passes git -C "$src" describe --always --tags as OBS_VERSION_OVERRIDE, and that now returns one of the fork's own tags (obs-studio-rust-v…/continuous). This is the same bug #220/#318 fixed for packaging.

  • RED: ci/test_describe_match.py now also scans rust/tools/ and matches git options before describe (git -C <dir> describe). It caught sanitize.sh and also linux-validate/run.sh, which the Tier 2 harness uses from a worktree.
  • GREEN: both use --match "[0-9]*.[0-9]*.[0-9]*", as versionconfig.cmake does.

The local gate passed and is stamped. This PR touches rust/tools/sanitize/**, so the sanitizers workflow runs on it, which is a direct check of the fix.

sanitize.sh's 'git -C <dir> describe --tags' now returns a fork tag, so
the sanitizer workflow can't configure. The check also covers git
options before 'describe'.

Refs #448, #449
sanitize.sh and linux-validate/run.sh passed a plain 'git describe
--tags' as OBS_VERSION_OVERRIDE. Since the fork's obs-studio-rust-v* and
continuous tags exist, that returns a non-OBS version and CMake refuses
to configure; the sanitizer workflow failed in 1 minute on all passes.

Refs #448, #449

Local-Gate: v1 tree=23979d679d069ecd24c4a54a927444a025c49f0b secs=341 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791867982,"gate":"rust/all/fmt","host":"linux-x86_64","key":"86adc81cbc62df9f71e97ca194ba8ab22b456b2be1bed5b4b73f034a3f38d754","lane":"lint","parents":["4b8f82c03664e8833cb5f45906c72ed87e37be29"],"secs":126,"stamp":"a071f49b15bf1a3c021fae37ceeb0585","tree":"23979d679d069ecd24c4a54a927444a025c49f0b","v":1,"via":"run"}
Ci-Attestation: {"at":1791867982,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"86adc81cbc62df9f71e97ca194ba8ab22b456b2be1bed5b4b73f034a3f38d754","lane":"lint","parents":["4b8f82c03664e8833cb5f45906c72ed87e37be29"],"secs":126,"stamp":"e85284d335d657bf516d1fd76d461603","tree":"23979d679d069ecd24c4a54a927444a025c49f0b","v":1,"via":"run"}
Ci-Attestation: {"at":1791867982,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"905b3dfe9455b8311af5ec5f6182b5de527f61c4dbdb3a775731b9d9d004d141","lane":"rust-test","parents":["4b8f82c03664e8833cb5f45906c72ed87e37be29"],"secs":149,"stamp":"28ba9e1d4397b9a727a22006bbbd8aab","tree":"23979d679d069ecd24c4a54a927444a025c49f0b","v":1,"via":"run"}
Ci-Attestation: {"at":1791867982,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"a0d16394333c6897d8471ed21e7cd0f81b0cbd6b284fdd9eb9dc637d810021f3","lane":"tier2-linux","parents":["4b8f82c03664e8833cb5f45906c72ed87e37be29"],"secs":66,"stamp":"ec6b7624acdb8a4e91dcdd341697512a","tree":"23979d679d069ecd24c4a54a927444a025c49f0b","v":1,"via":"run"}
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