Skip to content

Commit 0239982

Browse files
committed
change to match new pull syntax
Summary: change to match new pull syntax Reviewed By: nikunjy Differential Revision: D2689112 fb-gh-sync-id: 939d549d12827b392cd11f4cbd5e9ef69f7e550a
1 parent 6569f8f commit 0239982

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

build/wdt_cont_build_run.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ while {1} {
141141
if {[catch {exec $timeoutCmd $totalMaxDuration sh -c "set -o pipefail;\
142142
set -x; date; uname -a;\
143143
$sudo rm -rf /tmp/wdtTest_$userdir /dev/shm/wdtTest_$userdir wdtTest &&\
144-
cd $CDIR/fbsource/fbcode && time hg pull -r master -u &&\
144+
cd $CDIR/fbsource/fbcode && time hg pull -r master -u --dest master &&\
145145
hg log -l 1 && hg log -v -l 1 folly && hg log -v -l 1 wdt &&\
146146
cd $CDIR/cmake_wdt_build && time make -j 4 && \
147147
CTEST_OUTPUT_ON_FAILURE=1 time $timeoutCmd $maxTestDuration make test &&\

build/wdt_cont_build_run_diff.tcl

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set diff [lindex $argv 0]
66
puts "Working on diff $diff"
77
if {[string length $diff]==0} {
88
puts stderr "Need DXXXXX argument"
9+
exit 1
910
}
1011

1112
# In order for /data/users/$USER to be different than default when creating
@@ -16,6 +17,15 @@ append ::env(USER) "_wdt_contbuild"
1617
set userdir $::env(USER)
1718
puts "Will run script with USER env = $userdir"
1819

20+
set maxTestDuration "15m"
21+
set totalMaxDuration "35m"
22+
23+
puts "Max test duration: $maxTestDuration - Max total $totalMaxDuration"
24+
25+
# Set throughput - lower for now / there is some issue with kernel or env
26+
# (or our code?)
27+
set ::env(WDT_THROUGHPUT) 13000
28+
1929
set CDIR "/data/users/$userdir"
2030

2131
# path and ld library path
@@ -49,6 +59,8 @@ proc sleep {time} {
4959

5060
# we will email for the first change
5161
set last {}
62+
# uncomment to force initial version update after restart
63+
# set last "force"
5264
# previous hg log for wdt (will cause email first too)
5365
set hgprev {none}
5466
# also email every x :
@@ -86,15 +98,18 @@ nextEmail
8698

8799
cd $CDIR/fbsource/fbcode
88100

101+
# no auto versioning in this script
89102
# only 2 types for now - either 'open source' on the mac or full otherwise
90103
set os [exec uname]
91104
if {$os == "Darwin"} {
92105
set type "mac"
93106
set extraCmds "echo done"
94107
set targetDir "/usr/local/var/www/wdt_builds/"
95108
set sudo ""
109+
set timeoutCmd "gtimeout"
96110
} else {
97111
set type "unix"
112+
set timeoutCmd "timeout"
98113
set extraCmds "cd $CDIR/fbsource/fbcode &&\
99114
(sudo tc qdisc del dev lo root; sudo ip6tables --flush || true) &&\
100115
time fbconfig --clang -r wdt &&\
@@ -103,11 +118,11 @@ if {$os == "Darwin"} {
103118
time wdt/test/wdt_max_send_test.sh _bin/wdt/fbonly/wdt_fb |& tail -50 &&\
104119
time fbconfig --sanitize address -r wdt &&\
105120
time fbmake dbg &&\
106-
time fbmake runtests --run-disabled --return-nonzero-on-timeouts &&\
121+
time $timeoutCmd $maxTestDuration fbmake runtests --extended-tests --run-disabled --record-results --return-nonzero-on-timeouts &&\
107122
sudo tc qdisc add dev lo root netem delay 20ms 10ms \
108123
duplicate 1% corrupt 0.1% &&\
109124
echo rerunning tests with tc delays &&\
110-
time fbmake runtests --run-disabled --return-nonzero-on-timeouts &&\
125+
time $timeoutCmd $maxTestDuration fbmake runtests --run-disabled --record-results --return-nonzero-on-timeouts &&\
111126
sudo tc qdisc del dev lo root"
112127
set targetDir "~/public_html/wdt_builds/"
113128
set sudo "sudo"
@@ -128,15 +143,16 @@ while {1} {
128143
set LOGF "$CDIR/$LOGTS.log"
129144
puts "Logging to $LOGF"
130145
# cleanup previous builds failure - sudo not needed/asking for passwd on mac
131-
if {[catch {exec sh -c "set -o pipefail; set -x; date; uname -a;\
146+
if {[catch {exec $timeoutCmd $totalMaxDuration sh -c "set -o pipefail;\
147+
set -x; date; uname -a;\
132148
$sudo rm -rf /tmp/wdtTest_$userdir /dev/shm/wdtTest_$userdir wdtTest &&\
133149
cd $CDIR/fbsource/fbcode && (hg book -d arcpatch-$diff || true) &&\
134-
time hg pull && arc patch $diff &&\
150+
time hg pull -r master -u --dest master && arc patch $diff &&\
135151
( time hg rebase -d master || true ) &&\
136152
hg bookmark -v &&\
137153
hg log -l 2 && hg log -v -l 1 folly && hg log -v -l 2 wdt &&\
138154
cd $CDIR/cmake_wdt_build && time make -j 4 && \
139-
CTEST_OUTPUT_ON_FAILURE=1 time make test &&\
155+
CTEST_OUTPUT_ON_FAILURE=1 time $timeoutCmd $maxTestDuration make test &&\
140156
$extraCmds" >& $LOGF < /dev/null} results options]} {
141157
set msg "BAD"
142158
} else {

0 commit comments

Comments
 (0)