-
Notifications
You must be signed in to change notification settings - Fork 83
feat(integration-tests): Install CLP Python projects to enable their use in integration tests and fix new linting issues: #1549
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
Merged
Bill-hbrhbr
merged 25 commits into
y-scope:main
from
Bill-hbrhbr:integration-tests-import-local-python-libs
Nov 7, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
4af1365
Add clp-py-utils
Bill-hbrhbr 11f4522
Add remaining clp native python projects
Bill-hbrhbr 857744d
Merge branch 'main' into integration-tests-import-local-python-libs
Bill-hbrhbr d302360
Pin mariadb version for job orchestration
Bill-hbrhbr 8418328
update uv lock
Bill-hbrhbr 7774d07
Revert
Bill-hbrhbr f595d5d
Add mariadb connector as requirement for python linter
Bill-hbrhbr b1bbe3f
py lint fix
Bill-hbrhbr a14fb77
Revert "Add mariadb connector as requirement for python linter"
Bill-hbrhbr 8c2ba26
test installing mariadb-connector-c
Bill-hbrhbr 6f2f7e0
Test fix macos15 mariadb connector c
Bill-hbrhbr 791ff0a
typo fix
Bill-hbrhbr fdcf80e
Merge branch 'main' into integration-tests-import-local-python-libs
Bill-hbrhbr 2972779
Merge mariadb_config install into a single task
Bill-hbrhbr ab7b791
Update integration-tests/tests/test_clp_native_py_project_imports.py
Bill-hbrhbr d8d9baa
Add taskfiles to test the new imports
Bill-hbrhbr c9986d4
Update taskfiles/tests/integration.yaml
Bill-hbrhbr b563ec0
Merge branch 'main' into integration-tests-import-local-python-libs
Bill-hbrhbr 3ff0499
Apply suggestions from code review
Bill-hbrhbr 71dfbef
Merge branch 'main' into integration-tests-import-local-python-libs
Bill-hbrhbr f27df5e
remove unnecessary python -m
Bill-hbrhbr f4364d3
Remove unnecessary hatchling build target wheel specifications
Bill-hbrhbr 5729abc
Add typing for integration tests too
Bill-hbrhbr f7823e5
Use consistent python -m pytest
Bill-hbrhbr 1309d3b
Merge branch 'main' into integration-tests-import-local-python-libs
Bill-hbrhbr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Empty file.
Empty file.
Empty file.
Empty file.
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
Empty file.
22 changes: 22 additions & 0 deletions
22
integration-tests/tests/test_clp_native_py_project_imports.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| """Smoke tests to validate that CLP Python projects can be imported without errors.""" | ||
|
|
||
| from clp_mcp_server.constants import QueryJobType | ||
| from clp_package_utils.general import JobType | ||
| from clp_py_utils.clp_config import StorageEngine | ||
| from job_orchestration.scheduler.constants import CompressionJobStatus | ||
|
|
||
|
|
||
| def test_clp_native_py_project_enum_classes() -> None: | ||
| """ | ||
| Verifies that the following CLP Python projects can be imported successfully by testing | ||
| conversions between their representative enum classes and literal values: | ||
|
|
||
| - clp-mcp-server | ||
| - clp-package-utils | ||
| - clp-py-utils | ||
| - job-orchestration | ||
| """ | ||
| assert QueryJobType.SEARCH_OR_AGGREGATION == QueryJobType(0) | ||
| assert JobType.COMPRESSION == JobType("compression") | ||
| assert StorageEngine.CLP == StorageEngine("clp") | ||
| assert CompressionJobStatus.PENDING == CompressionJobStatus(0) |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.