From 69f36090e866d64f82e23f0bedac1fe02fda425f Mon Sep 17 00:00:00 2001 From: Gregory Comer Date: Thu, 14 May 2026 15:43:26 -0700 Subject: [PATCH] Enable python faulthandler module for multimodal CI --- .github/workflows/pull.yml | 9 ++++++++- setup.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index bfe83b853d1..67cee0851b6 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -393,7 +393,14 @@ jobs: echo "::endgroup::" echo "::group::Test ${{ matrix.model }}" - python .ci/scripts/test_huggingface_optimum_model.py --model ${{ matrix.model }} --quantize --recipe xnnpack + gdb -batch \ + -ex "set pagination off" \ + -ex "handle SIGPIPE nostop noprint" \ + -ex run \ + -ex "thread apply all bt full" \ + -ex "info registers" \ + -ex "quit" \ + --args python -X faulthandler .ci/scripts/test_huggingface_optimum_model.py --model gemma3-4b --quantize --recipe xnnpack echo "::endgroup::" test-moshi-linux: diff --git a/setup.py b/setup.py index 00cbe2e7bdf..0a736896ead 100644 --- a/setup.py +++ b/setup.py @@ -174,7 +174,7 @@ def write_to_python_file(cls, path: str) -> None: # is Release. def get_build_type(is_debug=None) -> str: debug = int(os.environ.get("DEBUG", 0) or 0) if is_debug is None else is_debug - return "Debug" if debug else "Release" + return "Debug" if debug else "RelWithDebInfo" def get_dynamic_lib_name(name: str) -> str: