Skip to content

Conversation

ldionne
Copy link
Member

@ldionne ldionne commented Oct 3, 2025

This patch enables running the Tox tests in Github Actions CI.
It also adds some dependencies required to run the tests locally
with Tox.

An important change is that we move from LLVM's FileCheck
implementation to a near-equivalent Python version that can be
installed with pip. This will make the test suite more independent
and easier to run: requiring a full LLVM monorepo checkout and a
configured LLVM build just to run the LNT unit tests seems like a
very cumbersome requirement.

Also, this updates the documentation to reflect my current
understanding of how the test suite can be run.

Note that the tests are not passing at the moment, we will need to
update some dependencies and fix other issues. But this gets us
closer to running them, and at least we can see the progress being
made in the CI.

@ldionne ldionne marked this pull request as draft October 3, 2025 15:40
@ldionne ldionne force-pushed the review/run-tox-py3 branch 3 times, most recently from ce3f2ad to 658a91d Compare October 3, 2025 16:01
This patch enables running the Tox tests in Github Actions CI.
It also adds some dependencies required to run the tests locally
with Tox.

An important change is that we move from LLVM's FileCheck
implementation to a near-equivalent Python version that can be
installed with pip. This will make the test suite more independent
and easier to run: requiring a full LLVM monorepo checkout and a
configured LLVM build just to run the LNT unit tests seems like a
very cumbersome requirement.

Also, this updates the documentation to reflect my current
understanding of how the test suite can be run.

Note that the tests are not passing at the moment, we will need to
update some dependencies and fix other issues. But this gets us
closer to running them, and at least we can see the progress being
made in the CI.
@ldionne ldionne force-pushed the review/run-tox-py3 branch from 0d65a62 to 8b31c9a Compare October 3, 2025 17:03
@ldionne ldionne marked this pull request as ready for review October 3, 2025 17:03
Copy link
Contributor

@jroelofs jroelofs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about filecheck... nice. LGTM

@ldionne ldionne merged commit ed246e5 into llvm:main Oct 3, 2025
1 of 2 checks passed
@ldionne ldionne deleted the review/run-tox-py3 branch October 3, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants