|
16 | 16 | # - Debug |
17 | 17 | # - build code ; run tests |
18 | 18 | # |
| 19 | +# - tsan-test |
| 20 | +# - ubuntu-20.04 |
| 21 | +# - Debug |
| 22 | +# - build code ; run tests |
| 23 | +# |
19 | 24 | # - ubuntu-test |
20 | 25 | # - [ ubuntu-20.04 | ubuntu-22.04 ] |
21 | 26 | # - [ Debug | Release ] |
@@ -218,6 +223,73 @@ jobs: |
218 | 223 | path: log/ |
219 | 224 | if: always() |
220 | 225 |
|
| 226 | +########################################################### |
| 227 | +# TSAN TEST |
| 228 | + tsan-test: |
| 229 | + runs-on: ubuntu-20.04 |
| 230 | + |
| 231 | + steps: |
| 232 | + - name: Sync eProsima/dev-utils repository |
| 233 | + uses: actions/checkout@v2 |
| 234 | + with: |
| 235 | + path: src/dev-utils |
| 236 | + |
| 237 | + - name: Install apt packages |
| 238 | + uses: ./src/dev-utils/.github/actions/install-apt-packages |
| 239 | + |
| 240 | + - name: Install GTest |
| 241 | + uses: ./src/dev-utils/.github/actions/install-gtest-linux |
| 242 | + |
| 243 | + - name: Install Python packages |
| 244 | + uses: ./src/dev-utils/.github/actions/install-python-packages |
| 245 | + |
| 246 | + - name: Get build eProsima dependencies Job Id |
| 247 | + run: | |
| 248 | + export JOB_ID=$(curl -sL $GITHUB_API_URL/repos/$GITHUB_REPOSITORY/actions/workflows/build_dependencies.yml/runs | \ |
| 249 | + jq '.workflow_runs[] | select(.status == "completed") | .id' | \ |
| 250 | + head -n 1) |
| 251 | + echo "fastdds_job_id=${JOB_ID}" >> $GITHUB_ENV |
| 252 | +
|
| 253 | + - name: Download eProsima dependencies |
| 254 | + uses: dawidd6/action-download-artifact@v2 |
| 255 | + with: |
| 256 | + workflow: build_dependencies.yml |
| 257 | + path: /home/runner/work/fastdds/install |
| 258 | + name: ubuntu-20.04_eprosima_dependencies_install |
| 259 | + run_id: ${{ env.fastdds_job_id }} |
| 260 | + |
| 261 | + - name: Update colcon mixin |
| 262 | + run: | |
| 263 | + colcon mixin add default \ |
| 264 | + https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml |
| 265 | + colcon mixin update default |
| 266 | + continue-on-error: true |
| 267 | + |
| 268 | + - name: Build workspace |
| 269 | + run: | |
| 270 | + source /home/runner/work/fastdds/install/setup.bash |
| 271 | + colcon build \ |
| 272 | + --event-handlers=console_direct+ \ |
| 273 | + --metas src/dev-utils/.github/workflows/tsan_colcon.meta |
| 274 | +
|
| 275 | + - name: Run tests |
| 276 | + run: | |
| 277 | + source install/setup.bash && \ |
| 278 | + colcon test \ |
| 279 | + --packages-select cpp_utils \ |
| 280 | + --event-handlers=console_direct+ \ |
| 281 | + --return-code-on-test-failure \ |
| 282 | + --ctest-args \ |
| 283 | + --label-exclude "xfail|xtsan" \ |
| 284 | + --timeout 60 |
| 285 | +
|
| 286 | + - name: Upload Logs |
| 287 | + uses: actions/upload-artifact@v1 |
| 288 | + with: |
| 289 | + name: tsan-logs |
| 290 | + path: log/ |
| 291 | + if: always() |
| 292 | + |
221 | 293 | ########################################################### |
222 | 294 | # UBUNTU TEST |
223 | 295 | ubuntu-test: |
|
0 commit comments