Skip to content

Commit

Permalink
Update dependency: deps/k_release (#534)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
	- Updated a key dependency to enhance performance and stability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: devops <[email protected]>
Co-authored-by: Jost Berthold <[email protected]>
  • Loading branch information
3 people authored Mar 24, 2024
1 parent 78c457e commit 99a39cb
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 19 deletions.
2 changes: 1 addition & 1 deletion deps/blockchain-k-plugin_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f27c5ec4861272c1ad4496bc6aab9f47dd6d473a
5aa6993fab90675d971b8b98b3430d11f1ec2a2b
2 changes: 1 addition & 1 deletion deps/k_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.3.23
6.3.58
2 changes: 2 additions & 0 deletions scripts/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ cabal test llvm-integration

# The runDirectoryTest.sh script expects the following env vars to be set
export PLUGIN_DIR=$(nix build github:runtimeverification/blockchain-k-plugin/$PLUGIN_VERSION --no-link --json | jq -r '.[].outputs | to_entries[].value')
export SECP256K1_DIR=$(nix build nixpkgs#secp256k1 --no-link --json | jq -r '.[].outputs | to_entries[].value')

cabal build all
KORE_RPC_BOOSTER=$(cabal exec which kore-rpc-booster)
BOOSTER_DEV=$(cabal exec which booster-dev)
Expand Down
12 changes: 7 additions & 5 deletions test/rpc-integration/resources/foundry-bug-report.kompile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@ set -eux

SCRIPT_DIR=$(dirname $0)
PLUGIN_DIR=${PLUGIN_DIR:-""}

SECP=${SECP256K1_DIR:-/usr}

if [ -z "$PLUGIN_DIR" ]; then
echo "PLUGIN_DIR required to link in a crypto plugin dependency"
exit 1
else
for lib in libff libcryptopp libsecp256k1; do
for lib in libff libcryptopp blake2; do
LIBFILE=$(find ${PLUGIN_DIR} -name "${lib}.a" | head -1)
[ -z "$LIBFILE" ] && (echo "[Error] Unable to locate ${lib}.a"; exit 1)
PLUGIN_LIBS+="$LIBFILE "
PLUGIN_INCLUDE+="-I$(dirname $LIBFILE)/../include "
PLUGIN_INCLUDE+="-I$(dirname $LIBFILE) -I$(dirname $LIBFILE)/../include "
done
#PLUGIN_CPP=$(find ${PLUGIN_DIR}/plugin-c -name "*.cpp")
PLUGIN_CPP="${PLUGIN_DIR}/include/plugin-c/blake2.cpp ${PLUGIN_DIR}/include/plugin-c/crypto.cpp ${PLUGIN_DIR}/include/plugin-c/plugin_util.cpp"
PLUGIN_CPP="${PLUGIN_DIR}/include/plugin-c/crypto.cpp ${PLUGIN_DIR}/include/plugin-c/plugin_util.cpp"
fi

SECP_OPTS="-I${SECP}/include -L${SECP}/lib"

NAME=$(basename ${0%.tar.gz.kompile})
NAMETGZ=$(basename ${0%.kompile})

Expand All @@ -39,7 +41,7 @@ esac
llvm-kompile foundry-bug-report.llvm.kore ./dt c -- \
-fPIC -std=c++17 -o interpreter \
$PLUGIN_LIBS $PLUGIN_INCLUDE $PLUGIN_CPP \
-lcrypto -lssl $LPROCPS
-lcrypto -lssl $LPROCPS ${SECP_OPTS}
mv interpreter.* foundry-bug-report.dylib

# remove temporary artefacts
Expand Down
8 changes: 7 additions & 1 deletion test/rpc-integration/runDirectoryTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ done

# find server port via lsof
server_port=$(lsof -a -p${server_pid} -sTCP:LISTEN -iTCP | grep ${server_pid} | sed -e 's/.* TCP \*:\([0-9]*\).*$/\1/')
echo "Server listening on port ${server_port}"

if [ -z "${server_port}" ]; then
echo "Unable to identify the server, aborting"
exit 4
else
echo "Server listening on port ${server_port}"
fi

client="$client -p ${server_port}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"args": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down Expand Up @@ -62,7 +62,7 @@
"context": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down Expand Up @@ -92,7 +92,7 @@
]
}
],
"error": "Inconsistent pattern. Symbol 'Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort' expected 3 arguments but got 2"
"error": "Inconsistent pattern. Symbol 'Lblite' expected 3 arguments but got 2"
}
],
"message": "Could not verify pattern"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"args": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"args": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"args": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"args": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"args": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"args": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"args": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"args": [
{
"tag": "App",
"name": "Lbl'Hash'if'UndsHash'then'UndsHash'else'UndsHash'fi'Unds'K-EQUAL-SYNTAX'Unds'Sort'Unds'Bool'Unds'Sort'Unds'Sort",
"name": "Lblite",
"sorts": [
{
"tag": "SortApp",
Expand Down

0 comments on commit 99a39cb

Please sign in to comment.