test: explain why deploy build-log markers are missing (#100069)
## Summary This makes the deploy harness's failure say *why* the build-ID markers were missing. It is the second of three stacked PRs and builds on the bounded polling in the PR below it. When polling hits its deadline, the error still starts with `Failed to get buildId from logs`, so existing triage keeps matching. It now also includes: - the deployment URL, the attempt count and the elapsed time; - whether the transcript had **no build-log lines at all**, meaning `vercel inspect --logs` printed only its own header and status lines, which suggests the logs weren't available from Vercel. This is the signature of the canary.7 incident. - otherwise, **which** of `BUILD_ID`, `DEPLOYMENT_ID` and `NEXT_SUPPORTS_IMMUTABLE_ASSETS` are missing; - why the last `vercel inspect` call failed, if it timed out, exited non-zero or rejected. The kept transcript is also stored in `cliOutput` for callers that catch `start()`. The "no build-log lines" check is a heuristic that only feeds this message. Successful ID parsing doesn't depend on it. This PR also removes a duplicated word in a comment in `test/e2e/app-dir/segment-cache/search-params/segment-cache-search-params.test.ts`. That change is there so `Test new and changed tests when deployed` runs a deploy-mode suite against this layer of the harness. ## Verification - `pnpm jest test/unit/next-deploy-failure`: 33/33 pass. The new cases cover a header-only transcript, logs with no markers, only `NEXT_SUPPORTS_IMMUTABLE_ASSETS` missing, and a timed-out last call. They fail on the PR below. - prettier, eslint and `pnpm typescript` are clean. <!-- NEXT_JS_LLM --> <!-- fleet b78d4bc5-dee1-4d80-b647-54229882f21f --> --------- Co-authored-by:vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment