Skip to content

Commit 5581ac1

Browse files
wip
1 parent bd3d409 commit 5581ac1

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

.github/workflows/osrm-backend.yml

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -707,71 +707,71 @@ jobs:
707707
with:
708708
ref: ${{ github.event.pull_request.base.ref }}
709709
path: base
710-
- name: Build Base Branch
711-
run: |
712-
cd base
713-
npm ci --ignore-scripts
714-
cd ..
715-
mkdir base/build
716-
cd base/build
717-
cmake -DENABLE_CONAN=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_NODE_BINDINGS=ON ..
718-
make -j$(nproc)
719-
make -j$(nproc) benchmarks
720-
cd ..
721-
make -C test/data
722-
# - name: Build PR Branch
710+
# - name: Build Base Branch
723711
# run: |
724-
# cd pr
712+
# cd base
725713
# npm ci --ignore-scripts
726714
# cd ..
727-
# mkdir -p pr/build
728-
# cd pr/build
715+
# mkdir base/build
716+
# cd base/build
729717
# cmake -DENABLE_CONAN=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_NODE_BINDINGS=ON ..
730-
# make -j$(nproc)
718+
# make -j$(nproc)
731719
# make -j$(nproc) benchmarks
732720
# cd ..
733721
# make -C test/data
734-
# we run benchmarks in tmpfs to avoid impact of disk IO
722+
- name: Build PR Branch
723+
run: |
724+
cd pr
725+
npm ci --ignore-scripts
726+
cd ..
727+
mkdir -p pr/build
728+
cd pr/build
729+
cmake -DENABLE_CONAN=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_NODE_BINDINGS=ON ..
730+
make -j$(nproc)
731+
make -j$(nproc) benchmarks
732+
cd ..
733+
make -C test/data
734+
we run benchmarks in tmpfs to avoid impact of disk IO
735735
- name: Create folder for tmpfs
736736
run: |
737737
# if by any chance it was mounted before(e.g. due to previous job failed), unmount it
738738
sudo umount ~/benchmarks | true
739739
rm -rf ~/benchmarks
740740
mkdir -p ~/benchmarks
741-
# # see https://llvm.org/docs/Benchmarking.html
742-
# - name: Run PR Benchmarks
743-
# run: |
744-
# sudo cset shield -c 2-3 -k on
745-
# sudo mount -t tmpfs -o size=4g none ~/benchmarks
746-
# cp -rf pr/build ~/benchmarks/build
747-
# cp -rf pr/lib ~/benchmarks/lib
748-
# mkdir -p ~/benchmarks/test
749-
# cp -rf pr/test/data ~/benchmarks/test/data
750-
# cp -rf pr/profiles ~/benchmarks/profiles
751-
752-
# ls ~/benchmarks/test/data
753-
754-
# 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
755-
# sudo umount ~/benchmarks
756-
# sudo cset shield --reset
757-
- name: Run Base Benchmarks
741+
# see https://llvm.org/docs/Benchmarking.html
742+
- name: Run PR Benchmarks
758743
run: |
759744
sudo cset shield -c 2-3 -k on
760745
sudo mount -t tmpfs -o size=4g none ~/benchmarks
761-
cp -rf base/build ~/benchmarks/build
762-
cp -rf base/lib ~/benchmarks/lib
746+
cp -rf pr/build ~/benchmarks/build
747+
cp -rf pr/lib ~/benchmarks/lib
763748
mkdir -p ~/benchmarks/test
764-
cp -rf base/test/data ~/benchmarks/test/data
765-
cp -rf base/profiles ~/benchmarks/profiles
749+
cp -rf pr/test/data ~/benchmarks/test/data
750+
cp -rf pr/profiles ~/benchmarks/profiles
766751
767-
# TODO: remove it when base branch will have this file at needed location
768-
if [ ! -f ~/benchmarks/test/data/portugal_to_korea.json ]; then
769-
cp base/src/benchmarks/portugal_to_korea.json ~/benchmarks/test/data/portugal_to_korea.json
770-
fi
771-
# we intentionally use scripts from PR branch to be able to update them and see results in the same PR
772-
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
752+
ls ~/benchmarks/test/data
753+
754+
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
773755
sudo umount ~/benchmarks
774756
sudo cset shield --reset
757+
# - name: Run Base Benchmarks
758+
# run: |
759+
# sudo cset shield -c 2-3 -k on
760+
# sudo mount -t tmpfs -o size=4g none ~/benchmarks
761+
# cp -rf base/build ~/benchmarks/build
762+
# cp -rf base/lib ~/benchmarks/lib
763+
# mkdir -p ~/benchmarks/test
764+
# cp -rf base/test/data ~/benchmarks/test/data
765+
# cp -rf base/profiles ~/benchmarks/profiles
766+
767+
# # TODO: remove it when base branch will have this file at needed location
768+
# if [ ! -f ~/benchmarks/test/data/portugal_to_korea.json ]; then
769+
# cp base/src/benchmarks/portugal_to_korea.json ~/benchmarks/test/data/portugal_to_korea.json
770+
# fi
771+
# # we intentionally use scripts from PR branch to be able to update them and see results in the same PR
772+
# 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
773+
# sudo umount ~/benchmarks
774+
# sudo cset shield --reset
775775
# - name: Post Benchmark Results
776776
# run: |
777777
# python3 pr/scripts/ci/post_benchmark_results.py base_results pr_results

0 commit comments

Comments
 (0)