This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new 4774ec2  Raise smart mirror Git backend timeout (#439)
4774ec2 is described below

commit 4774ec2265a86a7ca8414cb37407ffe10e50c133
Author: Brian Neradt <[email protected]>
AuthorDate: Wed Jun 10 19:05:52 2026 -0500

    Raise smart mirror Git backend timeout (#439)
    
    CI fanout can ask the smart HTTP mirror to generate many large Git packs at
    once. The default httpd CGI timeout is 60 seconds, which can kill a
    queued git-upload-pack before it writes response bytes and surface to
    Jenkins as an HTTP 502 checkout failure.
    
    This gives git-http-backend a longer timeout budget in the smart mirror
    container. The troubleshooting notes also call out the 60-second 502
    signature so operators know to rebuild and restart the image during
    rollout.
---
 github-mirror/README.md         | 11 +++++++++++
 github-mirror/httpd/mirror.conf |  5 +++++
 2 files changed, 16 insertions(+)

diff --git a/github-mirror/README.md b/github-mirror/README.md
index bb3b7e9..279a924 100644
--- a/github-mirror/README.md
+++ b/github-mirror/README.md
@@ -669,6 +669,17 @@ Jenkins fetches look like dumb HTTP:
   sudo tail -n 100 /var/log/github-mirror-smart-http/access_log
   ```
 
+Jenkins fetches fail with HTTP 502 after about 60 seconds:
+
+- Rebuild and restart the current smart HTTP image. The supported config gives
+  `git-upload-pack` more time to generate large packs during CI fanout.
+
+  ```bash
+  cd /opt/trafficserver-ci/github-mirror/httpd
+  sudo docker-compose build
+  sudo systemctl restart github-mirror-smart-http.service
+  ```
+
 Docker hosts cannot reach the mirror:
 
 ```bash
diff --git a/github-mirror/httpd/mirror.conf b/github-mirror/httpd/mirror.conf
index 4849158..8ce1eb4 100644
--- a/github-mirror/httpd/mirror.conf
+++ b/github-mirror/httpd/mirror.conf
@@ -11,6 +11,11 @@
 SetEnv GIT_PROJECT_ROOT /usr/local/apache2/mirror
 SetEnv GIT_HTTP_EXPORT_ALL 1
 
+# During CI fanout, git-upload-pack can spend more than httpd's default
+# 60 seconds generating a large pack before it writes the first response bytes.
+Timeout 600
+CGIDScriptTimeout 600
+
 CustomLog "logs/access_log" combined
 
 ScriptAlias /mirror/ /usr/lib/git-core/git-http-backend/

Reply via email to