[all-commits] [llvm/llvm-project] 4cc3cf: [cross-project-tests] Avoid requiring packaging fo...
Alexander Richardson via All-commits
all-commits at lists.llvm.org
Mon Sep 21 08:58:18 PDT 2026
Branch: refs/heads/users/arichardson/cross-project-tests-avoid-requiring-packaging-for-gdb-lldb
Home: https://github.com/llvm/llvm-project
Commit: 4cc3cfbd6b9d2d3743abd0d8aa2b5f78f9c8f875
https://github.com/llvm/llvm-project/commit/4cc3cfbd6b9d2d3743abd0d8aa2b5f78f9c8f875
Author: Alex Richardson <alexrichardson at google.com>
Date: 2026-09-21 (Mon, 21 Sep 2026)
Changed paths:
M cross-project-tests/lit.cfg.py
Log Message:
-----------
[cross-project-tests] Avoid requiring packaging for GDB/LLDB version checks
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
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