wip
This commit is contained in:
parent
bd3d409f03
commit
5581ac16bd
88
.github/workflows/osrm-backend.yml
vendored
88
.github/workflows/osrm-backend.yml
vendored
@ -707,71 +707,71 @@ 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: |
|
|
||||||
cd base
|
|
||||||
npm ci --ignore-scripts
|
|
||||||
cd ..
|
|
||||||
mkdir base/build
|
|
||||||
cd base/build
|
|
||||||
cmake -DENABLE_CONAN=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_NODE_BINDINGS=ON ..
|
|
||||||
make -j$(nproc)
|
|
||||||
make -j$(nproc) benchmarks
|
|
||||||
cd ..
|
|
||||||
make -C test/data
|
|
||||||
# - name: Build PR Branch
|
|
||||||
# run: |
|
# run: |
|
||||||
# cd pr
|
# cd base
|
||||||
# npm ci --ignore-scripts
|
# npm ci --ignore-scripts
|
||||||
# cd ..
|
# cd ..
|
||||||
# mkdir -p pr/build
|
# mkdir base/build
|
||||||
# cd pr/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
|
||||||
# we run benchmarks in tmpfs to avoid impact of disk IO
|
- name: Build PR Branch
|
||||||
|
run: |
|
||||||
|
cd pr
|
||||||
|
npm ci --ignore-scripts
|
||||||
|
cd ..
|
||||||
|
mkdir -p pr/build
|
||||||
|
cd pr/build
|
||||||
|
cmake -DENABLE_CONAN=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_NODE_BINDINGS=ON ..
|
||||||
|
make -j$(nproc)
|
||||||
|
make -j$(nproc) benchmarks
|
||||||
|
cd ..
|
||||||
|
make -C test/data
|
||||||
|
we run benchmarks in tmpfs to avoid impact of disk IO
|
||||||
- name: Create folder for tmpfs
|
- name: Create folder for tmpfs
|
||||||
run: |
|
run: |
|
||||||
# if by any chance it was mounted before(e.g. due to previous job failed), unmount it
|
# if by any chance it was mounted before(e.g. due to previous job failed), unmount it
|
||||||
sudo umount ~/benchmarks | true
|
sudo umount ~/benchmarks | true
|
||||||
rm -rf ~/benchmarks
|
rm -rf ~/benchmarks
|
||||||
mkdir -p ~/benchmarks
|
mkdir -p ~/benchmarks
|
||||||
# # see https://llvm.org/docs/Benchmarking.html
|
# see https://llvm.org/docs/Benchmarking.html
|
||||||
# - name: Run PR Benchmarks
|
- name: Run PR Benchmarks
|
||||||
# run: |
|
|
||||||
# sudo cset shield -c 2-3 -k on
|
|
||||||
# sudo mount -t tmpfs -o size=4g none ~/benchmarks
|
|
||||||
# cp -rf pr/build ~/benchmarks/build
|
|
||||||
# cp -rf pr/lib ~/benchmarks/lib
|
|
||||||
# mkdir -p ~/benchmarks/test
|
|
||||||
# cp -rf pr/test/data ~/benchmarks/test/data
|
|
||||||
# cp -rf pr/profiles ~/benchmarks/profiles
|
|
||||||
|
|
||||||
# ls ~/benchmarks/test/data
|
|
||||||
|
|
||||||
# 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 cset shield --reset
|
|
||||||
- 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 pr/build ~/benchmarks/build
|
||||||
cp -rf base/lib ~/benchmarks/lib
|
cp -rf pr/lib ~/benchmarks/lib
|
||||||
mkdir -p ~/benchmarks/test
|
mkdir -p ~/benchmarks/test
|
||||||
cp -rf base/test/data ~/benchmarks/test/data
|
cp -rf pr/test/data ~/benchmarks/test/data
|
||||||
cp -rf base/profiles ~/benchmarks/profiles
|
cp -rf pr/profiles ~/benchmarks/profiles
|
||||||
|
|
||||||
# TODO: remove it when base branch will have this file at needed location
|
ls ~/benchmarks/test/data
|
||||||
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
|
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
|
||||||
fi
|
|
||||||
# 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 umount ~/benchmarks
|
sudo umount ~/benchmarks
|
||||||
sudo cset shield --reset
|
sudo cset shield --reset
|
||||||
|
# - name: Run Base Benchmarks
|
||||||
|
# run: |
|
||||||
|
# sudo cset shield -c 2-3 -k on
|
||||||
|
# sudo mount -t tmpfs -o size=4g none ~/benchmarks
|
||||||
|
# cp -rf base/build ~/benchmarks/build
|
||||||
|
# cp -rf base/lib ~/benchmarks/lib
|
||||||
|
# mkdir -p ~/benchmarks/test
|
||||||
|
# cp -rf base/test/data ~/benchmarks/test/data
|
||||||
|
# cp -rf base/profiles ~/benchmarks/profiles
|
||||||
|
|
||||||
|
# # TODO: remove it when base branch will have this file at needed location
|
||||||
|
# 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
|
||||||
|
# fi
|
||||||
|
# # 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 umount ~/benchmarks
|
||||||
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user