-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Push doesn't always occur #705
Comments
Hi @bduff9, It's strange, not sure what's happening. I would try adding a If you see it, it means that I've also just released |
Thanks for the reply. I just tried 4.2.4, but unfortunately, get the same issue with npx not being found:
As far as this issue, I can add the HUSKY_DEBUG to my ZSH session, but what do you mean about adding it to VSCode? Is there a way to add an env var that the Git client will pick up? |
I don't have VSCode installed currently, but I'd expect there would be a way. Alternatively, you could add it to
You would have debug messages after husky reads it.
For this issue, if you're using a Node version manager (like |
I added the location of npx to my path in .huskyrc and this seems to work for me on the latest (4.2.5). I also added the debug so I will report back here as soon as I see this push issue occur again. Thank you |
Ha, actually first push this issue happened again.
So looks like it is exiting but push still did not happen. Here is a successful push that I ran right after it:
|
@typicode Hi, any more thoughts or things I can try on this? Still happening quite frequently with the latest version of Husky (about 1 out of every 2 or 3 times we push). The output is always the same as above. Happy to provide any more details needed to help figure this issue out. Thanks! |
@bduff9 Hi, I was experiencing the same issue till today. But in my case, I was not able to push stuff without |
@MaxPenderuk Thanks so much, I just added the keep alive to my config. I will test it out over the next week and report back. Thanks again! |
Having the same issue here; tried increasing the ssh timeout but no luck. This may be due to the tests taking too long. Is there a way husky can handle such? |
I'm having similar issues. I also tried increasing the timeout with no luck. :/ |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've been facing this issue recently, the timeout config also didn't help. |
Our team is facing this issue randomly as well. |
Also is the case |
Same for me. |
same |
1 similar comment
same |
Before creating an issue, see troubleshoot section in the README and verify that you're using Git
>= 2.13.0
.Please provide your OS, terminal and the following commands output:
OS: Mac 10.15.4
Terminal: ZSH/VS Code Git Client
Git: 2.18.0
We had to roll back to Husky v3 due to the issue about hooks not getting called when using VS Code's Git client (which most of the team is using). However, this issue occurred on that as well as on our current version (3.1.0).
I'm unsure if this is a husky issue or something else, but on pre-push, we execute all of our unit tests with jest, and then if it passes, push up to origin. However, as we continue to build out tests, these take longer and longer and it seems like when the tests take somewhere in the 52-54sec or more range, then the push just never occurs even though the tests all passed. Our pre-commit hook, which is much faster works fine, and if the tests take less than 52secs, it pushes fine as well.
Here is our husky config:
and here is the test:no-watch script:
Anything else I can provide, I would be happy to do so, but the repo is private so cannot share that. The actual output when it works or fails is no different, other than when it works I see the push occur after the tests. Thanks!
The text was updated successfully, but these errors were encountered: