Megatest

Check-in [012982e117]
Login
Overview
Comment:Tweaked settings in fdktest tests. Added verbose output on server start fail.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.60
Files: files | file ages | folders
SHA1: 012982e1178a9d47be30ccc21caee3027e0e430c
User & Date: mrwellan on 2014-09-03 08:32:26
Other Links: branch diff | manifest | tags
Context
2014-09-03
11:44
Added dot-locking around access to the portlogger db. Sqlite3 locking seems to have trouble on fast local disk sometimes (worked when system was loaded, failed when system was lightly loaded). check-in: 9db808f9fe user: mrwellan tags: v1.60
08:32
Tweaked settings in fdktest tests. Added verbose output on server start fail. check-in: 012982e117 user: mrwellan tags: v1.60
2014-08-30
02:00
Paths in configs must not be built using PWD check-in: 9944381f09 user: matt tags: v1.60
Changes

Modified http-transport.scm from [a9f6d77e91] to [155583da14].

137
138
139
140
141
142
143



144
145
146
147
148
149
150
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153







+
+
+







(define (http-transport:try-start-server run-id ipaddrstr portnum server-id)
  (handle-exceptions
   exn
   (begin
     (print-error-message exn)
     (if (< portnum 61000)
	 (begin 
	   (debug:print 0 "WARNING: attempt to start server failed. Trying again ...")
	   (debug:print 0 " message: " ((condition-property-accessor 'exn 'message) exn))
	   (debug:print 0 "exn=" (condition->list exn))
	   (portlogger:open-run-close portlogger:set-failed portnum)
	   (debug:print 0 "WARNING: failed to start on portnum: " portnum ", trying next port")
	   (thread-sleep! 0.1)

	   ;; get_next_port goes here
	   (http-transport:try-start-server run-id
					    ipaddrstr

Modified tests/fdktestqa/fdk.config from [b19badc325] to [e76cce79f3].

1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
16
17
18
19
20
21
22

23






1
2
3
4
5
6
7

8
9
10
11
12
13
14
15
16
17
18
19
20
21

22
23
24
25
26
27
28
29







-
+













-
+

+
+
+
+
+
+
[fields]
SYSTEM TEXT
RELEASE TEXT

[setup]
# Adjust max_concurrent_jobs to limit how much you load your machines
# max_concurrent_jobs 150
max_concurrent_jobs 1500
max_concurrent_jobs 1000

# This is your link path, you can move it but it is generally better to keep it stable
linktree #{shell readlink -f #{getenv MT_RUN_AREA_HOME}/../simplelinks}

[include testqa/configs/megatest.abc.config]

# timeout 0.025

[jobtools]
maxload 4
launcher nbfake

[server]
timeout 1
# timeout 0.01
# homehost xena
homehost 143.182.225.38

[jobtools]
launcher nbq -P ch_vp -C SLES11_EM64T_4G -Q /ciaf/fdk
# launcher nbfake
maxload 4

Modified tests/fdktestqa/testqa/Makefile from [4410aef0a8] to [598f7499e7].

26
27
28
29
30
31
32
33

34
26
27
28
29
30
31
32

33
34







-
+

dashboard : 
	$(DASHBOARD) -rows 20 &

compile :
	(cd ../../..;make -j && make install)

clean :
	rm -rf ../simple*/*/* megatest.db db/* ../simple*/.db/* logs/*
	rm -rf ../simple*/*/* megatest.db db/* ../simple*/.db/* logs/* monitor.db

Modified tests/fdktestqa/testqa/configs/megatest.abc.config from [568ec796ea] to [a1a8a77b6d].

1
2
3
4
5
6
7

8
9
1
2
3
4
5
6

7
8
9






-
+


# Valid values for state and status for steps, NB// It is not recommended you use this
[validvalues]
state start end completed

# Job tools are more advanced ways to control how your jobs are launched
[jobtools]
useshell yes
# useshell yes

[include megatest.def.config]

Modified tests/fdktestqa/testqa/tests/bigrun/step1.sh from [45d51b92e4] to [e700391a61].

1
2
3

4
5
6
7
8
9
10
1
2

3
4
5
6
7
8
9
10


-
+







#!/bin/bash
if [ $NUMBER -lt 10 ];then 
   sleep 2
   sleep 20
   sleep `echo 4 * $NUMBER | bc`
else
   sleep 130
fi

if [[ $RANDOM -lt 10000 ]];then
  exit 1