Skip to content

Commit 8f6c7af

Browse files
pruthvistonydnikolaev-amd
authored andcommitted
Increase lifespan of test-times files
- build_environment is hard coded to value from upstream when branch for created, since the dev/QA ENV build_environment value can be varing
1 parent 2be2a79 commit 8f6c7af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/run_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,8 @@ def load_test_times_from_file(file: str) -> Dict[str, Any]:
15181518

15191519
with open(path) as f:
15201520
test_times_file = cast(Dict[str, Any], json.load(f))
1521-
build_environment = os.environ.get("BUILD_ENVIRONMENT")
1521+
# build_environment hard coded to value from upstream when branch is created
1522+
build_environment = "linux-focal-rocm6.0-py3.8"
15221523
test_config = os.environ.get("TEST_CONFIG")
15231524
if test_config in test_times_file.get(build_environment, {}):
15241525
print_to_stderr("Found test times from artifacts")

tools/stats/import_test_stats.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def get_disabled_issues() -> list[str]:
3232
TD_HEURISTIC_PREVIOUSLY_FAILED = "previous_failures.json"
3333
TD_HEURISTIC_PREVIOUSLY_FAILED_ADDITIONAL = "previous_failures_additional.json"
3434

35-
FILE_CACHE_LIFESPAN_SECONDS = datetime.timedelta(hours=3).seconds
35+
#increse the cache time to 6 months
36+
FILE_CACHE_LIFESPAN_SECONDS = 6 * 30 * 24 * 3600
3637

3738

3839
def fetch_and_cache(

0 commit comments

Comments
 (0)