Skip to content

Commit

Permalink
try to find ICD-RxJS folder and mount local images folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ajm-asiaa committed Dec 12, 2023
1 parent f2be9b8 commit caf62bf
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/icd_tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,15 @@ jobs:
shell: bash
run: |
BUILD_DIR=$GITHUB_WORKSPACE/build-${{ matrix.os_version }}
ICD_RXJS_DIR=$BUILD_DIR/ICD-RxJS
apptainer exec --bind $GITHUB_WORKSPACE:$GITHUB_WORKSPACE --pwd $BUILD_DIR ${{ matrix.image }} /bin/bash -c "\
git clone https://github.com/CARTAvis/ICD-RxJS.git && \
cd ICD-RxJS && \
if [ -d '$ICD_RXJS_DIR' ]; then
cd $ICD_RXJS_DIR && git pull
else
echo 'Cloning ICD-RxJS repository...'
git clone https://github.com/CARTAvis/ICD-RxJS.git
cd ICD-RxJS
fi && \
git checkout ${{ env.ICD_RXJS_BRANCH_NAME }} && \
git submodule init && git submodule update && npm install && \
cd protobuf && \
Expand Down Expand Up @@ -137,9 +143,8 @@ jobs:
TEST_STAGE="file_browser"
SRC_DIR=$GITHUB_WORKSPACE/source
BUILD_DIR=$GITHUB_WORKSPACE/build-${{ matrix.os_version }}
TEST_DIR=$GITHUB_WORKSPACE/build-${{ matrix.os_version }}/ICD-RxJS
LOG_FILE="/tmp/carta_icd_${{ matrix.os_version }}_${TEST_STAGE}.log"
apptainer exec --bind $GITHUB_WORKSPACE:$GITHUB_WORKSPACE --pwd $BUILD_DIR ${{ matrix.image }} /bin/bash -c "\
apptainer exec --bind $GITHUB_WORKSPACE:$GITHUB_WORKSPACE --bind /images:/images --pwd $BUILD_DIR ${{ matrix.image }} /bin/bash -c "\
# Start carta_backend
ASAN_OPTIONS=suppressions=$SRC_DIR/debug/asan/myasan.supp \
LSAN_OPTIONS=suppressions=$SRC_DIR/debug/asan/myasan-leaks.supp \
Expand All @@ -155,7 +160,9 @@ jobs:
CARTA_BACKEND_PID=$! && \
echo 'carta_backend started with PID: $CARTA_BACKEND_PID' && \
# Run ICD tests
cd $TEST_DIR && \
pwd && ls && \
cd ICD-RXJS && \
pwd && ls && \
TEST_FILES=$(cat ICD_test_stages/${TEST_STAGE}.tests) && \
for test_file in $TEST_FILES; do
npm test -- $test_file
Expand Down Expand Up @@ -198,9 +205,8 @@ jobs:
TEST_STAGE="animator"
SRC_DIR=$GITHUB_WORKSPACE/source
BUILD_DIR=$GITHUB_WORKSPACE/build-${{ matrix.os_version }}
TEST_DIR=$GITHUB_WORKSPACE/build-${{ matrix.os_version }}/ICD-RxJS
LOG_FILE="/tmp/carta_icd_${{ matrix.os_version }}_${TEST_STAGE}.log"
apptainer exec --bind $GITHUB_WORKSPACE:$GITHUB_WORKSPACE --pwd $BUILD_DIR ${{ matrix.image }} /bin/bash -c "\
apptainer exec --bind $GITHUB_WORKSPACE:$GITHUB_WORKSPACE --bind /images:/images --pwd $BUILD_DIR ${{ matrix.image }} /bin/bash -c "\
# Start carta_backend
ASAN_OPTIONS=suppressions=$SRC_DIR/debug/asan/myasan.supp \
LSAN_OPTIONS=suppressions=$SRC_DIR/debug/asan/myasan-leaks.supp \
Expand All @@ -216,7 +222,7 @@ jobs:
CARTA_BACKEND_PID=$! && \
echo 'carta_backend started with PID: $CARTA_BACKEND_PID' && \
# Run ICD tests
cd $TEST_DIR && \
cd ICD-RxJS && \
TEST_FILES=$(cat ICD_test_stages/${TEST_STAGE}.tests) && \
for test_file in $TEST_FILES; do
npm test -- $test_file
Expand Down

0 comments on commit caf62bf

Please sign in to comment.