-
Notifications
You must be signed in to change notification settings - Fork 115
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
How can I get this to publish from CircleCI? Failure on timeout for publishing crate (appears related to using SSH for git) #218
Comments
That is very odd that it failed after a 5 minute timeout. Maybe try with debug logging on (add a |
Looks like it's failing on that! Any ideas? I have an environment variable of: |
Something I can think of after Googling that error message is we use an ssh key for a machine user to publish to git for a lot of our projects, and maybe that's causing it? |
Just wanted to double check on the original statement in case the error message is misleading us. Overall, I'm unsure what to say about this. |
To clarify, this library seems to push to crates.io successfully, but then sits and times out after it does. This: |
I have an inkling of an idea of what might cause this, the token I'm using for crates.io is for my personal user, and the git creds we are using in CircleCI are for a machine user. Gonna try and create a crates.io account for the machine user and see if using that token changes things? |
Ok even with creating a crates.io account for the machine user, and then giving them ownership of the crate, still no worky. The issue seems to be somewhere in: https://github.com/sunng87/cargo-release/blob/master/src/cargo.rs#L70-L95 Specifically, in calling this: https://docs.rs/crates-index/0.15.0/src/crates_index/lib.rs.html#284-294 I'm a bit lost beyond that, but that's where stuff is dying. |
Ok, some good news: this fails for me locally, as well as on CircleCI (so I doubt it's anything with CircleCI). Stuff I've tried:
Similar to the above try, didn't do anything. I did some digging in the crate repository logs (
So something has changed, and it appears to be trying to use https at this point, prior it was attempting ssh. I'm not sure WHY it is doing that (because I've basically said not to in my global git config, but who even knows). |
In some more logical digging, I don't think that I can use the I sort of imagine the issue is with the: https://github.com/frewsxcv/rust-crates-index library, in either how they call the libgit2 stuff, or something akin. I think this would be easyish to recreate if you use ssh instead of https for working with git. |
I filed an issue on the |
Any update on this? having exactly the same issue, not a deal breaker but a bit annoying |
Random thoughts
|
Hi there!
This crate is really cool, and I'm stoked to get it working in my workflow.
That said, I'm getting an issue when trying to release using CircleCI:
https://app.circleci.com/pipelines/github/sonatype-nexus-community/cargo-pants/19/workflows/3d29f4b9-8907-421c-9a8f-67a70ffb5b70/jobs/20
The publish to crates.io was successful, but it just sat there and timed out eventually.
I tried it a few different ways with CircleCI config to see if that was the issue (I was initially executing the commands in a bash script, moved them explicitly into CircleCI config), and no luck so far. Newest build with an issue is here: https://app.circleci.com/pipelines/github/sonatype-nexus-community/cargo-pants/22/workflows/6426e187-fd20-467f-abaf-97398330f2e1/jobs/28
Appreciate any help here, as I've hit the spot where I'm beating my head against the keyboard.
Let me know if you need any more information from me!
The text was updated successfully, but these errors were encountered: