-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into cjhsu/custom_url
- Loading branch information
Showing
203 changed files
with
6,139 additions
and
3,523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: 'Run ICD tests via Apptainer' | ||
description: 'Start carta_backend and run ICD tests' | ||
inputs: | ||
os_version: | ||
description: 'Platfrom' | ||
required: true | ||
image: | ||
description: 'Apptainer image' | ||
required: true | ||
port: | ||
description: 'Port number for carta_backend' | ||
required: true | ||
test_stage_name: | ||
description: 'ICD test stage' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- run: | | ||
SRC_DIR=$GITHUB_WORKSPACE/source | ||
BUILD_DIR=$GITHUB_WORKSPACE/build-${{ inputs.os_version }} | ||
TEST_STAGE="$BUILD_DIR/ICD-RxJS/ICD_test_stages/${{ inputs.test_stage_name }}.tests" | ||
LOG_FILE="/tmp/carta_icd_${{ inputs.os_version }}_${{ inputs.test_stage_name }}.log" | ||
apptainer exec \ | ||
--bind $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \ | ||
--bind /images:/images \ | ||
--pwd $BUILD_DIR \ | ||
${{ inputs.image }} /bin/bash -c "\ | ||
# Start the carta_backend | ||
ASAN_OPTIONS=suppressions=$SRC_DIR/debug/asan/myasan.supp \ | ||
LSAN_OPTIONS=suppressions=$SRC_DIR/debug/asan/myasan-leaks.supp \ | ||
ASAN_SYMBOLIZER_PATH=llvm-symbolizer \ | ||
./carta_backend /images \ | ||
--top_level_folder /images \ | ||
--port ${{ inputs.port }} \ | ||
--omp_threads=4 \ | ||
--debug_no_auth \ | ||
--no_frontend \ | ||
--no_database \ | ||
--no_log \ | ||
--verbosity=5 >> $LOG_FILE 2>&1 & \ | ||
CARTA_BACKEND_PID=\$(pgrep -f 'carta_backend.*${{ inputs.port }}' | head -n 1) && \ | ||
echo 'carta_backend started with PID' \$CARTA_BACKEND_PID && \ | ||
# Run the ICD tests | ||
cd $BUILD_DIR/ICD-RxJS && \ | ||
pwd && \ | ||
cat $TEST_STAGE && \ | ||
while IFS= read -r test_file || [[ -n "\$test_file" ]]; do | ||
CI=true npm test -- "\$test_file" | ||
done < $TEST_STAGE" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 'Run ICD tests on macOS' | ||
description: 'Start the carta_backend, run the ICD tests, and stop the carta_backend' | ||
inputs: | ||
test_stage_name: | ||
description: 'ICD test stage' | ||
required: true | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Start the carta-backend | ||
run: | | ||
SRC_DIR=$GITHUB_WORKSPACE/source | ||
BUILD_DIR=$GITHUB_WORKSPACE/build | ||
cd $BUILD_DIR | ||
ASAN_OPTIONS=suppressions=$SRC_DIR/debug/asan/myasan.supp \ | ||
LSAN_OPTIONS=suppressions=$SRC_DIR/debug/asan/myasan-leaks.supp \ | ||
ASAN_SYMBOLIZER_PATH=llvm-symbolizer \ | ||
./carta_backend /images --top_level_folder /images \ | ||
--port 5555 \ | ||
--omp_threads=4 --debug_no_auth --no_frontend --no_database --verbosity=5 & | ||
echo "CARTA_BACKEND_PID=$!" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: ICD tests | ||
run: | | ||
ICD_DIR=$GITHUB_WORKSPACE/ICD-RxJS | ||
cd $ICD_DIR | ||
for test_file in $(cat ICD_test_stages/${{ inputs.test_stage_name }}.tests); do | ||
CI=true npm test $test_file | ||
sleep 3 && pgrep carta_backend | ||
done | ||
shell: bash | ||
|
||
- name: Stop carta-backend | ||
run: kill ${{ env.CARTA_BACKEND_PID }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.