mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 15:52:21 +00:00
Delete dead render code and consolidate QA helpers
Remove code that nothing in the app, the runners or CI uses: - the one-off migration compare, look and bench scripts and the vector ground prototype they measured, with the bench tables in the docs; - the unused Navara-named shared render modules (polygons, ground picks, mover bank, ground ring); - the Cesium-shaped aircraft and vessel test renderers, and the trail, engineFromViewer and horizon-occluder helpers only they kept alive. Their tests now run on the production displays over the fake engine; - Navara's unread diagnostics, fallback ports, dead exports and parameters, stale effect-chain anchors and the unread capability flags. The QA scripts share one keyless guard and readiness wait, the session harness reuses the strict harness's browser flags and block list, and the harness honours QA_ANGLE and QA_RESERVED_PORTS. The bikeshare fixture keeps only what its scenario reads. The docs name the engine picker where it is (VISUAL PRESETS) and drop dated run results. No behaviour changes on either engine. Navara layer renderer lines fall from 189 to 0 and viewer lines from 891 to 849.
This commit is contained in:
1 parent
18f69c2699
commit
371d848eec
130 files changed
+633
-4542
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { localPreview, waitForEngine } from './qa-strict-harness.mjs';
|
||||
// An active voice session survives engine switches. With a fake microphone
|
||||
// and a fake Realtime transport (no model is reached: /api/openai, /api/realtime
|
||||
// and api.openai.com are blocked or answered in the page), this gate starts
|
||||
@@ -17,16 +18,14 @@ import {
|
||||
idDifference,
|
||||
launch,
|
||||
openSessionPage,
|
||||
previewBase,
|
||||
readSession,
|
||||
readVoiceEvidence,
|
||||
requestEngine,
|
||||
sessionAddress,
|
||||
switchEngine,
|
||||
waitReady,
|
||||
} from './qa/appSessionHarness.mjs';
|
||||
|
||||
const base = previewBase(process.argv[2]);
|
||||
const base = localPreview(process.argv[2]);
|
||||
|
||||
// Play one server function call on the fake data channel and wait for the
|
||||
// client's function_call_output.
|
||||
@@ -117,7 +116,7 @@ try {
|
||||
browser,
|
||||
sessionAddress(base, { engine: 'cesium' }),
|
||||
);
|
||||
await waitReady(page, 'cesium');
|
||||
await waitForEngine(page, 'cesium', { timeout: 90_000 });
|
||||
await page.evaluate(async () => {
|
||||
const close = document.querySelector('[data-key-setup-close]');
|
||||
if (close?.offsetParent) close.click();
|
||||
@@ -184,7 +183,7 @@ try {
|
||||
{ layerId: 'earthquakes', enabled: true },
|
||||
{ beforeCall: 'switch-cesium' },
|
||||
);
|
||||
await waitReady(page, 'cesium');
|
||||
await waitForEngine(page, 'cesium', { timeout: 90_000 });
|
||||
assert.equal(midSwitch.ok, true, JSON.stringify(midSwitch));
|
||||
assert.equal(midSwitch.engine, 'cesium', JSON.stringify(midSwitch));
|
||||
results.push('PASS a call made during the switch ran on the incoming engine');
|
||||
@@ -204,7 +203,7 @@ try {
|
||||
{ layerId: 'earthquakes', enabled: false },
|
||||
{ beforeCall: 'switch-navara' },
|
||||
);
|
||||
await waitReady(page, 'navara');
|
||||
await waitForEngine(page, 'navara', { timeout: 90_000 });
|
||||
await page.evaluate(() => {
|
||||
window.__godsEyeView.voiceCommands.runner.switchWaitMs = 15_000;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user