1010import networkx as nx
1111import numpy as np
1212import pytest
13+ from flaky import flaky
1314from gym .spaces import Box
1415from gym .spaces import Dict as DictSpace
1516
@@ -1165,6 +1166,7 @@ def test_object_text_size_observation_spaces(env: LlvmEnv):
11651166 assert value == crc32_code_sizes [sys .platform ][2 ]
11661167
11671168
1169+ @flaky # Runtimes can timeout
11681170def test_runtime_observation_space (env : LlvmEnv ):
11691171 env .reset ("cbench-v1/crc32" )
11701172 key = "Runtime"
@@ -1188,6 +1190,7 @@ def test_runtime_observation_space(env: LlvmEnv):
11881190 assert len (set (value )) > 1
11891191
11901192
1193+ @flaky # Runtimes can timeout
11911194def test_runtime_observation_space_different_observation_count (env : LlvmEnv ):
11921195 """Test setting a custom observation count for LLVM runtimes."""
11931196 env .reset ("cbench-v1/crc32" )
@@ -1208,6 +1211,7 @@ def test_runtime_observation_space_different_observation_count(env: LlvmEnv):
12081211 assert value .shape == (5 ,)
12091212
12101213
1214+ @flaky # Runtimes can timeout
12111215def test_runtime_observation_space_invalid_observation_count (env : LlvmEnv ):
12121216 """Test setting an invalid custom observation count for LLVM runtimes."""
12131217 env .reset ("cbench-v1/crc32" )
@@ -1233,6 +1237,7 @@ def test_runtime_observation_space_not_runnable(env: LlvmEnv):
12331237 assert space .space .contains (value )
12341238
12351239
1240+ @flaky # Build can timeout
12361241def test_buildtime_observation_space (env : LlvmEnv ):
12371242 env .reset ("cbench-v1/crc32" )
12381243 key = "Buildtime"
0 commit comments