Skip to content

Commit

Permalink
tests(dist): attempt to fix dist-test build
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Apr 8, 2024
1 parent 7ad4144 commit 63d533b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ jobs:
- name: "Build tests"
run: ./bin/inv_wrapper.sh dev.cc faabric_tests
- name: "Run tests"
run: ./bin/inv_wrapper.sh tests
run: ./bin/inv_wrapper.sh tests --debug
timeout-minutes: 15

dist-tests:
if: github.event.pull_request.draft == false
Expand All @@ -138,6 +139,7 @@ jobs:
run: ./dist-test/build.sh
- name: "Run the distributed tests"
run: ./dist-test/run.sh
timeout-minutes: 15
- name: "Print planner logs"
if: always()
run: docker compose logs planner
Expand Down
2 changes: 1 addition & 1 deletion dist-test/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export PROJ_ROOT=$(dirname $(dirname $(readlink -f $0)))
pushd ${PROJ_ROOT} >> /dev/null

# Run the build
export FAABRIC_DEPLOYMENT_TYPE=gha-ci
docker compose \
run \
-e FAABRIC_DEPLOYMENT_TYPE=gha-ci \
--rm \
cli \
/code/faabric/dist-test/build_internal.sh
Expand Down
2 changes: 1 addition & 1 deletion dist-test/build_internal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pushd ${PROJ_ROOT} >> /dev/null
source ./bin/workon.sh

# Run the debug build
inv dev.cmake --build=Debug
inv dev.cmake --build=Debug --clean
inv dev.cc faabric_dist_tests
inv dev.cc faabric_dist_test_server
inv dev.cc planner_server
Expand Down
3 changes: 2 additions & 1 deletion tests/dist/dist_test_fixtures.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ class MpiDistTestsFixture : public DistTestsFixture
while (batchResults->messageresults_size() != worldSize) {
if (numRetries >= maxRetries) {
SPDLOG_ERROR(
"Timed-out waiting for MPI messages results ({}/{})",
"Timed-out waiting for MPI messages results (app: {}, {}/{})",
req->appid(),
batchResults->messageresults_size(),
worldSize);
throw std::runtime_error("Timed-out waiting for MPI messges");
Expand Down

0 comments on commit 63d533b

Please sign in to comment.