Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI fails with unknown permission problems #17710

Closed
wxiaoguang opened this issue Nov 18, 2021 · 4 comments · Fixed by #17725
Closed

CI fails with unknown permission problems #17710

wxiaoguang opened this issue Nov 18, 2021 · 4 comments · Fixed by #17725

Comments

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Nov 18, 2021

These errors occur many times:

+ make backend
mkdir: cannot create directory '.make_evidence': Permission denied
make: *** [Makefile:251: .make_evidence/tags] Error 1
+ make unit-test-coverage test-check
Running unit-test-coverage -race -tags 'sqlite sqlite_unlock_notify'...
open /drone/src/coverage.out: permission denied
make: *** [Makefile:395: unit-test-coverage] Error 1
@silverwind
Copy link
Member

Both seem like infrastructure issues to me.

@zeripath
Copy link
Contributor

Is it possible that make is being called before the volumes are up?

@wxiaoguang
Copy link
Contributor Author

A guess:

Maybe the problem is caused by that the gitea uid doesn't match on docker hosts.

For example, in .drone.yml, we use user: gitea, in https://gitea.com/gitea/test-env/src/branch/master/Dockerfile, we use adduser gitea uid=1000.

Is it possible that on some hosts, the uid of gitea is not 1000?

@lunny @techknowlogick

@wxiaoguang
Copy link
Contributor Author

Another possibility, the drone dependency is incorrect. I just rewrite them in the PR.

wxiaoguang added a commit that referenced this issue Nov 19, 2021
This PR should resolve the permission problems during CI, if the uid doesn't match, a more clear message is shown.

*  CI fails with unknown permission problems #17710

The new drone step dependencies:

(root)prepare-test-env -> (gitea)build -> (gitea)test
Chianina pushed a commit to Chianina/gitea that referenced this issue Mar 28, 2022
This PR should resolve the permission problems during CI, if the uid doesn't match, a more clear message is shown.

*  CI fails with unknown permission problems go-gitea#17710

The new drone step dependencies:

(root)prepare-test-env -> (gitea)build -> (gitea)test
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants