From 157f879179d18ffff62efee8a25dca6142121d46 Mon Sep 17 00:00:00 2001 From: Yadunund Date: Tue, 2 Jul 2024 04:36:45 +0800 Subject: [PATCH] Add github action to check for logging macros Signed-off-by: Yadunund --- .github/workflows/check_logging.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/check_logging.yaml diff --git a/.github/workflows/check_logging.yaml b/.github/workflows/check_logging.yaml new file mode 100644 index 00000000..caffa805 --- /dev/null +++ b/.github/workflows/check_logging.yaml @@ -0,0 +1,13 @@ +# Ensure that PR diff does not include RCUTILS_LOG_* macros as these induce deadlocks. +# See https://github.com/ros2/rmw_zenoh/issues/182 for more details. +name: "Check logging macros" +on: [pull_request] +jobs: + check_logging: + runs-on: ubuntu-latest + steps: + - name: Check logging macros + uses: JJ/github-pr-contains-action@releases/v14.1 + with: + github-token: ${{github.token}} + diffDoesNotContain: "RCUTILS_LOG_|rcutils/logging_macros.h"