test: enable compatible body-size cases in deploy (#98911)
## Summary Based on #99392. Stack: #99012 → #98994 → #99392 → #98911. This PR now contains its own `skipDeployment` → `@force-gate` conversions and removal of `skipped` returns, with no dependency on Josh’s migration PRs. Enable only the two body-size tests confirmed passing in both deployment CI variants: a 4 MiB request with a 5 MiB Next.js buffer and a 1 MiB request with a 2 MiB buffer. Keep the other seven tests gated and replace the migration TODOs with verified reasons: - The test deployment enforces the documented 4.5 MB Vercel payload limit. Requests of 5, 6, 10, 11, 20, and 51 MiB receive HTTP 413, independently of the Next.js buffering setting. - The 3 MiB request is accepted, but Vercel forwards the entire body instead of applying Next.js's local 2 MiB truncation. The 5 MiB and 2 MiB suite gates are narrowed to their failing over-limit tests. All test bodies and assertions are unchanged. The redundant dev-only image exclusion is handled separately in #98908. ## Verification - Restacked above #99392; `git range-diff` confirms the body-size patch is unchanged. - Prettier and ESLint passed. - Verified test bodies and assertions are unchanged after removing the legacy deployment skips; all four force-gates attach. A collection-only check with fixture setup stubbed confirms two tests enabled and seven gated in deploy, and all nine enabled locally. - Prior reproduction on canary: https://github.com/vercel/next.js/actions/runs/35401223346/job/105783820893 and https://github.com/vercel/next.js/actions/runs/35401223346/job/105783820915 (2 passed, 7 failed in each). - Direct HTTP reproduction returned Vercel's FUNCTION_PAYLOAD_TOO_LARGE for 5 MiB with a configured 50 MiB Next.js buffer; 4 MiB succeeded. - Full suite execution remains blocked by the local installation’s missing `node-fetch`; bootstrap/watch builds stalled during the first-layer validation. CI must validate execution on the new stack. <!-- NEXT_JS_LLM -->
Showing
Please
register
or
sign in
to comment