From 8287f0c087789ce29971ad53de5da2f894db160c Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Tue, 29 Sep 2026 08:29:03 +0000 Subject: [PATCH] smoke:legend-info measures again, and says so when it cannot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since a9550858e the gate called _fileURLToPath, which it never imported (only fileURLToPath is), so it died with a ReferenceError at load and measured nothing — the UPG-100 legend's info popovers in es/ar/zh included. And with no leaf URL it exited 0 as SKIP, which the wave runner reads as a pass; it now exits 75 (NOT MEASURED), the convention the file itself states. Swept every gate for the same undefined path aliases: none. --- internal/check-legend-info-localized.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/check-legend-info-localized.mjs b/internal/check-legend-info-localized.mjs index a729090c9..e7762bec0 100644 --- a/internal/check-legend-info-localized.mjs +++ b/internal/check-legend-info-localized.mjs @@ -39,7 +39,7 @@ const REPO = join(dirname(fileURLToPath(import.meta.url)), '..') const LOCALES = join(REPO, 'library/i18n/locales') const URL_ = process.argv[2] || process.env.LEGEND_URL -const ROOT = _resolvePath(_dirnamePath(_fileURLToPath(import.meta.url)), '..') +const ROOT = _resolvePath(_dirnamePath(fileURLToPath(import.meta.url)), '..') // ★ MEASURE THIS BUILD, OR MEASURE NOTHING. Several worktrees run on one machine and a default port // belongs to whichever server started first — measured 2026-09-24 on :4173, where browser gates @@ -48,11 +48,12 @@ const ROOT = _resolvePath(_dirnamePath(_fileURLToPath(import.meta.url)), '..') // A file:// target passes straight through — there is no server there to be wrong about. await requireThisTree(URL_, ROOT, 'LEGEND-INFO-LOCALIZED') if (!URL_) { - console.log('LEGEND-INFO-LOCALIZED: SKIP — no leaf url given.') + // 75, not 0: nothing was measured, and a 0 here reads as ✓ to the wave runner (the rule stated above). + console.log('LEGEND-INFO-LOCALIZED: NOT MEASURED (exit 75) — no leaf url given.') console.log(` Pass one, or set LEGEND_URL. Serve the TREE ROOT (public/${TREE_NAME}) and point`) console.log(' at a profile whose legend carries per-tab info buttons, e.g.') console.log(' my-upg-100-list/upg-100-list/index.html') - process.exit(0) + process.exit(75) } const UNDER_TEST = (process.argv[3] || 'es,ar,zh').split(',').map((s) => s.trim()).filter(Boolean)