Commit 6a2315c
authored
[BUGS] Fix CI Workflow Errors (#64)
* Update CI workflows and Poetry version
Renamed check_diffs.yml to CI.yml and refactored workflow to remove dynamic directory detection, now explicitly linting and testing 'libs/oci' and 'libs/oracledb'. Updated Poetry version to 2.2.1 in all workflow files for consistency and added workflow_dispatch for manual CI triggers.
* Refactor OCI code to appease the lint god
Simplify _lint.yml.
Rephrase OCI code base to pass make lint checks.
* Fix make lint error
Fix make lint error:
tests/unit_tests/llms/test_oci_model_deployment_endpoint.py:60: error: Missing named argument "response" for "HTTPError" [call-arg]
Found 1 error in 1 file (checked 29 source files)
* Use Union type to pass make lint check
Use Union type to pass make lint check:
tests/integration_tests/vectorstores/test_oraclevs.py:1891: error: X | Y syntax for unions requires Python 3.10 [syntax]
tests/integration_tests/vectorstores/test_oraclevs.py:2028: error: X | Y syntax for unions requires Python 3.10 [syntax]
Found 2 errors in 1 file (checked 22 source files)
make: *** [Makefile:33: lint] Error 1
* Add LangGraph and related packages for integration tests
Add LangGraph and related packages for integration tests.
* Add placeholder integration test for OCI
Introduces a placeholder test in the OCI integration tests to ensure no errors are raised when no tests are selected.
* Revert commit: Refactor OCI code to appease the lint god
* Refactor to pass make lint checks
Refactor to pass make lint checks
* Refactor oracledb to pass make lint tests
* Remove placeholder integration tests and compile-integration-tests job from the CI workflow
Deleted test_placeholder.py files and the 'compile' pytest marker from both oci and oracledb libraries. Also removed the compile-integration-tests job from the CI workflow, as these placeholders are no longer needed.
* Use default 88 line length in ruff formatting
* Remove noqa: E501 comments and reformat long lines
This commit removes unnecessary '# noqa: E501' comments throughout the codebase and reformats long lines for improved readability. Docstrings, function signatures, and code examples have been wrapped or split across lines where appropriate. No functional changes were made.
* Fix typo in test JSON string for tool calling
Corrects the closing quote in the 'arguments' field of the test_meta_tool_calling test to ensure the escaped JSON is properly formatted.
* Fix escaped JSON string in test_oci_generative_ai.py
Corrects the escaped JSON string in the 'arguments' field of the test_meta_tool_calling test to ensure proper formatting and accurate test coverage.
* Remove extra noqa:E501 and split long strings
Split long error messages and test strings across multiple lines to improve readability and remove unnecessary noqa: E501 comments. Also reformatted SQL condition string construction in oraclevs.py for better clarity.
* Remove redundant Poetry check command
Eliminates the duplicate 'poetry check' command, leaving only 'poetry check --lock' to validate the Poetry configuration and lock file.1 parent 1d4a93c commit 6a2315c
File tree
29 files changed
+3099
-1768
lines changed- .github/workflows
- libs
- oci
- langchain_oci
- chat_models
- embeddings
- llms
- tests
- integration_tests/chat_models
- unit_tests
- chat_models
- llms
- oracledb
- langchain_oracledb
- document_loaders
- embeddings
- utilities
- vectorstores
- tests
- integration_tests
- document_loaders
- vectorstores
- unit_tests/document_loaders
29 files changed
+3099
-1768
lines changedLines changed: 9 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 24 | | |
39 | 25 | | |
40 | | - | |
41 | | - | |
42 | 26 | | |
43 | 27 | | |
44 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
45 | 31 | | |
46 | 32 | | |
47 | 33 | | |
48 | 34 | | |
49 | 35 | | |
50 | 36 | | |
51 | 37 | | |
52 | | - | |
53 | | - | |
54 | 38 | | |
55 | 39 | | |
56 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
57 | 43 | | |
58 | 44 | | |
59 | 45 | | |
60 | 46 | | |
61 | 47 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 48 | | |
74 | 49 | | |
75 | | - | |
| 50 | + | |
76 | 51 | | |
77 | 52 | | |
78 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 48 | + | |
56 | 49 | | |
57 | 50 | | |
58 | 51 | | |
| |||
65 | 58 | | |
66 | 59 | | |
67 | 60 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 61 | + | |
98 | 62 | | |
99 | | - | |
| 63 | + | |
100 | 64 | | |
101 | 65 | | |
102 | | - | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
0 commit comments