5110803102
Adds new method Exists which can be used to verify which requested piece ids exists on storage node. Will verify only pieces which belongs to the satellite that used that endpoint. Minum WASM size was increased a bit. https://github.com/storj/storj/issues/5415 Change-Id: Ia5f9cadeb526541b2776a8973eb7d50133ad8636
20 lines
486 B
Bash
Executable File
20 lines
486 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ueo pipefail
|
|
set +x
|
|
|
|
cleanup(){
|
|
rm main.wasm
|
|
echo "cleaned up test successfully"
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
cd satellite/console/wasm && pwd && GOOS=js GOARCH=wasm go build -o main.wasm .
|
|
BUILD_SIZE=$(stat -c %s main.wasm)
|
|
CURRENT_SIZE=10009000
|
|
if [ $BUILD_SIZE -gt $CURRENT_SIZE ]; then
|
|
echo "Wasm size is too big, was $CURRENT_SIZE but now it is $BUILD_SIZE"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Wasm size did not increase and it is $BUILD_SIZE (limit: $CURRENT_SIZE)"
|