install_threat_detect_binary.sh: fixed 10 s retry delay ends the download before a release-host 504 outage clears

Abierto Apto para principiantes
#77,623 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
74/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, shell
Área
ci-cd

Línea de trabajo

El reintento con retardo fijo está en actions/setup/sh/install_threat_detect_binary.sh alrededor de la línea 225 (curl con --retry 5 --retry-delay 10). Lee el script hermano actions/setup/sh/install_awf_binary.sh en las líneas 130-132, que ya usa backoff exponencial con --retry 8, y compara ambos. Está terminado cuando la descarga de threat-detect sigue reintentando durante el tiempo suficiente para cubrir una caída de 504 de varios minutos. Se verifica ejecutando el script contra una URL simulada que devuelve 504 durante un rato.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

ai-inspected

The threat-detect installer stops after about 50 seconds of HTTP 504 from the GitHub release download host, so the detection job ends with detector_execution_failure. The evidence is from gh-aw v1.0.1 and v1.2.2, and the code is the same at main.

A scheduled workflow compiled with gh-aw v1.0.1 ended with detector_execution_failure on two days, 2026-11-08 and 2026-11-09. In both runs, the detection job did not run the detector.

The detection job log of the 2026-11-09 run shows the install step Install threat-detect binary (threat-detect v0.5.3):

07:38:44.6188063Z Downloading binary from "https://github.com/github/gh-aw-threat-detection/releases/download/v0.5.3/threat-detect-linux-amd64"...
07:38:52.3611133Z curl: (22) The requested URL returned error: 504
07:39:02.4143103Z curl: (22) The requested URL returned error: 504
07:39:12.4670635Z curl: (22) The requested URL returned error: 504
07:39:22.5203890Z curl: (22) The requested URL returned error: 504
07:39:32.5723943Z curl: (22) The requested URL returned error: 504
07:39:42.6244559Z curl: (22) The requested URL returned error: 504
07:39:42.6306004Z ##[error]Process completed with exit code 22.

The 2026-11-08 run shows the same 6 attempts from 09:41:05 to 09:41:55.

The installer downloads the binary with --retry 5 --retry-delay 10, in install_threat_detect_binary.sh#L225. A fixed delay gives 6 attempts in about 50 seconds. The --retry-max-time 180 value does not extend that window, because the retry count ends first.

In the same detection job, the AWF installer got 504 from the same host from 07:33:56 and completed its download at 07:38:33. That installer uses exponential backoff with --retry 8, in install_awf_binary.sh#L130-L132. The comment at line 130 says that exponential backoff spans longer gateway outages than six fixed-delay attempts.

Lenguaje dominante
Go
Estrellas
5.6k
Forks
625
Merge medio
5 h 2 min
PR fusionados (30 d)
827

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/gh-aw

Todos los issues de github/gh-aw

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.