Page MenuHomePhabricator

git fatal: detected dubious ownership in repository at '/srv/jenkins/workspace/wikidata-query-builder-build/src'
Closed, ResolvedPublic

Description

The query builder build is broken, probably due to a recent change in git (compare T314987, T325128, T325253, T326469, T325280).

[wikidata-query-builder-build] $ /bin/bash -xe /tmp/jenkins10683950818767065206.sh
+ cp -R ./src/dist/assets ./src/dist/i18n ./src/dist/img ./src/dist/index.html ./src/dist-deploy/
++ git -C ./src rev-parse HEAD
fatal: detected dubious ownership in repository at '/srv/jenkins/workspace/wikidata-query-builder-build/src'
To add an exception for this directory, call:

	git config --global --add safe.directory /srv/jenkins/workspace/wikidata-query-builder-build/src

The query GUI build is affected too:

[wikidata-query-gui-build] $ /bin/bash -xe /tmp/jenkins15861540321408627261.sh
++ git -C ./src rev-parse HEAD
fatal: detected dubious ownership in repository at '/srv/jenkins/workspace/wikidata-query-gui-build/src'
To add an exception for this directory, call:

	git config --global --add safe.directory /srv/jenkins/workspace/wikidata-query-gui-build/src

Event Timeline

Michael triaged this task as High priority.Jan 31 2023, 2:35 PM
Michael subscribed.

Change 885378 had a related patch set uploaded (by Michael Große; author: Michael Große):

[integration/config@master] Allow our own repo as safe to git

https://gerrit.wikimedia.org/r/885378

Michael added a subscriber: hashar.

@hashar We are currently blocked by git's new security feature about dubious ownerships. You dealt with this before in T325128: git: detected dubious ownership in repository at '/srv/mediawiki-staging'. Could you have a look at the patch associated with that task and let us know what you think? I'm not fully sure whether we should fix that only for our affected jobs or more globally, maybe in ci-src-setup.sh?

Michael claimed this task.

Thanks to @hashar, the build works again! I've created T328543 as a follow-up. See also the IRC logs in: https://wm-bot.wmflabs.org/libera_logs/%23wikimedia-releng/20230201.txt starting at 9:43.

Change 885378 abandoned by Michael Große:

[integration/config@master] Allow our own repo as safe to git

Reason:

The immediate issue has been resolved by reconfiguring the jobs. Task T328543 was created as a follow-up.

https://gerrit.wikimedia.org/r/885378

Change 885378 restored by Hashar:

[integration/config@master] Allow our own repo as safe to git

https://gerrit.wikimedia.org/r/885378

Change 885378 merged by jenkins-bot:

[integration/config@master] Allow our own repo as safe to git

https://gerrit.wikimedia.org/r/885378