Unverified Commit 0f154e2a authored by Jamiboy Mohammad's avatar Jamiboy Mohammad Committed by GitHub

test: enable Relay multi-project deployment coverage (#99403)

## Summary

Re-enable deployment coverage for both `relay-graphql-swc-multi-project`
projects. Corepack selects the declared pnpm version, and each setup
copies a Vercel configuration pointing to its own output directory
(`project-a/.next` or `project-b/.next`). Earlier deploy CI for #99192
installed and built both projects, then failed because the harness's
post-build script looked for `.next/BUILD_ID` at the fixture root.

Remove both blanket `skipDeployment` exclusions together so both
page-rendering tests can execute. The two existing compiler-validation
checks remain skipped in deploy mode because they run a local executable
against the fixture's installation. Dependency versions, build commands,
and page assertions are unchanged.

## Verification

- All four tests passed locally in production Turbopack mode, both
normally and with `__NEXT_CACHE_COMPONENTS=true` and
`__NEXT_EXPERIMENTAL_CACHED_NAVIGATIONS=true`.
- Checked each generated fixture's copied `vercel.json` against its
actual build output: both configured `BUILD_ID` paths are readable,
while the root `.next/BUILD_ID` is absent.
- Neither setup retains `skipDeployment`. Both normal and
cache-components deployment manifests select the suite without excluding
cases; actual deployment and page assertions await CI on the updated
head.
- The repository TypeScript check reports existing shared-`node_modules`
build mismatches, with no errors in the changed test.

<!-- NEXT_JS_LLM -->
parent f19ae744
import { import {
FileRef,
nextTestSetup, nextTestSetup,
isNextDev, isNextDev,
isNextDeploy, isNextDeploy,
type NextInstance, type NextInstance,
} from 'e2e-utils' } from 'e2e-utils'
import execa from 'execa' import execa from 'execa'
import { join } from 'path'
import { shouldUseTurbopack } from 'next-test-utils' import { shouldUseTurbopack } from 'next-test-utils'
function relayCompilerValidate(next: NextInstance) { function relayCompilerValidate(next: NextInstance) {
...@@ -24,6 +26,10 @@ describe('Relay Compiler Transform - Multi Project Config', () => { ...@@ -24,6 +26,10 @@ describe('Relay Compiler Transform - Multi Project Config', () => {
describe('project-a', () => { describe('project-a', () => {
const { next } = nextTestSetup({ const { next } = nextTestSetup({
files: __dirname, files: __dirname,
overrideFiles: {
'vercel.json': new FileRef(join(__dirname, 'vercel-project-a.json')),
},
env: { ENABLE_EXPERIMENTAL_COREPACK: '1' },
dependencies: { dependencies: {
'relay-compiler': '21.0.1', 'relay-compiler': '21.0.1',
'relay-runtime': '21.0.1', 'relay-runtime': '21.0.1',
...@@ -64,6 +70,10 @@ describe('Relay Compiler Transform - Multi Project Config', () => { ...@@ -64,6 +70,10 @@ describe('Relay Compiler Transform - Multi Project Config', () => {
describe('project-b', () => { describe('project-b', () => {
const { next } = nextTestSetup({ const { next } = nextTestSetup({
files: __dirname, files: __dirname,
overrideFiles: {
'vercel.json': new FileRef(join(__dirname, 'vercel-project-b.json')),
},
env: { ENABLE_EXPERIMENTAL_COREPACK: '1' },
dependencies: { dependencies: {
'relay-compiler': '21.0.1', 'relay-compiler': '21.0.1',
'relay-runtime': '21.0.1', 'relay-runtime': '21.0.1',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment