install_threat_detect_binary.sh: fixed 10 s retry delay ends the download before a release-host 504 outage clears
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
固定延迟的重试位于 actions/setup/sh/install_threat_detect_binary.sh 第 225 行附近(curl 使用 --retry 5 --retry-delay 10)。阅读同级脚本 actions/setup/sh/install_awf_binary.sh 的第 130-132 行,它已经使用指数退避和 --retry 8,然后比较两者。完成标准是:threat-detect 的下载重试时间足够长,能覆盖持续数分钟的 504 故障。验证方法是让脚本访问一个桩化的 URL,该 URL 在一段时间内返回 504。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Go
- 星标
- 5.6k
- 派生
- 625
- 平均合并
- 5 小时 2 分钟
- 30 天内合并 PR
- 827
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/gh-aw 的其他 Issue
-
automation documentation
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
agentic-workflows automated ci-fix pull-request-fallback
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
Protected session capture: `Parse agent logs for step summary` fails when the engine step never ran未关闭ai-inspected
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
awf community
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Pi on arc-dind: an aliased model reaches pi empty (`Model "aw-gateway/" not found`)可能已有人在做 @pelikhan 于 16 天前认领。 未关闭ai-inspected community
难度 2/5 1-3 小时 新手友好度 83/100
github/gh-aw#72530 · 1 个 reaction · 已指派 2 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Applications at the repository root are not triggered by new commits可能已有人在做 @Daksha1611 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复
-
docker-compose: postgres healthcheck should probe TCP (pg_isready -h localhost)可能已有人在做 @zezo-mohamed22 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
OneBusAway/watchdog#305 · 1 条评论 ·
维护者通常 1 天内回复
-
self-care self-care:agent-discoverability
难度 2/5 1-3 小时 新手友好度 62/100
githubnext/gh-cao#20928 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
SocialGouv/iterion#3287 ·
维护者通常 1 天内回复