Skip to content

Commit

Permalink
add a step to run cachebench as a test for all github actions
Browse files Browse the repository at this point in the history
Summary:
As discovered in #267, current workflow cannot detect
runtime link error. This change adds the step to run a cachebench with simple configuration as a
test for the build.

Reviewed By: therealgymmy

Differential Revision: D50667376

fbshipit-source-id: f19ebcdfb894ef43e7286dc3565ae8e00c1b1a03
  • Loading branch information
Jaesoo Lee authored and facebook-github-bot committed Nov 20, 2023
1 parent 50a456d commit ea810d0
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-centos-8-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d)
run: ./contrib/build-package.sh -j -v -i -d cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-centos-8-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d)
run: ./contrib/build-package.sh -j -v -i -d cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-centos-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d)
run: ./contrib/build-package.sh -j -v -i -d cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-debian-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d)
run: ./contrib/build-package.sh -j -v -i -d cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-fedora-36.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d)
run: ./contrib/build-package.sh -j -v -i -d cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-rockylinux-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d)
run: ./contrib/build-package.sh -j -v -i -d cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-rockylinux-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d)
run: ./contrib/build-package.sh -j -v -i -d cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-ubuntu-18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d)
run: ./contrib/build-package.sh -j -v -i cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-ubuntu-20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d)
run: ./contrib/build-package.sh -j -v -i cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-cachelib-ubuntu-22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
- name: "build CacheLib"
# Build cachelib in debug mode (-d) and with all tests (-t)
run: ./contrib/build-package.sh -j -v -i -d -t cachelib
- name: "run cachebench"
run: ./opt/cachelib/bin/cachebench --json_test_config ./opt/cachelib/test_configs/simple_test.json
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down

0 comments on commit ea810d0

Please sign in to comment.