Harden flaky nginx content-type smoke test in Docs build (child-repo .md routes)
Maintainer thường phản hồi trong vòng 1 ngày
@B4nan đang làm issue này rồi.
Từ ngày 28/7/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 82
- Fork
- 240
- Merge trung bình
- 3 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 36
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apify/apify-docs
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
apify/apify-docs#3071 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
apify/apify-docs#3049 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apify/apify-docs#2742 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
apify/apify-docs#2741 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
low priority t-unblocking tech enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
apify/apify-docs#2451 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apify/apify-docs
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
taskcluster/taskcluster#9284 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Xvesa 24bbp incorrect info?Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Spomky-Labs/pwa-bundle#476 ·
-
[feart] 支持 MiMo 类型模型的关闭思考识别Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
speced/respec#5504 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày