-
Notifications
You must be signed in to change notification settings - Fork 1
/
nightly-run.sh
executable file
·68 lines (56 loc) · 1.41 KB
/
nightly-run.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
set -e
set -x
#cleanup
mkdir -p log
rm -f /tmp/membalancer_socket
#sync with the main branch (for custom branches)
#git pull --rebase origin main
mem_balancer_dir=$PWD
cd $mem_balancer_dir
export PATH="$PWD/../depot_tools:$PATH"
./clean_log
./clean_out
echo "** Pulling latest changes in MemoryBalancer and v8 **"
git submodule init
git submodule update
git submodule sync
echo "** pulling changes in MemoryBalancer"
echo "** pulling changes in v8 **"
cd ../v8/src
git stash
git checkout STABLE
git pull origin STABLE
gclient sync -f --no-history
echo "** pulling changes in chrome **"
cd $mem_balancer_dir
cd "../chromium/src"
git checkout STABLE
git pull
#gclient sync -f --no-history
#cd "v8"
#git pull origin STABLE
#cd "../"
#echo "** building chrome **"
#autoninja -C out/Release chrome
echo "** cloning membalancer-paper **"
cd $mem_balancer_dir
cd "../"
[ ! -d "membalancer-paper" ] && git clone [email protected]:cputah/membalancer-paper.git
cd $mem_balancer_dir
echo "** building v8 **"
make clean
make v8
echo "** building memorybalancer **"
make
pip3 install pyppeteer
pip3 install dominate
echo "** running eval **"
python3 python/eval.py "jetstream"
python3 python/eval.py "acdc"
python3 python/gen.py --action=upload
echo "** uploading results **"
result_dir=`ls "out" | sort -r | head -1`
if command -v nightly-results &>/dev/null; then
nightly-results url "http://membalancer.uwplse.org/$result_dir"
fi