Skip to content

Commit e685980

Browse files
committed
Updates GitHub Actions Data Workflow to Ubuntu 22.04.
1 parent 4eb9713 commit e685980

File tree

7 files changed

+39
-26
lines changed

7 files changed

+39
-26
lines changed

.github/workflows/data_unit_tests.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v4
1515
with:
@@ -23,28 +23,28 @@ jobs:
2323
sudo apt-get install libzmq3-dev libpcap-dev liblog4cxx-dev libblosc-dev libhdf5-dev
2424
- name: Clone Odin-data
2525
run: |
26-
git clone -b 1.8.0 https://github.com/odin-detector/odin-data.git
26+
git clone -b 1.10.1 https://github.com/odin-detector/odin-data.git
2727
- name: Build odin-data
2828
run: |
29-
cd odin-data
29+
cd odin-data/cpp/
3030
echo "INSTALL_PREFIX is ${INSTALL_PREFIX}"
3131
mkdir -p $INSTALL_PREFIX
3232
mkdir build && cd build
3333
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX ..
3434
make install VERBOSE=1
3535
env:
36-
MAKEFLAGS: "-j2"
36+
MAKEFLAGS: "-j4"
3737
- name: Run frame receiver unit tests
3838
env:
3939
INSTALL_PREFIX: ${{ env.INSTALL_PREFIX }}
4040
run: |
41-
cd odin-data/build
41+
cd odin-data/cpp/build
4242
bin/frameReceiverTest
4343
- name: Run frame processor unit tests
4444
env:
4545
INSTALL_PREFIX: ${{ env.INSTALL_PREFIX }}
4646
run: |
47-
cd odin-data/build
47+
cd odin-data/cpp/build
4848
bin/frameProcessorTest
4949
- name: Build hexitec-detector
5050
run: |
@@ -55,13 +55,13 @@ jobs:
5555
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX -DODINDATA_ROOT_DIR=$INSTALL_PREFIX ..
5656
make install VERBOSE=1
5757
env:
58-
MAKEFLAGS: "-j2"
58+
MAKEFLAGS: "-j4"
5959
- name: Run odin-data frame integration test
6060
env:
6161
INSTALL_PREFIX: ${{ env.INSTALL_PREFIX }}
6262
run: |
6363
echo "INSTALL_PREFIX is ${INSTALL_PREFIX}"
64-
cd odin-data/build
64+
cd odin-data/cpp/build
6565
bin/odinDataTest --json=$INSTALL_PREFIX/test_config/hexitec2x6-average.json
6666
echo "Python version:"
6767
python --version

data/test/integrationTest/config/hexitec2x2-average.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@
3737
},
3838
"receiver":
3939
{
40-
"json_file": "${INSTALL_PREFIX}\/test_config\/hexitec2x2-fr.json",
41-
"m": "500000000"
40+
"config": "${INSTALL_PREFIX}\/test_config\/hexitec2x2-fr.json"
4241
},
4342
"processor":
4443
{
45-
"json_file": "${INSTALL_PREFIX}\/test_config\/hexitec2x2-fp-average.json"
44+
"config": "${INSTALL_PREFIX}\/test_config\/hexitec2x2-fp-average.json"
4645
},
4746
"test":
4847
{

data/test/integrationTest/config/hexitec2x6-average.json

+9-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"process": false,
1717
"command": "${INSTALL_PREFIX}\/bin\/frameSimulator",
1818
"pos-args": "Hexitec",
19-
"sleep": 1
19+
"sleep": 10
2020
},
2121
"test": {
2222
"process": false,
@@ -28,24 +28,27 @@
2828
"simulator":
2929
{
3030
"lib-path": "${INSTALL_PREFIX}\/lib",
31-
"frames": "11",
31+
"frames": "10",
3232
"dest-ip": "127.0.0.1",
3333
"ports": "61649",
3434
"pattern-path": "${INSTALL_PREFIX}\/test_config\/patterns\/CSD_2x6_average.json",
3535
"interval": "1",
36+
"packet-gap": 10,
3637
"sensors_layout": "2x6"
3738
},
3839
"receiver":
3940
{
40-
"json_file": "${INSTALL_PREFIX}\/test_config\/hexitec2x6-fr.json",
41-
"m": "500000000"
41+
"config": "${INSTALL_PREFIX}\/test_config\/hexitec2x6-fr.json",
42+
"log-config": "${INSTALL_PREFIX}\/test_config\/fr_log4cxx.xml"
4243
},
4344
"processor":
4445
{
45-
"json_file": "${INSTALL_PREFIX}\/test_config\/hexitec2x6-fp-average.json"
46+
"config": "${INSTALL_PREFIX}\/test_config\/hexitec2x6-fp-average.json",
47+
"log-config": "${INSTALL_PREFIX}\/test_config\/fp_log4cxx.xml"
4648
},
4749
"test":
4850
{
49-
"json": "${INSTALL_PREFIX}\/test_config\/test2x6-average.json"
51+
"json": "${INSTALL_PREFIX}\/test_config\/test2x6-average.json",
52+
"log-config": "${INSTALL_PREFIX}\/test_config\/fs_log4cxx.xml"
5053
}
5154
}

data/test/integrationTest/config/hexitec2x6-fp-average.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"fr_ready_cnxn":"tcp://127.0.0.1:5001",
55
"fr_release_cnxn":"tcp://127.0.0.1:5002"
66
},
7-
"meta_endpoint":"tcp://*:5008"
7+
"meta_endpoint":"tcp://*:5008",
8+
"frames": 10
89
},
910
{
1011
"plugin": {
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
[
22
{
3-
"decoder_type": "Hexitec",
4-
"decoder_path": "${INSTALL_PREFIX}/lib",
5-
"rx_ports": "61649",
6-
"decoder_config": {
7-
"enable_packet_logging": false,
8-
"frame_timeout_ms": 1000,
9-
"fem_port_map": "61649:0",
3+
"frame_ready_endpoint": "tcp://127.0.0.1:5001",
4+
"frame_release_endpoint": "tcp://127.0.0.1:5002",
5+
"decoder_type": "Hexitec",
6+
"decoder_path": "${INSTALL_PREFIX}/lib",
7+
"rx_ports": "61649",
8+
"max_buffer_mem": 500000000,
9+
"decoder_config": {
10+
"enable_packet_logging": false,
11+
"frame_timeout_ms": 1000,
12+
"fem_port_map": "61649:0",
1013
"sensors_layout": "2x6"
11-
}
14+
},
15+
"frames": 10
1216
}
1317
]

data/test/integrationTest/config/patterns/test_2x6_data_1.json

+3
Large diffs are not rendered by default.

data/test/integrationTest/config/patterns/test_2x6_data_2.json

+3
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)