Skip to content

ci: Mark the Tier 2 source git-safe in the job container - #1030

Merged
zackees merged 2 commits into
masterfrom
fix/tier2-container-safe-directory
Oct 16, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/tier2-container-safe-directory

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fixes #1019.

Master push run 38865051665 (the first with #967's stock ubuntu:26.04 job container) failed Tier 2 Linux in both modes within a second of validation:

CMake Error at cmake/common/versionconfig.cmake:20: Could not fetch OBS version tag from git.
fatal: detected dubious ownership in repository at '/__w/obs-studio/obs-studio'

git runs as root in the container on a checkout owned by the runner user, and validate.sh added safe.directory only on the Docker-harness path.

RED 46c39b4, GREEN a022a94; ci/ suite green.

Local repro (Tier 2 image, root, a checkout owned by another user): git describe gives fatal: detected dubious ownership without the setting and obs-studio-rust-v0.1.0-beta.20261014-177-g294277aac with it.

The container setup itself worked on master: packages 55–59 s, soldr 28–30 s.

)

Fails: validate.sh adds safe.directory only when OBS_TIER2_SRC is unset,
and the temporary group-test diagnostic is still in the workflow.
Since #967 Tier 2 Linux runs in a stock ubuntu:26.04 job container,
where git runs as root on a checkout owned by the runner user. CMake
then couldn't read the version tag ('dubious ownership') and Tier 2
failed in both modes on master. validate.sh now adds safe.directory for
$SRC in every harness. Also removes the temporary group-test diagnostic
#967 carried onto master.
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.

ci: Tier 2 Linux fails on master: git 'dubious ownership' in the job container

1 participant