[test] Fix 15.5.x deploy tests (#97977)
This addresses the deploy test failures from the v15.5.24 deploy run attempts (https://github.com/vercel/next.js/actions/runs/32871018966). This PR only updates assertions. Backporting the relevant fixes is out of scope. Assertion fixes: - `no-server-actions`: backports the #87279 portion for the MPA test. The multipart POST was sent without a boundary parameter, which Vercel answers with a 405 before the request reaches the Next.js server; with `boundary=test` the deployed app returns the expected 404 with the `x-nextjs-action-not-found` header. - `actions-unrecognized`: the JS-disabled form submission with an unrecognized action id used to log a 500 on the server while Vercel returned a 405 to the client; current 15.5.x deployments return the 500 itself. The deploy branch now asserts the 500 with an updated FIXME. Canary fixed the underlying runtime 500 in c2a10f111d by responding 404 - `metadata`: prerendered metadata routes are served on Vercel as static files with the platform default `max-age=0, must-revalidate` instead of the immutable cache header from the prerender manifest. The icons test expects that in deploy mode, with a FIXME noting the expectations unify once #83215 is backported. - `middleware-general`: the nodejs middleware function bundle does not include the project package.json when deployed, so `/test-node-fs` fails with ENOENT (`open /var/task/package.json`, confirmed in function logs). The test asserts the 500 in deploy mode behind a FIXME. Deploy skips, each due to deploy-mode flakiness or unsupported infra: - The whole `test/e2e/app-dir/segment-cache/` directory: timeouts and `act()` prefetch-response mismatches move between suites from run to run against the identical published package. The suite is testing an experimental feature so coverage on an LTS release is less relevant. - `sub-shell-generation`: applies canary's own gate from #91353 - `app-static` force-static revalidation: already carries a TODO about a suspected ISR bug; now also skipped in deploy mode, referencing that TODO. `server-actions-redirect-middleware-rewrite` is a legit bug caused by https://github.com/vercel/next.js/pull/96011. `app-custom-routes` is broken due to bot challenges. Filed a ticket that hopefully resolves that issue: https://vercel.slack.com/archives/C02K2HCH5V4/p1788175011380479
Showing
Please
register
or
sign in
to comment