Skip to content

Commit d446c34

Browse files
authored
Merge branch 'master' into georgy/kore-json-logging
2 parents e388e11 + 68bea10 commit d446c34

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ hie.yaml
5555
*~
5656
dev-tools/*.cabal
5757
booster/*.cabal
58-
/booster/scripts/logs
59-
/booster/scripts/bug-reports
58+
/scripts/logs
59+
/scripts/bug-reports
6060
/booster/test/rpc-integration/resources/*.dylib
6161
/booster/test/*/definition/*kompiled/
6262

scripts/booster-analysis.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ nix_shell() {
1818

1919
nix_shell "cabal build kore-rpc-booster"
2020

21-
export SERVER=$(nix_shell "cabal exec which kore-rpc-booster")
21+
export SERVER=$(nix_shell "cabal exec which kore-rpc-booster" | tail -1)
2222

2323
nix_shell "cabal build kore-rpc-client"
2424

25-
export CLIENT=$(nix_shell "cabal exec which kore-rpc-client")
25+
export CLIENT=$(nix_shell "cabal exec which kore-rpc-client" | tail -1)
2626

2727
export LOG_DIR=${LOG_DIR:-"$BUG_REPORT_DIR-logs"}
2828

@@ -37,7 +37,7 @@ export PLUGIN_DIR=$(nix build github:runtimeverification/blockchain-k-plugin/$PL
3737

3838
run_tarball(){
3939
echo "######## $1 ########";
40-
$SCRIPT_DIR/run-with-tarball.sh $1 -l Aborts --print-stats 2>&1 | tee $LOG_DIR/$(basename $1).out;
40+
$SCRIPT_DIR/run-with-tarball.sh "$1" -l Aborts --print-stats 2>&1 | tee "$LOG_DIR/$(basename "$1").out";
4141
}
4242

4343
export -f run_tarball

scripts/performance-tests-mx.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ git clone --depth 1 --branch $MX_VERSION https://github.com/runtimeverification/
4747
cd mx-backend
4848

4949
if [[ $MX_VERSION == "master" ]]; then
50-
MX_VERSION=$(git name-rev --tags --name-only $(git rev-parse HEAD))
50+
MX_VERSION=$(git rev-parse --short HEAD)
5151
else
5252
MX_VERSION="${MX_VERSION//\//-}"
5353
fi
5454

55-
git submodule update --init --recursive --depth 1 kmxwasm/k-src/mx-semantics/
55+
git submodule update --init --recursive --depth 1
5656

5757
BUG_REPORT=''
5858
POSITIONAL_ARGS=()
@@ -78,17 +78,17 @@ done
7878
set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters
7979

8080

81-
feature_shell "poetry -C kmxwasm install && make -C kmxwasm kbuild-haskell"
81+
feature_shell "make kmxwasm && make build"
8282

8383

8484
mkdir -p $SCRIPT_DIR/logs
8585

86-
feature_shell "make -C kmxwasm test-booster TEST_ARGS='$BUG_REPORT' && make -C kmxwasm test-integration TEST_ARGS='$BUG_REPORT' | tee $SCRIPT_DIR/logs/mx-$MX_VERSION-$FEATURE_BRANCH_NAME.log"
86+
feature_shell "(make -C kmxwasm test-booster TEST_ARGS='$BUG_REPORT' && make -C kmxwasm test-integration TEST_ARGS='$BUG_REPORT') | tee $SCRIPT_DIR/logs/mx-$MX_VERSION-$FEATURE_BRANCH_NAME.log"
8787
killall kore-rpc-booster || echo "No zombie processes found"
8888

8989
if [ -z "$BUG_REPORT" ]; then
9090
if [ ! -e "$SCRIPT_DIR/logs/mx-$MX_VERSION-master-$MASTER_COMMIT_SHORT.log" ]; then
91-
master_shell "make -C kmxwasm test-booster && make -C kmxwasm test-integration | tee $SCRIPT_DIR/logs/mx-$MX_VERSION-master-$MASTER_COMMIT_SHORT.log"
91+
master_shell "(make -C kmxwasm test-booster && make -C kmxwasm test-integration) | tee $SCRIPT_DIR/logs/mx-$MX_VERSION-master-$MASTER_COMMIT_SHORT.log"
9292
killall kore-rpc-booster || echo "No zombie processes found"
9393
fi
9494

scripts/run-with-tarball.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -exo pipefail
1414
tarball=${1?"Tarball argument missing"}
1515
shift
1616

17-
tarname=$(basename $tarball)
17+
tarname=$(basename "$tarball")
1818

1919
booster=${BOOSTER:-$(realpath $(dirname $0)/..)}
2020
server=${SERVER:-$booster/.build/kore/bin/kore-rpc-booster}
@@ -49,7 +49,7 @@ trap 'rm -rf "$TEMPD"' EXIT
4949

5050
if [ -z "$DEFINITION" ]; then
5151
# unpack definition file from tarball, into $TEMPD dir
52-
tar xf $tarball -O definition.kore > $TEMPD/definition.kore
52+
tar xf "$tarball" -O definition.kore > $TEMPD/definition.kore
5353
kore=$TEMPD/definition.kore
5454
else
5555
kore=$DEFINITION
@@ -66,7 +66,7 @@ MODULE=$(grep -o -e "^module [A-Z0-9-]*" $kore | tail -1 | sed -e "s/module //")
6666

6767
# build llvm backend unless provided
6868
if [ -z "${LLVM_LIB}" ]; then
69-
tar xf $tarball -O llvm_definition/definition.kore > $TEMPD/llvm-definition.kore
69+
tar xf "$tarball" -O llvm_definition/definition.kore > $TEMPD/llvm-definition.kore
7070

7171
LLVM_DEFINITION_SHA=$(sha1sum $TEMPD/llvm-definition.kore | awk '{ print $1 }')
7272

@@ -135,7 +135,7 @@ server_port=$($LSOF -a -p${server_pid} -sTCP:LISTEN -iTCP | grep ${server_pid} |
135135
echo "Server listening on port ${server_port}"
136136

137137

138-
echo "Running requests from $tarball against the server: $client run-tarball $tarball --keep-going -p ${server_port} -h 127.0.0.1"
139-
$client run-tarball $tarball --keep-going -p ${server_port} -h 127.0.0.1
138+
echo "Running requests from $tarball against the server: $client run-tarball '$tarball' --keep-going -p ${server_port} -h 127.0.0.1"
139+
$client run-tarball "$tarball" --keep-going -p ${server_port} -h 127.0.0.1
140140

141-
echo "Done with $tarball"
141+
echo "Done with '$tarball'"

0 commit comments

Comments
 (0)