Skip to content

Commit da57109

Browse files
committed
Update CI config
1 parent 3d248a0 commit da57109

File tree

4 files changed

+67
-6
lines changed

4 files changed

+67
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,42 @@ name: Deploy
33
on: [push, workflow_dispatch]
44

55
jobs:
6+
build-launcher-22:
7+
runs-on: ubuntu-22.04
8+
strategy:
9+
matrix:
10+
python-version: [ "3.8" ]
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
sudo sysctl kernel.unprivileged_userns_clone=1
20+
sudo sysctl -w user.max_user_namespaces=10000
21+
sudo apt update
22+
sudo apt install -y openjdk-17-jdk
23+
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1
24+
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-17-openjdk-amd64/bin/javac 1
25+
sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java
26+
sudo update-alternatives --set javac /usr/lib/jvm/java-17-openjdk-amd64/bin/javac
27+
java -version
28+
javac -version
29+
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64" >> $GITHUB_ENV
30+
echo $JAVA_HOME
31+
python3 -m pip install --upgrade pip
32+
pip3 install -r requirements.txt
33+
- name: Deployment of CV
34+
run: |
35+
DEPLOY_DIR=build make install -j$(nproc)
36+
DEPLOY_DIR=build make install-cif-compiled -j$(nproc)
37+
cp -r docs/examples/sources/ build/
38+
cd build
39+
python3 ./scripts/launch.py -c configs/it.json
40+
grep "it;smg;no_memory_leak_caller;TRUE;SUCCESS" results/report_launches_it_*.csv || exit 1
41+
grep "it;smg;memory_leak_caller;FALSE;SUCCESS" results/report_launches_it_*.csv || exit 1
642
build-launcher:
743
runs-on: ubuntu-latest
844
strategy:
@@ -16,15 +52,20 @@ jobs:
1652
python-version: ${{ matrix.python-version }}
1753
- name: Install dependencies
1854
run: |
55+
sudo sysctl kernel.unprivileged_userns_clone=1
56+
sudo sysctl -w user.max_user_namespaces=10000
57+
sudo apt update
58+
sudo apt install -y openjdk-17-jdk
1959
python3 -m pip install --upgrade pip
20-
pip3 install requests ujson graphviz ply pytest atomicwrites more-itertools pluggy py attrs setuptools six django psycopg2 clade pyyaml pycparser sympy
60+
pip3 install -r requirements.txt
2161
- name: Deployment of CV
2262
run: |
2363
DEPLOY_DIR=build make install -j$(nproc)
2464
DEPLOY_DIR=build make install-cif-compiled -j$(nproc)
2565
cp -r docs/examples/sources/ build/
2666
cd build
2767
python3 ./scripts/launch.py -c configs/it.json
68+
cat results/report_launches_it_*.csv
2869
grep "it;smg;no_memory_leak_caller;TRUE;SUCCESS" results/report_launches_it_*.csv || exit 1
2970
grep "it;smg;memory_leak_caller;FALSE;SUCCESS" results/report_launches_it_*.csv || exit 1
3071
build-visualizer:
@@ -41,7 +82,7 @@ jobs:
4182
- name: Install dependencies
4283
run: |
4384
python3 -m pip install --upgrade pip
44-
pip3 install requests ujson graphviz ply pytest atomicwrites more-itertools pluggy py attrs setuptools six django psycopg2 pycparser sympy
85+
pip3 install -r requirements.txt
4586
- name: Deployment of Benchmark Visualizer
4687
run: |
4788
DEPLOY_DIR=build make install-benchmark-visualizer -j$(nproc)
@@ -62,7 +103,7 @@ jobs:
62103
- name: Install dependencies
63104
run: |
64105
python3 -m pip install --upgrade pip
65-
pip3 install requests ujson graphviz ply pytest atomicwrites more-itertools pluggy py attrs setuptools six django psycopg2 pycparser sympy
106+
pip3 install -r requirements.txt
66107
- name: Deployment of MEA
67108
run: |
68109
DEPLOY_DIR=build make install-mea -j$(nproc)

cpa.config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# CPAchecker tools specified in the following format:
22
# mode;repository;branch;[revision]
33

4-
unreach;https://gitlab.ispras.ru/verification/cpachecker;smg-master;
5-
sync;https://gitlab.ispras.ru/verification/cpachecker;cpalockator-master;
4+
unreach;https://gitlab.ispras.ru/verification/cpachecker;smg-master;

requirements.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Core dependencies
2+
requests
3+
ujson
4+
graphviz
5+
ply
6+
pytest
7+
atomicwrites
8+
pathlib2
9+
more-itertools
10+
pluggy
11+
py
12+
attrs
13+
setuptools
14+
six
15+
django
16+
pyyaml
17+
pycparser
18+
sympy
19+
20+
# Specific versions
21+
clade==3.6

scripts/components/full_launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def local_launch(self, launch: VerificationTask, benchmark, queue):
207207
os.chdir(launch_directory)
208208

209209
# Verifier launch.
210-
subprocess.check_call(f"benchexec --no-compress-results --container --full-access-dir / -o "
210+
subprocess.check_call(f"benchexec --no-compress-results --container --read-only-dir / -o "
211211
f"{launch_directory} {benchmark_name} {self.benchmark_args}",
212212
shell=True, stderr=self.output_desc, stdout=self.output_desc)
213213

0 commit comments

Comments
 (0)