<commit_before>#!/usr/local/bin/tcsh -f
#################################################################
#								#
# Copyright (c) 2013-2015 Fidelity National Information 	#
# Services, Inc. and/or its subsidiaries. All rights reserved.	#
#								#
#	This source code contains the intellectual property	#
#	of its copyright holder(s), and is made available	#
#	under a license.  If you do not know the terms of	#
#	the license, please stop and do not read further.	#
#								#
#################################################################

set watch_dir = $1
set exit_file = $1/watchdog_${testname}.stop

set teststopped = 0
set shorthost = $HOST:r:r:r:r
set format="%Y.%m.%d.%H.%M.%S.%Z"
set timestart = `date +"$format"`
if (! $?gtm_test_hang_alert_sec) then
	set gtm_test_hang_alert_sec = 18000 # A test running for 5 hours is suspected to be hung
endif
set mailinterval = 1800 # Send mail to the user ever 30 minutes
# Kill submit_test.csh after waiting $killtime, to let the other tests continue
@ killtime = $gtm_test_hang_alert_sec + $mailinterval

if (! $?gtm_test_max_core) then
	set gtm_test_max_core = 10
endif

cd $tst_general_dir

while !( -e $exit_file)
	set cursubtestdir = `$tst_awk '/SUB_TEST:/ {subtest=$NF} END {print subtest}' $tst_general_dir/config.log`
	if ("" == $cursubtestdir) then
		set cursubtestdir = "tmp"
		set errmsg = "Test stopped as it has too many core files"
	else<commit_msg>Increase default test framework hang alert to 5 hours for ARM boxes since they are slower than servers (which have 2.5 hours timeout); This will help avoid various TIMEDOUT type of test failures on the ARM<commit_after>#!/usr/local/bin/tcsh -f
#################################################################
#								#
# Copyright (c) 2013-2015 Fidelity National Information 	#
# Services, Inc. and/or its subsidiaries. All rights reserved.	#
#								#
# Copyright (c) 2017 YottaDB LLC. and/or its subsidiaries.	#
# All rights reserved.						#
#								#
#	This source code contains the intellectual property	#
#	of its copyright holder(s), and is made available	#
#	under a license.  If you do not know the terms of	#
#	the license, please stop and do not read further.	#
#								#
#################################################################

set watch_dir = $1
set exit_file = $1/watchdog_${testname}.stop

set teststopped = 0
set shorthost = $HOST:r:r:r:r
set format="%Y.%m.%d.%H.%M.%S.%Z"
set timestart = `date +"$format"`
if (! $?gtm_test_hang_alert_sec) then
	if ("HOST_LINUX_ARMV7L" != $gtm_test_os_machtype) then
		set gtm_test_hang_alert_sec = 9000 # A subtest running for 2.5 hours is suspected to be hung
	else
		# ARM boxes are usually slower so give them a bigger timeout for the hang alert
		set gtm_test_hang_alert_sec = 18000 # A subtest running for 5.0 hours is suspected to be hung
	endif
endif
set mailinterval = 1800 # Send mail to the user ever 30 minutes
# Kill submit_test.csh after waiting $killtime, to let the other tests continue
@ killtime = $gtm_test_hang_alert_sec + $mailinterval

if (! $?gtm_test_max_core) then
	set gtm_test_max_core = 10
endif

cd $tst_general_dir

while !( -e $exit_file)
	set cursubtestdir = `$tst_awk '/SUB_TEST:/ {subtest=$NF} END {print subtest}' $tst_general_dir/config.log`
	if ("" == $cursubtestdir) then
		set cursubtestdir = "tmp"
		set errmsg = "Test stopped as it has too many core files"
	else
{'fraction_non_alphanumeric': 0.16883116883116883, 'fraction_numerical': 0.019185360094451005, 'mean_word_length': 4.3879173290938, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5492119', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1101, 'n_words': 382}