-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add compatibility test for ruff-lsp
to CI
#8016
Conversation
9cc008b
to
a813831
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable. How did you test that it's using the development version of Rust? Can you add a test plan to the PR summary?
Uses the long ruff version if supported by the binary. Useful for testing e.g. #286 and astral-sh/ruff#8016 ``` ❯ pytest ======================================================================================================================================================= test session starts ======================================================================================================================================================== platform darwin -- Python 3.7.17, pytest-7.4.2, pluggy-1.2.0 ruff-version: 0.1.1+15 (860ffb954 2023-10-20) rootdir: /Users/mz/eng/src/astral-sh/ruff-lsp configfile: pyproject.toml plugins: typeguard-3.0.2, asyncio-0.21.1, anyio-3.7.1 asyncio: mode=strict collected 3 items tests/test_format.py . [ 33%] tests/test_server.py .. [100%] ======================================================================================================================================================== 3 passed in 0.68s ========================================================================================================================================================= ```
d35e8c1
to
75d9405
Compare
Adds tests against ruff@main, installed from source. Since this depends on us opening a pull request here to notice breakage with ruff, I'm also adding astral-sh/ruff#8016 which runs tests on each change to ruff.
d5c3187
to
c728438
Compare
A weirdly herculean effort to get it to actually use the development version for testing. Thanks @charliermarsh for the encouragement to verify it thoroughly. |
Uses the long ruff version if supported by the binary. Useful for testing e.g. astral-sh/ruff-lsp#286 and astral-sh/ruff#8016 ``` ❯ pytest ======================================================================================================================================================= test session starts ======================================================================================================================================================== platform darwin -- Python 3.7.17, pytest-7.4.2, pluggy-1.2.0 ruff-version: 0.1.1+15 (860ffb954 2023-10-20) rootdir: /Users/mz/eng/src/astral-sh/ruff-lsp configfile: pyproject.toml plugins: typeguard-3.0.2, asyncio-0.21.1, anyio-3.7.1 asyncio: mode=strict collected 3 items tests/test_format.py . [ 33%] tests/test_server.py .. [100%] ======================================================================================================================================================== 3 passed in 0.68s ========================================================================================================================================================= ```
Adds tests against ruff@main, installed from source. Since this depends on us opening a pull request here to notice breakage with ruff, I'm also adding astral-sh/ruff#8016 which runs tests on each change to ruff.
Adds a CI job which runs
ruff-lsp
tests against the current Ruff build.Avoids rebuilding Ruff at the cost of running after the cargo tests have finished. Might be worth the rebuild to get earlier feedback but I don't expect it to fail often?
xref astral-sh/ruff-lsp#286
Test plan
Verified use of the development version by inspecting version output in CI; supported by astral-sh/ruff-lsp#289 and #8034