A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
fix(qa): align renderer evidence and attribution keyboard assertions
Sameh Khamis67504cd87143
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex aa76d97fd..08d2afc3c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,6 +13,17 @@ of current runtime behavior, see [`docs/CURRENT-STATE.md`](docs/CURRENT-STATE.md## [Unreleased]+### Fixed++- Complete the first-run, view-target prewarm, cockpit-plates and floor-hold+ browser harness renderer portability fixes contributed by Tom-Neverwinter.+ macOS retains Metal; other platforms default to SwiftShader. Cockpit renderer+ assertions and evidence labels follow the actual selected mode. Floor-hold+ keeps its mesh and terrain assertions; software runs are not real-GPU evidence.+ First-run QA now checks the existing attribution Escape-close/focus-return+ behavior while preserving the launcher-underneath regression checks.++- Datacenter and dam factories are available through scoped package exports withexplicit context, overlay and render callbacks. The standalone app uses thesame implementation and bundled datasets.diff --git a/TESTING.md b/TESTING.mdindex d812ea693..95eddb50c 100644--- a/TESTING.md+++ b/TESTING.md@@ -218,3 +218,14 @@ While recording, call out anything in these areas — this is the feedback I mos- **No planes:** OpenSky data may be momentarily sparse; scroll out or wait a poll cycle.- **No GEV MIC button / voice errors:** `OPENAI_API_KEY` didn't load — use the console API forthe annotation tests and skip the voice-only ones (§2).+++## Browser harness renderers++The first-run, view-target prewarm, cockpit-plates and floor-hold harnesses+select Metal on macOS and SwiftShader on other platforms. Cockpit-plates also+accepts `--swiftshader` on macOS; floor-hold retains `--angle=<backend>`.+Software runs validate their assertions but do not establish real-GPU visual+correctness. Floor-hold retains both mesh and DEM checks: an unavailable mesh+oracle fails the run even when the DEM check passes. Record the backend with+any screenshots and run GPU visual checks separately when needed.diff --git a/scripts/qa-cockpit-plates.mjs b/scripts/qa-cockpit-plates.mjsindex b5481cfe5..bc42ab821 100644--- a/scripts/qa-cockpit-plates.mjs+++ b/scripts/qa-cockpit-plates.mjs@@ -46,7 +46,7 @@* node scripts/qa-cockpit-plates.mjs --url http://localhost:4268 --tag before* node scripts/qa-cockpit-plates.mjs --url http://localhost:4268 --teeth*- * Defaults to the real GPU (ANGLE/Metal). `--swiftshader` selects software GL,+ * Defaults to ANGLE/Metal on macOS and software GL elsewhere. `--swiftshader` selects software GL,* which is deterministic but is NOT real-GPU evidence; the banner says which* backend actually ran and the run records it alongside the results.*/@@ -64,7 +64,7 @@ const APP_ORIGIN = new URL(APP_URL).origin;const TAG = getOpt('--tag', 'after');const HEADFUL = argv.includes('--headful');const TEETH = argv.includes('--teeth');-const SWIFTSHADER = argv.includes('--swiftshader');+const SWIFTSHADER = argv.includes('--swiftshader') || process.platform !== 'darwin';const SHOT_DIR = path.resolve('qa-shots/cockpitplates');/** Mirrors `SKY_PLATE_SCALE` in src/overlays/worldOverlayTokens.js. */@@ -224,7 +224,7 @@ async function main() {'--disable-setuid-sandbox',// Metal is a macOS-only ANGLE backend; off-Mac the GPU branch has to fall// back to the software rasterizer or WebGL init fails outright.- ...(SWIFTSHADER || process.platform !== 'darwin'+ ...(SWIFTSHADER? ['--use-gl=angle', '--use-angle=swiftshader']: ['--use-angle=metal', '--enable-gpu', '--ignore-gpu-blocklist']),'--disable-dev-shm-usage',@@ -294,7 +294,7 @@ async function main() {console.log(` GL : ${renderer}\n`);record(SWIFTSHADER- ? 'running on software GL as requested (structural checks, not GPU evidence)'+ ? 'running on software GL (structural checks, not GPU evidence)': 'running on the real GPU, so the screenshots are real-GPU evidence',SWIFTSHADER ? softwareRenderer : !softwareRenderer,renderer,diff --git a/scripts/qa-firstrun.mjs b/scripts/qa-firstrun.mjsindex 70a7106d0..24d82bd2b 100644--- a/scripts/qa-firstrun.mjs+++ b/scripts/qa-firstrun.mjs@@ -332,14 +332,17 @@ async function runArbitrationSection(page, { shots, consoleErrors }) {`session=${escUnderLightbox.session}`,);record(- 'the lightbox keeps its OWN ESC semantics (Cesium binds none, so it stays)',- lightboxAfterEsc.shown,+ 'ESC closes attribution without dismissing the launcher underneath',+ !lightboxAfterEsc.shown,`overlay shown=${lightboxAfterEsc.shown}`,);- // The guard disarms the launcher; it must never break it. Close the overlay- // the way a visitor does and the key comes straight back.- await page.evaluate(() => document.querySelector('.cesium-credit-lightbox-close')?.click());+ // The attribution keyboard handler closes the overlay and restores focus.+ // A second Escape belongs to the now-uncovered launcher.+ const attributionFocusRestored = await page.evaluate(() => (+ document.activeElement === document.querySelector('#cesium-credits .cesium-credit-expand-link')+ ));+ record('closing attribution restores its disclosure focus', attributionFocusRestored);await sleep(300);const uncovered = await launcherState();record('closing the lightbox hands the card back the key',diff --git a/scripts/qa-floor-hold.mjs b/scripts/qa-floor-hold.mjsindex 798a3e560..00eac1807 100644--- a/scripts/qa-floor-hold.mjs+++ b/scripts/qa-floor-hold.mjs@@ -15,7 +15,7 @@* The contact must stay ON the mesh through phase B. Without the hold it falls* to the geoid, which at an inland field is ~150 m of burial.*- * node scripts/qa-floor-hold.mjs # real GPU (ANGLE/Metal)+ * node scripts/qa-floor-hold.mjs # Metal on macOS, SwiftShader elsewhere* node scripts/qa-floor-hold.mjs --headful # watch it* QA_BASE_URL=http://localhost:4257 node scripts/qa-floor-hold.mjs*@@ -25,10 +25,11 @@* under Metal — a backend comparison at one point, not to be confused with the* same-backend run-to-run spread (122.1 m vs 20.6 m on a cell centre) that* retired the hold chain's unvalidated tier. The- * default is the real GPU. Under `--angle=swiftshader` the rendered-mesh oracle- * is reported as unavailable rather than trusted, and the run falls back to the- * bare-earth DEM (fetched server-side, so the simulated outage cannot reach- * it) — a weaker but still decisive check, since the geoid sits ~150 m below it.+ * default is Metal on macOS and SwiftShader elsewhere; `--angle` overrides it.+ * Mesh samples describe the selected backend, not another GPU's rendered LOD.+ * An unavailable rendered-mesh oracle remains a failed check, even if the+ * separate bare-earth DEM check passes. Software evidence does not establish+ * real-GPU visual correctness.*/import puppeteer from 'puppeteer';import fs from 'node:fs';