next.js
99e002e3 - [ci] Fix staging Proxy routing for deploy tests (#102225)

Commit
3 hours ago
[ci] Fix staging Proxy routing for deploy tests (#102225) PR #83118 added a Proxy address override so CI could run deploy tests against staging. The override changes where the test runner sends its requests. Deployed functions still reach production when they request their own deployment hostname. For example, `res.revalidate()` updates the production cache while the test runner reads the old staging entry. These failures make the full deploy test matrix unreliable for validating infrastructure changes on staging. This change fixes those failures by routing the test runner and deployed functions through the same staging Proxy. The release workflow selects a region and the harness deploys fixtures to a test project whose deployment hostnames resolve to that region. The standard, adapter, and Turbopack e2e teams each have projects for `iad1`, `dub1`, `sfo1`, and `cle1`. During setup, the harness checks `x-vercel-id` and stops before running tests if the response lacks the selected staging hop. ### Verification NEXT_TEST_STAGING_PROXY_REGION=sfo1 NEXT_ENABLE_ADAPTER=1 \ VERCEL_ADAPTER_TEST_TEAM=vtest314-next-adapter-e2e-tests \ NEXT_TEST_DEPLOY_TARGET_VERCEL=1 NEXT_TEST_VERSION=16.5.0-canary.61 \ pnpm test-deploy-turbo \ test/e2e/revalidate-reason/revalidate-reason.test.ts
Author
Parents
Loading