forked from Netflix/metaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_runner
executable file
·30 lines (24 loc) · 972 Bytes
/
test_runner
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
#!/bin/bash
set -o errexit -o nounset -o pipefail
install_deps() {
for version in 2 3;
do
python$version -m pip install .
done
}
install_extensions() {
cd test/extensions
sh install_packages.sh
cd ../../
}
run_tests() {
cd test/core && PYTHONPATH=`pwd`/../../ python3 run_tests.py --num-parallel 8 && cd ../../
}
# We run realtime cards tests separately because there these tests validate the asynchronous updates to the
# information stored in the datastore. So if there are other processes starving resources then these tests will
# surely fail since a lot of checks have timeouts.
run_runtime_card_tests() {
CARD_GRAPHS="small-foreach,small-parallel,nested-branches,single-linear-step,simple-foreach"
cd test/core && PYTHONPATH=`pwd`/../../ python3 run_tests.py --num-parallel 8 --contexts python3-all-local-cards-realtime --graphs $CARD_GRAPHS && cd ../../
}
install_deps && install_extensions && run_tests && run_runtime_card_tests