wip
This commit is contained in:
parent
9c6a78e865
commit
cf4f04d08f
64
.github/workflows/osrm-backend.yml
vendored
64
.github/workflows/osrm-backend.yml
vendored
@ -707,18 +707,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.base.ref }}
|
ref: ${{ github.event.pull_request.base.ref }}
|
||||||
path: base
|
path: base
|
||||||
# - name: Build Base Branch
|
- name: Build Base Branch
|
||||||
# run: |
|
run: |
|
||||||
# cd base
|
cd base
|
||||||
# npm ci --ignore-scripts
|
npm ci --ignore-scripts
|
||||||
# cd ..
|
cd ..
|
||||||
# mkdir base/build
|
mkdir base/build
|
||||||
# cd base/build
|
cd base/build
|
||||||
# cmake -DENABLE_CONAN=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_NODE_BINDINGS=ON ..
|
cmake -DENABLE_CONAN=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_NODE_BINDINGS=ON ..
|
||||||
# make -j$(nproc)
|
make -j$(nproc)
|
||||||
# make -j$(nproc) benchmarks
|
make -j$(nproc) benchmarks
|
||||||
# cd ..
|
cd ..
|
||||||
# make -C test/data
|
make -C test/data
|
||||||
- name: Build PR Branch
|
- name: Build PR Branch
|
||||||
run: |
|
run: |
|
||||||
cd pr
|
cd pr
|
||||||
@ -752,27 +752,27 @@ jobs:
|
|||||||
sudo cset shield --exec -- ./pr/scripts/ci/run_benchmarks.sh -f ~/benchmarks -r $(pwd)/pr_results -s $(pwd)/pr -b ~/benchmarks/build -o ~/data.osm.pbf -g ~/gps_traces.csv
|
sudo cset shield --exec -- ./pr/scripts/ci/run_benchmarks.sh -f ~/benchmarks -r $(pwd)/pr_results -s $(pwd)/pr -b ~/benchmarks/build -o ~/data.osm.pbf -g ~/gps_traces.csv
|
||||||
sudo umount ~/benchmarks
|
sudo umount ~/benchmarks
|
||||||
sudo cset shield --reset
|
sudo cset shield --reset
|
||||||
# - name: Run Base Benchmarks
|
- name: Run Base Benchmarks
|
||||||
# run: |
|
run: |
|
||||||
# sudo cset shield -c 2-3 -k on
|
sudo cset shield -c 2-3 -k on
|
||||||
# sudo mount -t tmpfs -o size=4g none ~/benchmarks
|
sudo mount -t tmpfs -o size=4g none ~/benchmarks
|
||||||
# cp -rf base/build ~/benchmarks/build
|
cp -rf base/build ~/benchmarks/build
|
||||||
# cp -rf base/lib ~/benchmarks/lib
|
cp -rf base/lib ~/benchmarks/lib
|
||||||
# mkdir -p ~/benchmarks/test
|
mkdir -p ~/benchmarks/test
|
||||||
# cp -rf base/test/data ~/benchmarks/test/data
|
cp -rf base/test/data ~/benchmarks/test/data
|
||||||
# cp -rf base/profiles ~/benchmarks/profiles
|
cp -rf base/profiles ~/benchmarks/profiles
|
||||||
|
|
||||||
# # TODO: remove it when base branch will have this file at needed location
|
# TODO: remove it when base branch will have this file at needed location
|
||||||
# if [ ! -f ~/benchmarks/test/data/portugal_to_korea.json ]; then
|
if [ ! -f ~/benchmarks/test/data/portugal_to_korea.json ]; then
|
||||||
# cp base/src/benchmarks/portugal_to_korea.json ~/benchmarks/test/data/portugal_to_korea.json
|
cp base/src/benchmarks/portugal_to_korea.json ~/benchmarks/test/data/portugal_to_korea.json
|
||||||
# fi
|
fi
|
||||||
# # we intentionally use scripts from PR branch to be able to update them and see results in the same PR
|
# we intentionally use scripts from PR branch to be able to update them and see results in the same PR
|
||||||
# sudo cset shield --exec -- cset shield --exec -- ./pr/scripts/ci/run_benchmarks.sh -f ~/benchmarks -r $(pwd)/base_results -s $(pwd)/pr -b ~/benchmarks/build -o ~/data.osm.pbf -g ~/gps_traces.csv
|
sudo cset shield --exec -- cset shield --exec -- ./pr/scripts/ci/run_benchmarks.sh -f ~/benchmarks -r $(pwd)/base_results -s $(pwd)/pr -b ~/benchmarks/build -o ~/data.osm.pbf -g ~/gps_traces.csv
|
||||||
# sudo umount ~/benchmarks
|
sudo umount ~/benchmarks
|
||||||
# sudo cset shield --reset
|
sudo cset shield --reset
|
||||||
# - name: Post Benchmark Results
|
- name: Post Benchmark Results
|
||||||
# run: |
|
run: |
|
||||||
# python3 pr/scripts/ci/post_benchmark_results.py base_results pr_results
|
python3 pr/scripts/ci/post_benchmark_results.py base_results pr_results
|
||||||
- name: Show CCache statistics
|
- name: Show CCache statistics
|
||||||
run: |
|
run: |
|
||||||
ccache -p
|
ccache -p
|
||||||
|
Loading…
Reference in New Issue
Block a user