Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions yarn-project/end-to-end/scripts/network_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ if [ "$FRESH_INSTALL" = "true" ]; then
kubectl delete namespace "$NAMESPACE" --ignore-not-found=true --wait=true --now --timeout=10m
fi

STERN_PID=""
# STERN_PID=""
function copy_stern_to_log() {
ulimit -n 4096
stern spartan -n $NAMESPACE > $SCRIPT_DIR/network-test.log &
STERN_PID=$!
# TODO(AD) we need to figure out a less resource intensive solution than stern
# ulimit -n 4096
# stern spartan -n $NAMESPACE > $SCRIPT_DIR/network-test.log &
echo "disabled until less resource intensive solution than stern implemented" > $SCRIPT_DIR/network-test.log &
# STERN_PID=$!
}

function show_status_until_pxe_ready() {
Expand Down Expand Up @@ -113,7 +115,7 @@ show_status_until_pxe_ready &

function cleanup() {
# kill everything in our process group except our process
trap - SIGTERM && kill -9 $(pgrep -g $$ | grep -v $$) $(jobs -p) $STERN_PID &>/dev/null || true
trap - SIGTERM && kill -9 $(pgrep -g $$ | grep -v $$) $(jobs -p) &>/dev/null || true

if [ "$CLEANUP_CLUSTER" = "true" ]; then
kind delete cluster || true
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/end-to-end/src/spartan/gating-passive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ describe('a test that passively observes the network in the presence of network

const ETHEREUM_HOST = `http://127.0.0.1:${HOST_ETHEREUM_PORT}`;
const PXE_URL = `http://127.0.0.1:${HOST_PXE_PORT}`;
// 50% is the max that we expect to miss
const MAX_MISSED_SLOT_PERCENT = 0.5;
// 60% is the max that we expect to miss
const MAX_MISSED_SLOT_PERCENT = 0.6;

afterAll(async () => {
await runAlertCheck(config, qosAlerts, debugLogger);
Expand Down