Skip to content

Commit

Permalink
Some misc changes to the artefact scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Jan 31, 2024
1 parent 965d7c6 commit 2030e16
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
5 changes: 3 additions & 2 deletions artefact/bulk_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ TOOL=$3

# The tested limit was 2^26kB 67_108_864kB ~ 67GB
if [[ -z "${MEMORY_LIMIT}" ]]; then
echo "Please set env. variable MEMORY_LIMIT appropriate for your system (number, in kB)."
>&2 echo " !!! Please set env. variable MEMORY_LIMIT appropriate for your system (number, in kB)."
exit 1
fi

ulimit -v $MEMORY_LIMIT

for MODEL in `ls $MODEL_DIR | grep "\.bnet"`
do
>&2 echo "$TOOL $MODEL_DIR/$MODEL"
timeout $TIMEOUT ./env/bin/python3 $TOOL $MODEL_DIR/$MODEL
ret=$?
# 124 is the return code for timeout.
if [ $ret -eq 124 ]; then
echo -e "$MODEL_DIR/$MODEL\tTIMEOUT"
echo -e "$MODEL\ tTIMEOUT"
fi
# Properly exit the loop if Ctrl+C is pressed.
trap 'exit 2' SIGINT
Expand Down
2 changes: 1 addition & 1 deletion artefact/bulk_bench_attr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -x

mkdir -p ./results/attr/

echo "model elapsed attractors" > ./results/attr/bbm_aeon.tsv
echo -e "model\telapsed\tattractors" > ./results/attr/bbm_aeon.tsv
./bulk_bench.sh ./models/bbm-bnet-inputs-random-128 1h ./bench/attr-aeon.py >> ./results/attr/bbm_aeon.tsv
trap 'exit 2' SIGINT
15 changes: 12 additions & 3 deletions artefact/env_check.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@ PYTHON=./env/bin/python3

# Check that necessary system dependencies are present.

echo " > Checking 'clingo'"
clingo --version > /dev/null
ret=$?
if [ $ret -ne 0 ]; then
echo "Missing 'clingo'. Maybe run 'apt install gringo'?"
exit 1
fi

$PYTHON bench/aeon-attractors.py 1 1 ./models/bbm/005.bnet
echo " > Checking 'mole'"
mole &> /dev/null
ret=$?
if [ $ret -ne 1 ]; then
echo "Missing 'mole'. Forgot to add ./dependencies/mole-140428 to PATH?"
exit 1
fi

echo " > Checking 'AEON.py'"
$PYTHON ./bench/attr-aeon.py ./models/bbm-bnet-inputs-random-128/005.bnet > /dev/null
ret=$?
if [ $ret -ne 0 ]; then
echo "Error running tsconj. Installation failed?"
echo "Error running AEON. Installation failed?"
exit 1
fi

echo
echo
echo " >> Everything seems to be in order."
File renamed without changes.
2 changes: 1 addition & 1 deletion artefact/env_setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PIP=./env/bin/pip3

# Install fixed versions of relevant dependencies
# to aid reproducibility.
$PIP install -r ./dependencies/requirements.txt
$PIP install -r ./requirements.txt

# Install AEON
$PIP install biodivine_aeon==0.2.0a4
Expand Down

1 comment on commit 2030e16

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
nfvsmotifs
   SuccessionDiagram.py154497%6–7, 208, 452
   control.py1201389%47, 56, 60, 66, 80, 89–105, 319, 334
   interaction_graph_utils.py142894%6–9, 57, 70, 95–96
   motif_avoidant.py163696%23–24, 130, 147, 184, 309
   petri_net_translation.py84693%23–24, 52, 63–64, 94
   pyeda_utils.py953464%12, 56–66, 90, 95, 98–112, 140–144
   space_utils.py118596%15–16, 198, 213, 270
   state_utils.py681282%15, 55–66, 98, 105, 114
   terminal_restriction_space.py44393%6–7, 80
   trappist_core.py1862089%10–11, 39, 41, 81, 127, 192, 194, 196, 231–233, 259, 317, 319, 349, 389, 391, 422, 451
nfvsmotifs/FVSpython3
   FVS.py481079%90–91, 97, 133, 183–189
   FVS_localsearch_10_python.py90199%179
nfvsmotifs/_sd_algorithms
   compute_attractor_seeds.py29197%6
   expand_attractor_seeds.py51492%6, 95–100
   expand_bfs.py28196%6
   expand_dfs.py30197%6
   expand_minimal_spaces.py37197%6
   expand_to_target.py30390%6, 37, 42
TOTAL161413392% 

Tests Skipped Failures Errors Time
360 0 💤 0 ❌ 0 🔥 3m 11s ⏱️

Please sign in to comment.