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

Contributor testing fails with drone_step_0 : exit code 128 #7108

Closed
1 of 7 tasks
e3b0c442 opened this issue Jun 3, 2019 · 4 comments
Closed
1 of 7 tasks

Contributor testing fails with drone_step_0 : exit code 128 #7108

e3b0c442 opened this issue Jun 3, 2019 · 4 comments

Comments

@e3b0c442
Copy link
Contributor

e3b0c442 commented Jun 3, 2019

Description

When attempting to run contributor tests as outlined in CONTRIBUTING.md, the testing fails with drone_step_0 : exit code 128. Unfortunately there is no obvious reason for the failure, except that it seems to lie with MSSQL startup.

I tried running the test script linked in #6269 with no change.

I also tried running with drone-cli == 1.1.0 with the commend drone exec --event pull_request with no change.
...

Screenshots

n/a

@e3b0c442
Copy link
Contributor Author

e3b0c442 commented Jun 3, 2019

git bisect shows this issue was introduced with a27d5d2.

@e3b0c442
Copy link
Contributor Author

e3b0c442 commented Jun 3, 2019

Logs from the fetch-tags step:

[fetch-tags:L0:0s] + git fetch --tags --force
[fetch-tags:L1:0s] Host key verification failed.
[fetch-tags:L2:0s] fatal: Could not read from remote repository.
[fetch-tags:L3:0s] 
[fetch-tags:L4:0s] Please make sure you have the correct access rights
[fetch-tags:L5:0s] and the repository exists.

Looks like a bad git host key on the docker:git image?

@e3b0c442
Copy link
Contributor Author

e3b0c442 commented Jun 3, 2019

I was able to work around this issue by cloning https instead of git+ssh, however, I don't think it's unreasonable that people may prefer using ssh over https. I wonder if there is a way this can be enabled, but I can already see that if the host key issue is resolved, the fetch would still fail because of auth. I'll ponder this today.

I'm guessing the clone config item that previously existed was done outside of the container where the full SSH config/auth of the host was available.

@techknowlogick
Copy link
Member

Drone clones via HTTPS (it also injects auth variables for cloning into the container which don't exist when running locally), I'm guessing you cloned via SSH (which is what you should do as git via SSH is better). The way this could get fixed is to exclude this step from running on pull_requests.

@lunny lunny closed this as completed in 5d3177d Jun 5, 2019
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this issue Jul 18, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants