Merge pull request #32 from ludovic111/shader-timeout-diagnostics
Retain shader failures and graphics timeout diagnostics
This commit is contained in:
@@ -0,0 +1,342 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"measurement": "Shader world activation/startup probes; not FPS or physical M2 measurements",
|
||||
"release": "0.20.0",
|
||||
"original_mod_sha256": "e651ef49bc97486e8dacfd4b640465c442525cd645e2dba71ddea9fb64347dd8",
|
||||
"local_source_commit": "99d6aae5e06a3fc9a9a69c433f48f32729776861",
|
||||
"linux_opengl": {
|
||||
"schema": 1,
|
||||
"platform": "Linux-7.0.0-31-generic-x86_64-with-glibc2.43",
|
||||
"architecture": "x86_64",
|
||||
"minecraft": "26.3",
|
||||
"original_mod_sha256": "e651ef49bc97486e8dacfd4b640465c442525cd645e2dba71ddea9fb64347dd8",
|
||||
"results": [
|
||||
{
|
||||
"observed_mode": "world",
|
||||
"title_screen_observed": false,
|
||||
"world_loaded": true,
|
||||
"ready_client_ticks": 40,
|
||||
"window_active": true,
|
||||
"overlay_present": false,
|
||||
"overlay_wait_ticks": 79,
|
||||
"heap_max_bytes": 6442450944,
|
||||
"iris_capture_status": "available",
|
||||
"iris_shaders_enabled": true,
|
||||
"shader_required": true,
|
||||
"iris_expected_pack_matches": true,
|
||||
"framebuffer_width": 1280,
|
||||
"framebuffer_height": 800,
|
||||
"sampled_pixels": 4288,
|
||||
"distinct_sampled_rgb": 3777,
|
||||
"gpu": "llvmpipe (LLVM 21.1.8, 256 bits)",
|
||||
"graphics_backend": "OpenGL",
|
||||
"graphics_driver": "4.5 (Core Profile) Mesa 26.0.8-1ubuntu0.3",
|
||||
"private_png_sha256": "1a221bb9bedb21770f08ffcde593539c02d4e7cad48516bf7fad4215d7b14cde",
|
||||
"profile": "cinematic",
|
||||
"preferred_backend": "opengl",
|
||||
"launcher_exit_code": 0,
|
||||
"backend_attempts": [
|
||||
{
|
||||
"backend": "OpenGL",
|
||||
"operation": "load_library",
|
||||
"result": "success"
|
||||
},
|
||||
{
|
||||
"backend": "OpenGL",
|
||||
"operation": "create_device",
|
||||
"result": "success"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"limits": [
|
||||
"Short scene startup and nonuniform framebuffer readback only.",
|
||||
"World mode uses the ordinary limited demo; world files remain private.",
|
||||
"No exhaustive gameplay, visual-correctness, FPS or M2 Pro performance claim.",
|
||||
"Vulkan preference can fall back; inspect the observed backend.",
|
||||
"PNG images, assets and full logs remain in the private runtime directory."
|
||||
]
|
||||
},
|
||||
"linux_vulkan_failure": {
|
||||
"exit_code": 1,
|
||||
"result_count": 0,
|
||||
"java_exception_types": [
|
||||
"java.awt.AWTError",
|
||||
"java.lang.NullPointerException",
|
||||
"java.lang.RuntimeException",
|
||||
"net.minecraft.ReportedException"
|
||||
],
|
||||
"expected_demo_authentication_errors_observed": true,
|
||||
"backend_attempts": [
|
||||
{
|
||||
"backend": "Vulkan",
|
||||
"operation": "load_library",
|
||||
"result": "success"
|
||||
},
|
||||
{
|
||||
"backend": "Vulkan",
|
||||
"operation": "create_device",
|
||||
"result": "success"
|
||||
}
|
||||
],
|
||||
"created_devices": [
|
||||
{
|
||||
"gpu": "llvmpipe (LLVM 21.1.8, 256 bits)",
|
||||
"graphics_backend": "Vulkan",
|
||||
"graphics_driver": "1.4.335 llvmpipe Mesa 26.0.8-1ubuntu0.3 (LLVM 21.1.8)"
|
||||
}
|
||||
],
|
||||
"client_initializer_reached": true,
|
||||
"readback_requested": false,
|
||||
"readback_callback_received": false,
|
||||
"readback_inspections": [],
|
||||
"probe_failure_categories": [],
|
||||
"vulkan_error_codes": [],
|
||||
"fatal_jvm_error": false,
|
||||
"observed_graphics_stack_methods": [
|
||||
"net.minecraft.client.renderer.Lightmap.handler$zzk000$distanthorizons$render",
|
||||
"net.minecraft.client.renderer.Lightmap.render",
|
||||
"net.minecraft.client.renderer.GameRenderer.render"
|
||||
],
|
||||
"profile": "cinematic",
|
||||
"preferred_backend": "vulkan"
|
||||
},
|
||||
"linux_vulkan_without_dh": {
|
||||
"private_dh_jar_removed": true,
|
||||
"new_demo_world": true,
|
||||
"exit_code": 1,
|
||||
"result_count": 0,
|
||||
"original_mod_sha256": "e651ef49bc97486e8dacfd4b640465c442525cd645e2dba71ddea9fb64347dd8",
|
||||
"failure": {
|
||||
"exit_code": 1,
|
||||
"result_count": 0,
|
||||
"java_exception_types": [
|
||||
"java.lang.AssertionError",
|
||||
"java.lang.RuntimeException"
|
||||
],
|
||||
"expected_demo_authentication_errors_observed": true,
|
||||
"backend_attempts": [
|
||||
{
|
||||
"backend": "Vulkan",
|
||||
"operation": "load_library",
|
||||
"result": "success"
|
||||
},
|
||||
{
|
||||
"backend": "Vulkan",
|
||||
"operation": "create_device",
|
||||
"result": "success"
|
||||
}
|
||||
],
|
||||
"created_devices": [
|
||||
{
|
||||
"gpu": "llvmpipe (LLVM 21.1.8, 256 bits)",
|
||||
"graphics_backend": "Vulkan",
|
||||
"graphics_driver": "1.4.335 llvmpipe Mesa 26.0.8-1ubuntu0.3 (LLVM 21.1.8)"
|
||||
}
|
||||
],
|
||||
"client_initializer_reached": true,
|
||||
"readback_requested": true,
|
||||
"readback_callback_received": true,
|
||||
"readback_inspections": [
|
||||
{
|
||||
"framebuffer_width": 1280,
|
||||
"framebuffer_height": 800,
|
||||
"sampled_pixels": 4288,
|
||||
"distinct_sampled_rgb": 1804
|
||||
}
|
||||
],
|
||||
"probe_failure_categories": [
|
||||
"shader_inactive"
|
||||
],
|
||||
"vulkan_error_codes": [],
|
||||
"fatal_jvm_error": false,
|
||||
"observed_graphics_stack_methods": [
|
||||
"net.minecraft.client.Screenshot.lambda$takeScreenshot$1",
|
||||
"com.mojang.renderpearl.backend.vulkan.DestructionQueue.rotate",
|
||||
"com.mojang.renderpearl.backend.vulkan.VulkanCommandEncoder.submit",
|
||||
"com.mojang.renderpearl.frontend.FrontendCommandEncoder.submit"
|
||||
]
|
||||
}
|
||||
},
|
||||
"mac_source_commit": "857c5a4aa553f83799631ad48340e43a13c78549",
|
||||
"mac_run_url": "https://github.com/ludovic111/minecraft-optimization-lab/actions/runs/37198566508",
|
||||
"mac_cases": [
|
||||
{
|
||||
"case": [
|
||||
"--profile",
|
||||
"cinematic",
|
||||
"--backend",
|
||||
"opengl",
|
||||
"--world",
|
||||
"--shaders"
|
||||
],
|
||||
"exit_code": 1,
|
||||
"failure": [
|
||||
{
|
||||
"fixture": "client-graphics",
|
||||
"profile": "cinematic",
|
||||
"completed": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": [
|
||||
"--profile",
|
||||
"cinematic",
|
||||
"--backend",
|
||||
"vulkan",
|
||||
"--world",
|
||||
"--shaders"
|
||||
],
|
||||
"exit_code": 1,
|
||||
"failure": [
|
||||
{
|
||||
"fixture": "client-graphics",
|
||||
"profile": "cinematic",
|
||||
"completed": false
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"limits": [
|
||||
"Linux llvmpipe software renderer; no physical M2 shader performance or native GPU test.",
|
||||
"OpenGL requires actual pinned shader activation and matching runtime pack identity, with nonuniform readback, focused gameplay, saved data and clean exit.",
|
||||
"Linux Vulkan plus DH fails before readback; selected stack locations alone do not establish the root cause.",
|
||||
"Removing DH privately produces an ordinary Vulkan world readback but Iris reports shaders inactive; the required-activation assertion rejects it.",
|
||||
"Both hosted Mac cases hit the 240-second private fixture timeout; earlier diagnostics do not retain stages or waiting state. They do not establish shader compatibility or incompatibility.",
|
||||
"Full logs, raw PNGs, world data, assets and shader ZIPs remain private.",
|
||||
"Diagnostic repeat: OpenGL loads a world but retains a screen before readback; Vulkan initializes its device but records no waiting-state snapshot. Both time out; screen identity and root causes are unknown."
|
||||
],
|
||||
"mac_diagnostic_repeat": {
|
||||
"source_commit": "ed416c91cf980f136b7431314bccea7f266fe049",
|
||||
"run_url": "https://github.com/ludovic111/minecraft-optimization-lab/actions/runs/37199837867",
|
||||
"cases": [
|
||||
{
|
||||
"case": [
|
||||
"--profile",
|
||||
"cinematic",
|
||||
"--backend",
|
||||
"opengl",
|
||||
"--world",
|
||||
"--shaders"
|
||||
],
|
||||
"exit_code": 1,
|
||||
"failure": [
|
||||
{
|
||||
"exit_code": -15,
|
||||
"result_count": 0,
|
||||
"java_exception_types": [
|
||||
"java.lang.IllegalStateException",
|
||||
"java.lang.RuntimeException"
|
||||
],
|
||||
"expected_demo_authentication_errors_observed": true,
|
||||
"backend_attempts": [
|
||||
{
|
||||
"backend": "OpenGL",
|
||||
"operation": "load_library",
|
||||
"result": "success"
|
||||
},
|
||||
{
|
||||
"backend": "OpenGL",
|
||||
"operation": "create_device",
|
||||
"result": "success"
|
||||
}
|
||||
],
|
||||
"created_devices": [
|
||||
{
|
||||
"gpu": "Apple Software Renderer",
|
||||
"graphics_backend": "OpenGL",
|
||||
"graphics_driver": "4.1 APPLE-23.1.1"
|
||||
}
|
||||
],
|
||||
"client_initializer_reached": true,
|
||||
"readback_requested": false,
|
||||
"readback_callback_received": false,
|
||||
"readback_inspections": [],
|
||||
"last_waiting_state": {
|
||||
"world_loaded": true,
|
||||
"player_present": true,
|
||||
"overlay_present": false,
|
||||
"screen_present": true,
|
||||
"window_active": true,
|
||||
"paused": false,
|
||||
"ready_client_ticks": 0
|
||||
},
|
||||
"probe_failure_categories": [],
|
||||
"vulkan_error_codes": [],
|
||||
"fatal_jvm_error": false,
|
||||
"observed_graphics_stack_methods": [
|
||||
"net.minecraft.client.renderer.LevelRenderer.mixinextras$bridge$renderGroup$135",
|
||||
"net.minecraft.client.renderer.LevelRenderer.wrapOperation$bio000$iris$beginTerrainLayer",
|
||||
"net.minecraft.client.renderer.LevelRenderer.executeSolid",
|
||||
"net.minecraft.client.renderer.LevelRenderer.lambda$addMainPass$0",
|
||||
"com.mojang.blaze3d.framegraph.FrameGraphBuilder.execute",
|
||||
"net.minecraft.client.renderer.LevelRenderer.render",
|
||||
"net.minecraft.client.renderer.GameRenderer.mixinextras$bridge$render$86",
|
||||
"net.minecraft.client.renderer.GameRenderer.wrapOperation$bjf000$iris$renderLevel"
|
||||
],
|
||||
"fixture": "client-graphics",
|
||||
"profile": "cinematic",
|
||||
"completed": false,
|
||||
"timed_out": true,
|
||||
"timeout_seconds": 240
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": [
|
||||
"--profile",
|
||||
"cinematic",
|
||||
"--backend",
|
||||
"vulkan",
|
||||
"--world",
|
||||
"--shaders"
|
||||
],
|
||||
"exit_code": 1,
|
||||
"failure": [
|
||||
{
|
||||
"exit_code": -15,
|
||||
"result_count": 0,
|
||||
"java_exception_types": [
|
||||
"java.lang.RuntimeException"
|
||||
],
|
||||
"expected_demo_authentication_errors_observed": true,
|
||||
"backend_attempts": [
|
||||
{
|
||||
"backend": "Vulkan",
|
||||
"operation": "load_library",
|
||||
"result": "success"
|
||||
},
|
||||
{
|
||||
"backend": "Vulkan",
|
||||
"operation": "create_device",
|
||||
"result": "success"
|
||||
}
|
||||
],
|
||||
"created_devices": [
|
||||
{
|
||||
"gpu": "Apple Paravirtual device",
|
||||
"graphics_backend": "Vulkan",
|
||||
"graphics_driver": "1.2.350 MoltenVK 1.4.2"
|
||||
}
|
||||
],
|
||||
"client_initializer_reached": true,
|
||||
"readback_requested": false,
|
||||
"readback_callback_received": false,
|
||||
"readback_inspections": [],
|
||||
"last_waiting_state": null,
|
||||
"probe_failure_categories": [],
|
||||
"vulkan_error_codes": [],
|
||||
"fatal_jvm_error": false,
|
||||
"observed_graphics_stack_methods": [],
|
||||
"fixture": "client-graphics",
|
||||
"profile": "cinematic",
|
||||
"completed": false,
|
||||
"timed_out": true,
|
||||
"timeout_seconds": 240
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -28,4 +28,40 @@ The research workflow runs both cases and retains selected failed outcomes.
|
||||
It fails if either case fails and remains separate from required OpenGL CI.
|
||||
This is a short initialization/readback/save check, not a shader FPS, physical
|
||||
M2 GPU, exhaustive visual quality or distant-terrain completion benchmark.
|
||||
Recorded outcomes are added after real probes finish.
|
||||
|
||||
## Observed results
|
||||
|
||||
The [selected shader observations](../benchmarks/shader-worlds-2026-10-04/live-observations.json)
|
||||
retain successful and failed cases. On Linux llvmpipe, the OpenGL cinematic
|
||||
world probe passes with the pinned shader pack actually active, matching identity,
|
||||
nonuniform readback and clean save/exit. Its private image was visually inspected.
|
||||
This is a software-renderer startup result, not a shader FPS or physical Mac claim.
|
||||
|
||||
The Linux Vulkan cinematic case fails before readback, with a Distant Horizons
|
||||
lightmap handler in selected stack locations. A fresh private isolation instance
|
||||
with the DH JAR removed reaches ordinary Vulkan world readback but Iris reports
|
||||
shaders inactive. The strict activation assertion rejects it; ordinary world
|
||||
pixels alone would have produced a misleading shader success.
|
||||
|
||||
Hosted Mac run 37198566508 times out in both OpenGL and Vulkan cinematic cases,
|
||||
with no completed probe report. The previous timeout wrapper retained only
|
||||
`completed: false`; initialization/readback/waiting state is unknown. This does
|
||||
not establish shader support or incompatibility on physical Apple GPUs.
|
||||
|
||||
Later timeout diagnostics preserve selected initialization/readback stages,
|
||||
actual child exit status after bounded cleanup, and the last private waiting-state
|
||||
snapshot. Waiting state contains only six booleans and a tick count; arbitrary
|
||||
screen names, messages and paths are excluded. An unsuccessful research run
|
||||
remains unsuccessful. Playable shader/backend defaults remain unchanged.
|
||||
|
||||
Diagnostic repeat [37199837867](https://github.com/ludovic111/minecraft-optimization-lab/actions/runs/37199837867)
|
||||
uses the richer diagnostics. Both cases again hit the 240-second timeout and
|
||||
require bounded termination. OpenGL initializes its device and loads a world
|
||||
with a player, no overlay, an active window and no pause; a screen remains
|
||||
present and the fixture never reaches readback readiness. Selected stack
|
||||
locations include Iris terrain rendering, but do not identify the screen or
|
||||
establish a root cause. Vulkan initializes its device and client entrypoint,
|
||||
but provides no waiting-state snapshot or readback request before timeout.
|
||||
Neither case yields an actual shader-activation assertion or saved/clean-exit
|
||||
success. The research workflow correctly fails; required non-shader OpenGL
|
||||
checks pass independently on Windows, Linux and macOS.
|
||||
|
||||
@@ -24,6 +24,7 @@ public final class ClientGraphicsIntegration implements ClientModInitializer {
|
||||
private boolean requested;
|
||||
private boolean opening;
|
||||
private int overlayWaitTicks;
|
||||
private long lastWaitingState;
|
||||
private final boolean worldMode = Files.exists(FabricLoader.getInstance().getConfigDir().resolve("client-graphics-world.flag"));
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -54,6 +55,19 @@ public final class ClientGraphicsIntegration implements ClientModInitializer {
|
||||
System.out.println("HORIZON_CLIENT_GRAPHICS_INITIALIZER_READY");
|
||||
ClientTickEvents.END_CLIENT_TICK.register(client -> {
|
||||
if (requested) return;
|
||||
long now = System.nanoTime();
|
||||
if (now - lastWaitingState >= 5_000_000_000L) {
|
||||
lastWaitingState = now;
|
||||
var state = new JsonObject();
|
||||
state.addProperty("world_loaded", client.level != null);
|
||||
state.addProperty("player_present", client.player != null);
|
||||
state.addProperty("overlay_present", client.gui.overlay() != null);
|
||||
state.addProperty("screen_present", client.gui.screen() != null);
|
||||
state.addProperty("window_active", client.isWindowActive());
|
||||
state.addProperty("paused", client.isPaused());
|
||||
state.addProperty("ready_client_ticks", titleTicks);
|
||||
System.out.println("HORIZON_CLIENT_GRAPHICS_WAIT_STATE " + state);
|
||||
}
|
||||
// TitleScreen can exist beneath the asynchronous loading overlay.
|
||||
// Count readiness only after it clears, for both title and world mode.
|
||||
if (client.gui.overlay() != null) {
|
||||
|
||||
@@ -4,9 +4,28 @@ import unittest
|
||||
|
||||
from tools.test_dispatch import failure_summary
|
||||
from tools.test_client_graphics import graphics_failure_summary, validate_shader_report
|
||||
from tools.test_culling_rays import FixtureTimeout
|
||||
|
||||
|
||||
class FixtureDiagnosticTests(unittest.TestCase):
|
||||
def test_timeout_preserves_selected_stages_without_private_content(self):
|
||||
output = '\n'.join([
|
||||
'private-token /private/world/path',
|
||||
'HORIZON_CLIENT_GRAPHICS_INITIALIZER_READY',
|
||||
'HORIZON_CLIENT_GRAPHICS_WAIT_STATE {"world_loaded":true,"player_present":true,"overlay_present":false,"screen_present":true,"window_active":false,"paused":true,"ready_client_ticks":0,"ignored":"private-token"}',
|
||||
'HORIZON_CLIENT_GRAPHICS_WAIT_STATE {"world_loaded":"private-token"}',
|
||||
])
|
||||
error = FixtureTimeout(subprocess.CompletedProcess(['private-command'], -15, output), 'private-log')
|
||||
self.assertIsInstance(error, RuntimeError)
|
||||
result = graphics_failure_summary(error.run, 0)
|
||||
self.assertEqual(result['exit_code'], -15)
|
||||
self.assertTrue(result['client_initializer_reached'])
|
||||
self.assertFalse(result['readback_requested'])
|
||||
self.assertEqual(result['last_waiting_state'], {'world_loaded': True, 'player_present': True,
|
||||
'overlay_present': False, 'screen_present': True, 'window_active': False, 'paused': True,
|
||||
'ready_client_ticks': 0})
|
||||
self.assertNotIn('private', json.dumps(result))
|
||||
|
||||
def test_required_shaders_cannot_pass_with_disabled_unknown_or_different_pack(self):
|
||||
report = {'shader_required': True, 'iris_capture_status': 'available',
|
||||
'iris_shaders_enabled': True, 'iris_expected_pack_matches': True}
|
||||
|
||||
@@ -12,12 +12,12 @@ import sys
|
||||
|
||||
try:
|
||||
from . import build_mod, build_pack
|
||||
from .test_culling_rays import run_fixture
|
||||
from .test_culling_rays import FixtureTimeout, run_fixture
|
||||
from .test_dispatch import failure_summary
|
||||
except ImportError:
|
||||
import build_mod
|
||||
import build_pack
|
||||
from test_culling_rays import run_fixture
|
||||
from test_culling_rays import FixtureTimeout, run_fixture
|
||||
from test_dispatch import failure_summary
|
||||
|
||||
|
||||
@@ -52,6 +52,20 @@ def graphics_failure_summary(run, report_count):
|
||||
if len(inspections) == 4:
|
||||
break
|
||||
result['readback_inspections'] = inspections
|
||||
waiting_marker = 'HORIZON_CLIENT_GRAPHICS_WAIT_STATE '
|
||||
boolean_fields = ('world_loaded', 'player_present', 'overlay_present',
|
||||
'screen_present', 'window_active', 'paused')
|
||||
result['last_waiting_state'] = None
|
||||
for line in run.stdout.splitlines():
|
||||
if waiting_marker not in line:
|
||||
continue
|
||||
try:
|
||||
state = json.loads(line.split(waiting_marker, 1)[1])
|
||||
except json.JSONDecodeError:
|
||||
continue
|
||||
if (isinstance(state, dict) and all(type(state.get(field)) is bool for field in boolean_fields)
|
||||
and type(state.get('ready_client_ticks')) is int and 0 <= state['ready_client_ticks'] <= 2_147_483_647):
|
||||
result['last_waiting_state'] = {field: state[field] for field in (*boolean_fields, 'ready_client_ticks')}
|
||||
# These exact messages belong to our private fixture. Never emit arbitrary
|
||||
# exception messages or infer that a separately logged Vulkan code caused it.
|
||||
categories = {'Uniform title readback': 'uniform_readback',
|
||||
@@ -125,9 +139,11 @@ def main():
|
||||
command = ['xvfb-run', '-a', *command]
|
||||
try:
|
||||
run = run_fixture(command, instance, os.environ.copy())
|
||||
except RuntimeError:
|
||||
print('HORIZON_FIXTURE_FAILURE ' + json.dumps({'fixture': 'client-graphics',
|
||||
'profile': profile, 'completed': False}), flush=True)
|
||||
except FixtureTimeout as error:
|
||||
diagnostics = graphics_failure_summary(error.run, 0)
|
||||
diagnostics.update(fixture='client-graphics', profile=profile,
|
||||
completed=False, timed_out=True, timeout_seconds=240)
|
||||
print('HORIZON_FIXTURE_FAILURE ' + json.dumps(diagnostics), flush=True)
|
||||
raise RuntimeError('Graphics probe did not finish; diagnostics remain private') from None
|
||||
marker = 'HORIZON_CLIENT_GRAPHICS_RESULT '
|
||||
reports = [json.loads(line.split(marker, 1)[1]) for line in run.stdout.splitlines() if marker in line]
|
||||
|
||||
@@ -18,6 +18,13 @@ except ImportError:
|
||||
import build_pack
|
||||
|
||||
|
||||
class FixtureTimeout(RuntimeError):
|
||||
"""Keep timeout output private while allowing selected caller diagnostics."""
|
||||
def __init__(self, run, private_log):
|
||||
super().__init__(f"Private fixture timed out; inspect {private_log}")
|
||||
self.run = run
|
||||
|
||||
|
||||
def run_fixture(command, instance, environment):
|
||||
# Keep all children of this private fixture in a controllable process group.
|
||||
process = subprocess.Popen(command, cwd=build_pack.ROOT, env=environment, text=True,
|
||||
@@ -37,7 +44,8 @@ def run_fixture(command, instance, environment):
|
||||
except subprocess.TimeoutExpired:
|
||||
stop_tree(True); output, _ = process.communicate(timeout=10)
|
||||
(instance / "fixture.log").write_text(output)
|
||||
raise RuntimeError(f"Private fixture timed out; inspect {instance / 'fixture.log'}") from None
|
||||
raise FixtureTimeout(subprocess.CompletedProcess(command, process.returncode, output),
|
||||
instance / 'fixture.log') from None
|
||||
(instance / "fixture.log").write_text(output)
|
||||
return subprocess.CompletedProcess(command, process.returncode, output)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user