Repository navigation
ci(validation): run the tests on the declared sqlglot minimum - #807
Merged
Merged
Conversation
Validation CI installs the latest sqlglot, so it cannot see a test that needs a newer release than the script headers declare. apache#767 was that drift: two tests failed on 30.19.0, the minimum declared then, while CI stayed green. A new step reads the minimum from the validate.py header and runs validation/test_validate.py and validation/tests/ with sqlglot pinned to it. The header is the one place the version is written, so the step follows the next change to it.
jbonofre
self-requested a review
November 23, 2026 15:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a step to Validation CI that runs the validation tests on the sqlglot minimum the script headers declare. This is the follow-up asked for in the review of #793.
The workflow installs the latest sqlglot, so a test that needs a newer release than the headers declare still passes there. #767 was that case: two tests failed on 30.19.0, the minimum declared at the time, while CI was green.
validation/validate.py. The test added in fix(validation): raise the declared sqlglot minimum to 30.29.0 #793 holds both headers equal toSQLGLOT_MIN_VERSION, so the step follows the next change to any of the three.--with "sqlglot==X"beside a header that sayssqlglot>=Xresolves to X, sovalidation/test_validate.pyruns on the minimum too.sedfinds nothing, uv stops withFailed to parse: `sqlglot==`and the step fails.The step's script, run locally with
bash -eonmainat4a315fa:validation/test_validate.pyvalidation/tests/desc-dot-bigquery), 1027 passed, 1 skippedThe first row is the same on Python 3.11 and 3.14. The second row is what the step reports when a test needs a newer sqlglot than the one it installs.
Related Issues
Follow-up to #793, which closed #767.
Checklist
Tests
pytest/ CI green)