Skip to content

Commit 3137229

Browse files
committed
FST: Allow overriding session, use random session/channel name to allow 2 parallel reconstructions
1 parent 0f6e86c commit 3137229

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

prodtests/full-system-test/datadistribution.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [[ $NTIMEFRAMES != -1 ]]; then
3232
fi
3333
export TFRATE=$(awk "BEGIN {printf \"%.6f\",1/$TFDELAY}")
3434

35-
ARGS_ALL="--session default --severity $SEVERITY --shm-segment-id 2 --shm-segment-size 1000000 --no-cleanup"
35+
ARGS_ALL="--session ${OVERRIDE_SESSION:-default} --severity $SEVERITY --shm-segment-id 2 --shm-segment-size 1000000 --no-cleanup"
3636

3737
eval StfBuilder --id stfb --transport shmem \
3838
--dpl-channel-name dpl-chan --channel-config "name=dpl-chan,type=push,method=bind,address=ipc://@$INRAWCHANNAME,transport=shmem,rateLogging=1" \

prodtests/full-system-test/dpl-workflow.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fi
6363

6464
# ---------------------------------------------------------------------------------------------------------------------
6565
# Set general arguments
66-
ARGS_ALL="--session default --severity $SEVERITY --shm-segment-id $NUMAID --shm-segment-size $SHMSIZE $ARGS_ALL_EXTRA --early-forward-policy noraw"
66+
ARGS_ALL="--session ${OVERRIDE_SESSION:-default} --severity $SEVERITY --shm-segment-id $NUMAID --shm-segment-size $SHMSIZE $ARGS_ALL_EXTRA --early-forward-policy noraw"
6767
if [ $EPNMODE == 1 ]; then
6868
ARGS_ALL+=" --infologger-severity $INFOLOGGER_SEVERITY"
6969
ARGS_ALL+=" --monitoring-backend influxdb-unix:///tmp/telegraf.sock --resources-monitoring 15"

prodtests/full-system-test/raw-reader.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fi
88
MYDIR="$(dirname $(readlink -f $0))"
99
source $MYDIR/setenv.sh
1010

11-
ARGS_ALL="--session default --shm-throw-bad-alloc 0 --no-cleanup"
11+
ARGS_ALL="--session ${OVERRIDE_SESSION:-default} --shm-throw-bad-alloc 0 --no-cleanup"
1212
if [ $NUMAGPUIDS == 1 ]; then
1313
TMPSIZE=$(expr $DDSHMSIZE \* 1024 \* 1024)
1414
ARGS_ALL+=" --shm-segment-id 2 --shm-segment-size $TMPSIZE --shm-mlock-segment 1 --shm-zero-segment 1"

prodtests/full-system-test/run-workflow-on-inputlist.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ NUM_PROCS=0
2121
RETVAL=0
2222
START_TIME=`date +%s`
2323
LOG_PREFIX="log_$(date +%Y%m%d-%H%M%S)_"
24-
if [ $2 != "LOCAL" ]; then
25-
export INPUT_FILE_LIST=$2
26-
fi
24+
[[ $2 != "LOCAL" ]] && export INPUT_FILE_LIST=$2
25+
[[ -z $OVERRIDE_SESSION ]] && export OVERRIDE_SESSION=default_$$_$RANDOM
26+
[[ -z $INRAWCHANNAME ]] && export INRAWCHANNAME=tf-builder-$$-$RANDOM
2727

2828
rm -f ${LOG_PREFIX}*.log /dev/shm/*fmq*
2929
if [[ `ls /dev/shm/*fmq* 2> /dev/null | wc -l` != "0" ]]; then
@@ -68,6 +68,7 @@ fi
6868
start_process $MYDIR/dpl-workflow.sh
6969

7070
if [[ "0$4" != "00" ]]; then
71+
sleep 1
7172
tail -f ${LOG_PREFIX}*.log &
7273
PID_LOG=$!
7374
fi

0 commit comments

Comments
 (0)