From 99bf32fc5d90fc67d9eb120fdd0529cb37b83b9c Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Thu, 19 Nov 2026 09:40:22 -0600 Subject: [PATCH] Keep CI fixtures isolated and browser capture fast --- openpilot/starpilot/connect/test_consumers.py | 3 ++- openpilot/starpilot/galaxy/tests/test_device_settings.py | 2 +- openpilot/starpilot/galaxy/tests/test_flm_ux_browser.mjs | 3 ++- prebuilt.json | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/openpilot/starpilot/connect/test_consumers.py b/openpilot/starpilot/connect/test_consumers.py index dd552c1362..05c5188b0a 100644 --- a/openpilot/starpilot/connect/test_consumers.py +++ b/openpilot/starpilot/connect/test_consumers.py @@ -29,8 +29,9 @@ class TestCloudConsumers(unittest.TestCase): provider.mark_recording(self.konik,'konik') def test_actual_uploader_and_athena_listing_keep_legacy_comma_out(self): - with patch.object(uploader, 'Api', return_value=SimpleNamespace()): + with patch.object(uploader, 'Api', return_value=SimpleNamespace()), patch.object(uploader.os, 'nice') as nice: instance = uploader.Uploader('0'*16, str(self.root)) + nice.assert_called_once_with(10) with patch.object(uploader,'getxattr',return_value=None): files = list(instance.list_upload_files(False)) self.assertTrue(files) diff --git a/openpilot/starpilot/galaxy/tests/test_device_settings.py b/openpilot/starpilot/galaxy/tests/test_device_settings.py index ebd96f2f07..298c570048 100644 --- a/openpilot/starpilot/galaxy/tests/test_device_settings.py +++ b/openpilot/starpilot/galaxy/tests/test_device_settings.py @@ -98,7 +98,7 @@ class DeviceSettingsTest(unittest.TestCase): self.assertEqual([row.key for row in owner.snapshot("resets").rows], [DRIVER_MONITORING_RESET, CALIBRATION_RESET]) service.call.assert_not_called() self.assertEqual(owner.snapshot("starport_options").rows, ()) - self.assertNotIn("developer", PAGES) + self.assertIn("developer", PAGES) def test_always_hold_default_registry_exact_save_and_parked_authority(self): from openpilot.common.params import Params, ParamKeyType diff --git a/openpilot/starpilot/galaxy/tests/test_flm_ux_browser.mjs b/openpilot/starpilot/galaxy/tests/test_flm_ux_browser.mjs index 4e1a042f52..00f91545ed 100644 --- a/openpilot/starpilot/galaxy/tests/test_flm_ux_browser.mjs +++ b/openpilot/starpilot/galaxy/tests/test_flm_ux_browser.mjs @@ -266,7 +266,8 @@ async function layout(label) { } async function show(selector) { await execute('document.querySelector(arguments[0]).scrollIntoView({block:"center",behavior:"instant"})', selector) } async function capture(name) { - const base64 = await command(`/session/${session}/screenshot`, {}, 'GET') + const { data: base64 } = await command(`/session/${session}/goog/cdp/execute`, { cmd: 'Page.captureScreenshot', + params: { format: 'png', captureBeyondViewport: false, optimizeForSpeed: true } }) screenshots.push({ name, png_base64: base64 }) } let failure = null diff --git a/prebuilt.json b/prebuilt.json index afcc553f31..6c88bc50e6 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "3fd3cc89678a848b819244974fe3f0bd7599e8f8eefab96bf8c6a02ec335af07", "schema_version": 1} +{"protected_inventory_sha256": "1ddaed4a995e2e0c18f88ad277ce0c1f7ee33d987939ff69c1dbc6cf4983cd4d", "schema_version": 1}