From 7cb80b91bc35af1acc32a1fb99b682290c056c33 Mon Sep 17 00:00:00 2001 From: Edgar Arakelyan Date: Wed, 18 Nov 2026 09:45:10 -0800 Subject: [PATCH] test(computer): the display-only reuse test checks what was reused, not how long the put took The test also bounded ComputerEnv.put at 60 s, which reuses the image but still boots and probes it to mark it ready; on a busy runner that took 85 s (one slow shard on #761). Reuse itself is what its other checks assert: the same image, the same installed packages, reused and not emulated. Co-Authored-By: Claude Opus 5.5 --- tst/integration/computer/computer_env_test.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tst/integration/computer/computer_env_test.py b/tst/integration/computer/computer_env_test.py index 0da7874b3..69de4eea5 100644 --- a/tst/integration/computer/computer_env_test.py +++ b/tst/integration/computer/computer_env_test.py @@ -15,7 +15,6 @@ import json import platform import subprocess -import time import uuid import httpx @@ -101,17 +100,14 @@ async def test_the_image_of_this_machines_arch_boots_as_the_session_user_and_pas def test_an_env_that_changes_only_its_display_and_name_reuses_the_image(desktop): with namespace_routing(): - started = time.monotonic() other = ComputerEnv.put(id=f"{desktop.id}-other", computer=desktop.computer, driver=desktop.driver, environment_name="other", display={"width": 1024, "height": 768}) - took = time.monotonic() - started results = Env.get(other.id).metadata["composed"]["container"] first = desktop.metadata["composed"]["container"] assert results[ARCH]["reused"] is True and results[ARCH]["image"] == first[ARCH]["image"] assert results[ARCH]["status"] == "ready" and results[ARCH]["card"]["name"] == "other" assert results[ARCH]["installed"] == first[ARCH]["installed"] and results[ARCH]["emulated"] is False - assert took < 60, took #: A request to an address on the internet, around the egress proxy, and through it, printing the status and the body