ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
19 stars 14 forks source link

[Foxx,CI] Foxx api tests are not running in the CI pipelines #1031

Open JoshuaSBrown opened 3 weeks ago

JoshuaSBrown commented 3 weeks ago

Description

CI pipelines are not currently running any tests after the foxx api has been uploaded. We need some way of triggering the tests.

Current contents of CI pipeline.

ssh ci-datafed-client
sudo su gitlab-runner
gitlab-runner@ci-datafed-client:~/builds/gYxDkX87B/0/dlsw/datafed/datafed$ bash
gitlab-runner@ci-datafed-client:~/builds/gYxDkX87B/0/dlsw/datafed/datafed$ ls
CHANGELOG.md  CMakeLists.txt  LICENSE.md  README.md  cmake  common  compose  config  core  doc_source  docker  docs  docs_other  env_file  external  facility  jupyter_notebooks  python  repository  run_foxx.sh  scripts  setup  setup_condo.sh  test  tests  web
gitlab-runner@ci-datafed-client:~/builds/gYxDkX87B/0/dlsw/datafed/datafed$ vim run_foxx.sh
gitlab-runner@ci-datafed-client:~/builds/gYxDkX87B/0/dlsw/datafed/datafed$ docker ps
CONTAINER ID   IMAGE                                       COMMAND                  CREATED         STATUS         PORTS     NAMES
f00e5563902e   camden.ornl.gov/datafed/foxx-devel:latest   "/bin/bash -c /dataf…"   2 minutes ago   Up 2 minutes             foxx-devel-abd1ff50-FhGNwkjyGz
gitlab-runner@ci-datafed-client:~/builds/gYxDkX87B/0/dlsw/datafed/datafed$ docker exec -it f00e5563902e  /bin/bash
root@f00e5563902e:/datafed/source# env | grep ENABLE
root@f00e5563902e:/datafed/source# ls
CMakeLists.txt  Release.key  build  cmake  common  config  core  docker  external  logs  repository  scripts  tmp  web
root@f00e5563902e:/datafed/source# cd build/
root@f00e5563902e:/datafed/source/build# cat CMakeCache.txt | grep ENABLE
ENABLE_END_TO_END_API_TESTS:BOOL=OFF
ENABLE_END_TO_END_WEB_TESTS:BOOL=OFF
ENABLE_UNIT_TESTS:BOOL=ON

Here you see it is not showing up in the CMakeCache.txt file in foxx container.

JoshuaSBrown commented 2 weeks ago

Acceptance