Skip to content

Commit fb8e269

Browse files
pruthvistonypragupta
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 (cherry picked from commit d4fbf03) [NO CP] Temporary dumping of test exec log to stderr - This is done as per QA request, needs to be reverted and not required to be cherry-picked into later releases. (cherry picked from commit 2b0f39b) (cherry picked from commit 06da6df)
1 parent 9b4ad7d commit fb8e269

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

test/run_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,11 @@ def handle_log_file(
11881188
if re.search("Running .* items in this shard:", line):
11891189
print_to_stderr(line.rstrip())
11901190
print_to_stderr("")
1191+
1192+
# Temporary dumping the log file into stderr for QA reference
1193+
print_to_stderr(f"\n START of temporary dumping of {test} execution log file from ({file_path})")
1194+
print_to_stderr(full_text)
1195+
print_to_stderr(f"END of temporary dumping of {test} execution log file form ({file_path})\n")
11911196
return
11921197

11931198
# otherwise: print entire file

tools/stats/import_test_stats.py

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

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

4142

4243
def fetch_and_cache(

0 commit comments

Comments
 (0)