From 94627ba20eba50c01189a6c27e0b8536ea97c5d3 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Wed, 6 May 2026 15:09:37 +0200 Subject: [PATCH] chore: add diagnostic logs to smoke test and bump to rc.14 --- package.json | 2 +- scripts/smoke.ts | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f551f62b..a017fd92 100644 --- a/package.json +++ b/package.json @@ -113,7 +113,7 @@ "prepare": "husky", "preinstall": "npx only-allow pnpm" }, - "version": "2.3.22-rc.13", + "version": "2.3.22-rc.14", "pnpm": { "onlyBuiltDependencies": [ "@parcel/watcher", diff --git a/scripts/smoke.ts b/scripts/smoke.ts index d078dbaa..7adac155 100644 --- a/scripts/smoke.ts +++ b/scripts/smoke.ts @@ -44,7 +44,19 @@ async function run() { urls.map(async (url) => { try { const res = await fetch(url, { method: 'HEAD' }); - if (res.status >= 400) broken.push(`${url} (Status: ${res.status})`); + if (res.status >= 400) { + // Diagnostic: check if the raw source is available + const rawUrlMatch = url.match(/[?&]url=([^&]+)/); + if (rawUrlMatch) { + const rawPath = decodeURIComponent(rawUrlMatch[1]); + const baseUrl = new URL(url).origin; + const rawUrl = `${baseUrl}${rawPath}`; + const rawRes = await fetch(rawUrl, { method: 'HEAD' }); + broken.push(`${url} (Status: ${res.status}, Raw Status: ${rawRes.status})`); + } else { + broken.push(`${url} (Status: ${res.status})`); + } + } } catch (e) { broken.push(`${url} (Fetch failed)`); }