[all-commits] [llvm/llvm-project] 089fbd: [cross-project-tests] Avoid requiring packaging fo...

Alexander Richardson via All-commits all-commits at lists.llvm.org
Wed Sep 23 23:12:55 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 089fbdd5ab2afce38747b1a79a3c963bbdb4d9da
      https://github.com/llvm/llvm-project/commit/089fbdd5ab2afce38747b1a79a3c963bbdb4d9da
  Author: Alexander Richardson <alexrichardson at google.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M cross-project-tests/lit.cfg.py

  Log Message:
  -----------
  [cross-project-tests] Avoid requiring packaging for GDB/LLDB version checks (#225126)

Previously, `cross-project-tests/lit.cfg.py` imported `packaging.version` to
compare GDB and LLDB version numbers and unconditionally called
`lit_config.fatal()` when the third-party `packaging` Python package was not
installed in the test environment. Try `packaging.version.parse` first, fall
back to splitting dot-separated integer components when `packaging` is not
available, and raise `ValueError` on unparseable versions so each caller can
emit a context-specific warning instead of aborting the test suite.

This commit was created with the help of AI tools

Pull-Request: https://github.com/llvm/llvm-project/pull/225126



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list