Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Harden flaky nginx content-type smoke test in Docs build (child-repo .md routes)

未关闭
#2,829 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@B4nan 已经在做这个了。

开始于 2026年7月28日。

评估

这个 Issue 还没有评估数据。

描述

t-tooling

What needs to change

The post-build nginx smoke test in .github/workflows/test.yaml (the 🧪 Checking Nginx responses... block) asserts content types with single-shot curls and no retry — assert_header and assert_final_content_type. A single transient response fails the whole Docs build job.

Add a bounded retry with backoff (e.g. 3 attempts ~2s apart) inside those two helpers, so a one-off blip is absorbed while a genuinely broken route still fails every attempt (coverage unchanged).

Why

The check intermittently red-Xes unrelated PRs. On #2827 it failed on:

assert_header ".../sdk/python/docs/changelog.md" "Content-Type" "text/markdown"
❌ got text/html

It's demonstrably nondeterministic: two consecutive builds on that branch — the baseline commit passed this assertion, a README-only commit failed it, and a plain re-run (no code change) went green. Master is not persistently affected. Each occurrence costs a manual re-run and erodes trust in the required checks.

Scope note: retry is the pragmatic fix. The deeper root cause — why a child-repo .md variant occasionally serves text/html before the markdown variant is ready — may deserve separate investigation into the nginx content-negotiation / try_files for child repos.

Source

  • Flaky failure on #2827 (failed run, passed on re-run).
  • Assertion helpers: .github/workflows/test.yaml.
  • Content-negotiation check originally added in #2032.
主要语言
JavaScript
星标
82
派生
240
平均合并
4 天 2 小时
30 天内合并 PR
44

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apify/apify-docs 的其他 Issue

查看 apify/apify-docs 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。