Skip to content

Commit

Permalink
address comments in #555
Browse files Browse the repository at this point in the history
PR: #586
  • Loading branch information
llamb-jump committed Aug 15, 2023
1 parent 1f6a019 commit 3f0e5ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/make_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,10 @@ jobs:

- uses: dtolnay/[email protected]

- uses: ./.github/actions/deps

- name: Build everything
run: ./contrib/make-j

- name: Run
run: ./src/test/frank-single-transaction.sh
22 changes: 4 additions & 18 deletions src/test/frank-single-transaction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,20 @@ cat > ${TMPDIR}/config.toml <<EOM
EOM
export FIREDANCER_CONFIG_TOML=${TMPDIR}/config.toml

# acquire and initialize everything to build
echo y | ./deps.sh
git submodule init
git submodule update

# Make absolutely sure we're working with a clean build directory
# TODO: make clean does not delete everything in the build directory
rm -rf build

# build
./contrib/make-j

# start fddev, send a single transaction, and if everything works return 0
FDDEV=./build/native/gcc/bin/fddev
TEST_QUIC_TXN=$(find -name test_quic_txn -type f -executable)
set +e
# TODO: this is flakey run give it multiple chances
for i in {1..10}; do
sudo /home/runner/firedancer-opts/build/native/gcc/bin/fd_shmem_cfg fini || true
timeout --preserve-status 5 ${FDDEV} &
sudo ./build/native/gcc/bin/fd_shmem_cfg fini || true
timeout --preserve-status 5 ./build/native/gcc/bin/fddev &
FDDEV_PID=$!
sleep 4
sudo nsenter --net=/var/run/netns/veth_test_xdp_1 ${TEST_QUIC_TXN}
sudo nsenter --net=/var/run/netns/veth_test_xdp_1 ./build/native/gcc/unit-test/test_quic_txn
RETVAL=$?
wait $FDDEV_PID
if [ $RETVAL -eq 0 ]; then
exit 0
fi
done

exit 1
exit 1

0 comments on commit 3f0e5ef

Please sign in to comment.