Skip to content

fix(ci): rewrite nginx backend on the included config, not the wrapper#2496

Merged
B4nan merged 1 commit intomasterfrom
fix/ci-nginx-backend-rewrite
May 5, 2026
Merged

fix(ci): rewrite nginx backend on the included config, not the wrapper#2496
B4nan merged 1 commit intomasterfrom
fix/ci-nginx-backend-rewrite

Conversation

@webrdaniel
Copy link
Copy Markdown
Contributor

@webrdaniel webrdaniel commented May 5, 2026

Summary

  • The sed substitution in the Start Nginx with project config step ran against default.conf, which only contains the wrapper (worker_processes, events, http { include nginx.conf; }) — not the https://apify.github.io/apify-docs upstream URL, which lives in nginx.conf. So the rewrite was a no-op and the header-assertions step silently proxied to live prod instead of the PR's local Docusaurus serve at port 3000.
  • This masked regressions in the PR-under-test (the test could pass purely because prod happened to serve the right content) and caused spurious failures when the PR introduced changes that prod hadn't yet picked up — see docs: omit .md pages from llms.txt without removing them completely #2480, where assert_header ".../sdk.md" "Content-Type" "text/markdown" failed because prod hadn't been redeployed yet.

Test plan

  • CI Test / Docs build job passes
  • Run header assertions step actually exercises the local build (e.g. break a .md route in a follow-up draft and confirm the test now fails)

🤖 Generated with Claude Code

The sed substitution was running against default.conf, which only contains
the wrapper (worker_processes, events, http { include nginx.conf; }) and
does not contain the apify.github.io/apify-docs string — so the rewrite was
a no-op and the test step silently proxied to live prod instead of the PR's
local Docusaurus serve. Copy nginx.conf to nginx-test.conf and sed that
file, where the upstream URL actually lives.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added this to the 140th sprint - Web team milestone May 5, 2026
@github-actions github-actions Bot added the t-web Issues with this label are in the ownership of the web team. label May 5, 2026
@webrdaniel webrdaniel added the adhoc Ad-hoc unplanned task added during the sprint. label May 5, 2026
@webrdaniel webrdaniel requested review from B4nan and vdusek May 5, 2026 07:13
@vdusek vdusek requested review from markubra and removed request for vdusek May 5, 2026 07:35
@B4nan B4nan merged commit 2bccf34 into master May 5, 2026
16 of 17 checks passed
@B4nan B4nan deleted the fix/ci-nginx-backend-rewrite branch May 5, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-web Issues with this label are in the ownership of the web team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants