Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kinokrt authored Dec 14, 2023
1 parent 6321eaa commit 9463c04
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,33 +332,33 @@ jobs:
- name: Install targets with Makefile
run: |
cd $GITHUB_WORKSPACE/build/${{ matrix.build-and-test-config.conan-build-type }}
cmake --install . --prefix=${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}
cd $GITHUB_WORKSPACE/build/${{ matrix.build-and-test-config.conan-profile-build-type }}
cmake --install . --prefix=${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}
#VERBOSE=1 make install \
# --directory ${{ github.workspace }}/build/${{ matrix.build-and-test-config.conan-build-type }}
# --directory ${{ github.workspace }}/build/${{ matrix.build-and-test-config.conan-profile-build-type }}
- name: Run link test [`ipc_core` - Flow-IPC Core]
if: |
(!cancelled())
run: |
${{ env.setup-tests-env-vars }}
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin
./ipc_core_link_test.exec
- name: Run link test [`ipc_transport_structured` - Flow-IPC Structured Transport]
if: |
(!cancelled())
run: |
${{ env.setup-tests-env-vars }}
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin
./ipc_transport_structured_link_test.exec
- name: Run link test [`ipc_session` - Flow-IPC Sessions]
if: |
(!cancelled())
run: |
${{ env.setup-tests-env-vars }}
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin
./ipc_session_link_test_srv.exec &
sleep 1
./ipc_session_link_test_cli.exec
Expand All @@ -368,7 +368,7 @@ jobs:
(!cancelled())
run: |
${{ env.setup-tests-env-vars }}
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin
./ipc_shm_link_test_srv.exec &
sleep 1
./ipc_shm_link_test_cli.exec
Expand All @@ -378,7 +378,7 @@ jobs:
(!cancelled())
run: |
${{ env.setup-tests-env-vars }}
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin
./ipc_shm_arena_lend_link_test_srv.exec &
sleep 1
./ipc_shm_arena_lend_link_test_cli.exec
Expand All @@ -391,7 +391,7 @@ jobs:
run: |
${{ env.setup-tests-env-vars }}
echo $TSAN_OPTIONS
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin
./libipc_unit_test.exec ${{ matrix.build-and-test-config.unit-tests-params }}
# Runner can easily run out of space due to logs, so we tar-up log dir
Expand All @@ -410,12 +410,12 @@ jobs:
(!cancelled()) && !matrix.build-and-test-config.skip_transport_tests
run: |
${{ env.setup-tests-env-vars }}
cat <<'EOF' > ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_sc.sh
cat <<'EOF' > ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_sc.sh
# Script created by pipeline during job.
echo "Log level: [$1]."
OUT_DIR_NAME=log_level_$1
OUT_DIR=runs/scripted/$OUT_DIR_NAME
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/transport_test
cd ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/transport_test
mkdir -p $OUT_DIR
./transport_test.exec scripted $OUT_DIR/transport_test.srv.log info $1 \
< srv-script.txt > $OUT_DIR/transport_test.srv.console.log 2>&1 &
Expand All @@ -439,7 +439,7 @@ jobs:
run: |
${{ env.setup-tests-env-vars }}
/usr/bin/bash -e \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_sc.sh \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_sc.sh \
info
- name: Re-run with increased logging, on failure only
Expand All @@ -448,7 +448,7 @@ jobs:
run: |
${{ env.setup-tests-env-vars }}
/usr/bin/bash -e \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_sc.sh \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_sc.sh \
data
# The following [Exercise mode] tests follow the instructions in bin/transport_test/README.txt.
Expand All @@ -463,20 +463,20 @@ jobs:
rm -rf $GITHUB_WORKSPACE/build/${{ matrix.build-and-test-config.conan-profile-build-type }}
mkdir -p ~/bin/ex_srv_run ~/bin/ex_cli_run
mkdir -p /tmp/var/run
cp -v ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/transport_test/transport_test.exec \
cp -v ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/transport_test/transport_test.exec \
~/bin/ex_srv.exec
cp -v ~/bin/ex_srv.exec ~/bin/ex_cli.exec
- name: Prepare run script for [transport_test - Exercise mode] variations below
if: |
(!cancelled()) && !matrix.build-and-test-config.skip_transport_tests
run: |
cat <<'EOF' > ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_ex.sh
cat <<'EOF' > ${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_ex.sh
# Script created by pipeline during job.
echo "Log level: [$1]."
echo "Exercise sub-mode: [$2]."
echo "Sub-mode snippet (none or 'shm-?'): [$3]."
OUT_DIR=${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/transport_test/runs/exercise/$2
OUT_DIR=${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/transport_test/runs/exercise/$2
mkdir -p $OUT_DIR
cd ~/bin/ex_srv_run
~/bin/ex_srv.exec exercise-srv$3 $OUT_DIR/transport_test.srv.log info $1 \
Expand All @@ -502,7 +502,7 @@ jobs:
run: |
${{ env.setup-tests-env-vars }}
/usr/bin/bash -e \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_ex.sh \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_ex.sh \
info heap
- name: Re-run with increased logging, on failure only
Expand All @@ -511,7 +511,7 @@ jobs:
run: |
${{ env.setup-tests-env-vars }}
/usr/bin/bash -e \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_ex.sh \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_ex.sh \
data heap_log_level_data
- name: Run integration test [transport_test - Exercise mode - SHM-classic sub-mode]
Expand All @@ -521,7 +521,7 @@ jobs:
run: |
${{ env.setup-tests-env-vars }}
/usr/bin/bash -e \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_ex.sh \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_ex.sh \
info shm_classic -shm-c
- name: Re-run with increased logging, on failure only
Expand All @@ -530,7 +530,7 @@ jobs:
run: |
${{ env.setup-tests-env-vars }}
/usr/bin/bash -e \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_ex.sh \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_ex.sh \
data shm_classic_log_level_data -shm-c
- name: Run integration test [transport_test - Exercise mode - SHM-jemalloc sub-mode]
Expand All @@ -540,7 +540,7 @@ jobs:
run: |
${{ env.setup-tests-env-vars }}
/usr/bin/bash -e \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_ex.sh \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_ex.sh \
info shm_jemalloc -shm-j
- name: Re-run with increased logging, on failure only
Expand All @@ -549,7 +549,7 @@ jobs:
run: |
${{ env.setup-tests-env-vars }}
/usr/bin/bash -e \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/run_transport_test_ex.sh \
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/run_transport_test_ex.sh \
data shm_jemalloc_log_level_data -shm-j
- name: Upload logs for [transport_test - All modes]
Expand All @@ -559,7 +559,7 @@ jobs:
with:
name: ipc-transport-test-run-${{ matrix.compiler.id }}-${{ matrix.build-and-test-config.id }}
path: |
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-build-type }}/bin/transport_test/runs
${{ github.workspace }}/install/${{ matrix.build-and-test-config.conan-profile-build-type }}/bin/transport_test/runs
# TODO: Look into the topic of debuggability in case of a crash. Is a core generated? Is it saved?
# Do we need to manually save it as an artifact? For that matter we would then need the binary and
Expand Down

0 comments on commit 9463c04

Please sign in to comment.