Skip to content

Conversation

@dmaizel
Copy link
Contributor

@dmaizel dmaizel commented Nov 9, 2025

What

Add timeout configuration to all git operations to automatically kill hanging git processes and prevent "cannot fork()" errors caused by process limit exhaustion.

  • Create reusable createGitInstance() helper function that wraps simpleGit() with timeout configuration (5 minutes)
  • Replace all direct simpleGit() calls with createGitInstance() to ensure timeout is always applied
  • Prevents child processes (like git-remote-https) from accumulating when operations hang or take too long

This addresses the issue where app-proxy reaches the process limit (9222/9222) after running for extended periods, causing all git operations to fail with "Resource temporarily unavailable" errors.

Why

Notes

@dmaizel dmaizel requested a review from a team as a code owner November 9, 2025 10:25
@dmaizel dmaizel force-pushed the fix/app-proxy-git-failure branch from 295ca53 to 8945f33 Compare November 9, 2025 11:06
@dmaizel
Copy link
Contributor Author

dmaizel commented Nov 9, 2025

/e2e

@dmaizel dmaizel merged commit d7a2a04 into main Nov 9, 2025
5 checks passed
@dmaizel dmaizel deleted the fix/app-proxy-git-failure branch November 9, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants