Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Git commit time-out #1194

ClosedAlxandr(GitHub profile, opens in a new tab) opened this issue 10 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Not sure

Steps to reproduce

  1. Have a slow pre-commit hook (just add a sleep or something)
  2. Create a commit using the UI button

Expected behavior

The commit is created after the hook completes

Actual behavior

I get a timeout error in the UI

Impact

Minor bug or occasional failure

Version or commit

v0.0.11

Environment

Linux (NixOS) using Node

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Ask codex to commit instead. Or do it manually.

  1. Alxandr(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. can you tell more about the bug like add screenshots etc.

  3. Sure. I simply commit and I get this:

    Image

    On a related note, I've also noticed that commits are not signed, even though they should be according to my git config.

  4. The looks a pre-commit hook failure

  5. @Alxandr happening everytime ?

  6. Yep. And the hook does not fail. Or at least it doesn't when I run it. It just takes a while. Typically somewhere in the 30-40 seconds range.

  7. Even codex is commenting on the fact that it's slow 😛

    Image
  8. so, you have to check your pre-commit hook, that might be slow, we have 30 second timeout on the command that runs this.

  9. so, you have to check your pre-commit hook, that might be slow, we have 30 second timeout on the command that runs this.

    Yes. I expected something like this. And that's what this bug-report is about. Disabling the pre-commit hook isn't an option.

  10. Opened #1330 as a minimal stopgap, bumps the commit timeout from 30s to 120s so hooks have time to finish. Happy to close it once #1214 lands with proper progress streaming.

  11. juliusmarminge closed this

Sign in to join this conversation.