Skip to content

fix(api): handle non-object JSON in Jina auth errors - #44456

Open
flyl1u wants to merge 1 commit into
langgenius:mainfrom
flyl1u:fix/jina-auth-error-json
Open

flyl1u wants to merge 1 commit into
langgenius:mainfrom
flyl1u:fix/jina-auth-error-json

Conversation

@flyl1u

@flyl1u flyl1u commented Oct 21, 2026 •

Copy link
Copy Markdown

Summary

Part of #33092.

Jina credential validation calls .get() on decoded error JSON without checking its shape. A 402, 409, or ordinary 4xx response containing an array, null, or another JSON scalar therefore leaks AttributeError instead of the existing credential-validation error.

Use one module-level Pydantic TypeAdapter[dict[str, Any]] in both parsing branches, falling back to the response text on ValidationError. Keep the error value unrestricted, including missing, empty, null, and nested values. Preserve the existing empty-body messages and success, provider-unavailable, and network-error handling.

Verification

  • Regression tests enter through validate_credentials(), mock only the HTTP request boundary, and use real httpx.Response objects. All 18 non-object JSON cases fail with AttributeError before the fix and pass afterward.
  • Authentication service and API-key repository tests, with the repository's pytest configuration and shared fixtures: 132 passed, including 64 Jina tests.
  • Data-source bearer-auth controller tests, run separately: 12 passed.
  • Targeted Ruff lint/format checks and Pyrefly checks passed for both files, using the production and strict unit-test configurations respectively.
  • git diff --check passed. No dependency or lockfile changes.

These are targeted checks, not the full backend suite or full make lint && make type-check targets. The regression uses simulated upstream responses; no real Jina outage sample or browser flow was tested.

Screenshots

Not applicable; backend error handling only.

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've verified the change and added or updated tests where meaningful regression risk justifies coverage.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and vp staged (frontend) to appease the lint gods

From Codex

@github-actions github-actions Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 21, 2026
@asukaminato0721 asukaminato0721 self-assigned this Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-11-16 11:40:47.400263126 +0000
+++ /tmp/pyrefly_pr.txt	2026-11-16 11:40:28.448327035 +0000
@@ -1,2099 +1,1631 @@
+ERROR `in` is not supported between `Literal['DELETE']` and `object` [not-iterable]
+   --> providers/vdb/vdb-alibabacloud-mysql/tests/unit_tests/test_alibabacloud_mysql_vector.py:364:16
+ERROR Argument `Literal['manhattan']` is not assignable to parameter `distance_function` with type `Literal['cosine', 'euclidean']` in function `dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector.AlibabaCloudMySQLVectorConfig.__init__` [bad-argument-type]
+   --> providers/vdb/vdb-alibabacloud-mysql/tests/unit_tests/test_alibabacloud_mysql_vector.py:648:35
 ERROR Missing argument `min_connection` in function `dify_vdb_analyticdb.analyticdb_vector_sql.AnalyticdbVectorBySqlConfig.__init__` [missing-argument]
-  --> providers/vdb/vdb-analyticdb/tests/e2e_tests/test_analyticdb.py:19:55
+  --> providers/vdb/vdb-analyticdb/tests/integration_tests/test_analyticdb.py:19:55
 ERROR Missing argument `max_connection` in function `dify_vdb_analyticdb.analyticdb_vector_sql.AnalyticdbVectorBySqlConfig.__init__` [missing-argument]
-  --> providers/vdb/vdb-analyticdb/tests/e2e_tests/test_analyticdb.py:19:55
+  --> providers/vdb/vdb-analyticdb/tests/integration_tests/test_analyticdb.py:19:55
+ERROR Object of class `ModuleType` has no attribute `Client` [missing-attribute]
+  --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:50:5
+ERROR Object of class `ModuleType` has no attribute `models` [missing-attribute]
+  --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:51:5
+ERROR Object of class `ModuleType` has no attribute `Config` [missing-attribute]
+  --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:62:5
+ERROR Object of class `ModuleType` has no attribute `models` [missing-attribute]
+  --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:63:5
+ERROR Object of class `ModuleType` has no attribute `TeaException` [missing-attribute]
+  --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:76:5
+ERROR Object of class `ModuleType` has no attribute `exceptions` [missing-attribute]
+  --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:77:5
+ERROR Object of class `Client` has no attribute `config` [missing-attribute]
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:144:12
+ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:184:5
+ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:255:5
+ERROR Argument `list[Document | SimpleNamespace]` is not assignable to parameter `documents` with type `list[Document]` in function `dify_vdb_analyticdb.analyticdb_vector_openapi.AnalyticdbVectorOpenAPI.add_texts` [bad-argument-type]
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_openapi.py:308:22
 ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
-  --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/test_analyticdb_vector_sql.py:88:5
+  --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_sql.py:88:5
 ERROR Class `SimpleConnectionPool` has no class attribute `assert_called_once` [missing-attribute]
-   --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/test_analyticdb_vector_sql.py:102:5
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_sql.py:102:5
 ERROR Argument `list[Document | SimpleNamespace]` is not assignable to parameter `documents` with type `list[Document]` in function `dify_vdb_analyticdb.analyticdb_vector_sql.AnalyticdbVectorBySql.add_texts` [bad-argument-type]
-   --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/test_analyticdb_vector_sql.py:141:22
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_sql.py:141:22
 ERROR Object of class `FunctionType` has no attribute `call_args` [missing-attribute]
-   --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/test_analyticdb_vector_sql.py:143:20
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_sql.py:143:20
 ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
-   --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/test_analyticdb_vector_sql.py:405:5
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/test_analyticdb_vector_sql.py:381:5
+ERROR Object of class `ModuleType` has no attribute `MochowClient` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:71:5
+ERROR Object of class `ModuleType` has no attribute `BceCredentials` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:72:5
+ERROR Object of class `ModuleType` has no attribute `Configuration` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:73:5
+ERROR Object of class `ModuleType` has no attribute `ServerError` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:74:5
+ERROR Object of class `ModuleType` has no attribute `Database` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:75:5
+ERROR Object of class `ModuleType` has no attribute `FieldType` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:77:5
+ERROR Object of class `ModuleType` has no attribute `IndexState` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:78:5
+ERROR Object of class `ModuleType` has no attribute `IndexType` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:79:5
+ERROR Object of class `ModuleType` has no attribute `MetricType` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:80:5
+ERROR Object of class `ModuleType` has no attribute `ServerErrCode` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:81:5
+ERROR Object of class `ModuleType` has no attribute `TableState` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:82:5
+ERROR Object of class `ModuleType` has no attribute `InvertedIndexAnalyzer` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:95:5
+ERROR Object of class `ModuleType` has no attribute `InvertedIndexFieldAttribute` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:96:5
+ERROR Object of class `ModuleType` has no attribute `InvertedIndexParseMode` [missing-attribute]
+  --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:97:5
+ERROR Object of class `ModuleType` has no attribute `auth` [missing-attribute]
+   --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:102:5
+ERROR Object of class `ModuleType` has no attribute `model` [missing-attribute]
+   --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:103:5
+ERROR Object of class `ModuleType` has no attribute `bce_credentials` [missing-attribute]
+   --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:104:5
+ERROR Object of class `ModuleType` has no attribute `database` [missing-attribute]
+   --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:105:5
+ERROR Object of class `ModuleType` has no attribute `enum` [missing-attribute]
+   --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:106:5
+ERROR Object of class `ModuleType` has no attribute `schema` [missing-attribute]
+   --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:107:5
+ERROR Object of class `ModuleType` has no attribute `table` [missing-attribute]
+   --> providers/vdb/vdb-baidu/tests/unit_tests/test_baidu_vector.py:108:5
+ERROR Object of class `ModuleType` has no attribute `DEFAULT_TENANT` [missing-attribute]
+  --> providers/vdb/vdb-chroma/tests/unit_tests/test_chroma_vector.py:16:5
+ERROR Object of class `ModuleType` has no attribute `DEFAULT_DATABASE` [missing-attribute]
+  --> providers/vdb/vdb-chroma/tests/unit_tests/test_chroma_vector.py:17:5
+ERROR Object of class `ModuleType` has no attribute `Settings` [missing-attribute]
+  --> providers/vdb/vdb-chroma/tests/unit_tests/test_chroma_vector.py:41:5
+ERROR Object of class `ModuleType` has no attribute `QueryResult` [missing-attribute]
+  --> providers/vdb/vdb-chroma/tests/unit_tests/test_chroma_vector.py:42:5
+ERROR Object of class `ModuleType` has no attribute `HttpClient` [missing-attribute]
+  --> providers/vdb/vdb-chroma/tests/unit_tests/test_chroma_vector.py:43:5
+ERROR Object of class `ModuleType` has no attribute `connect` [missing-attribute]
+  --> providers/vdb/vdb-clickzetta/tests/unit_tests/test_clickzetta_vector.py:44:5
+ERROR Object of class `NoneType` has no attribute `started` [missing-attribute]
+   --> providers/vdb/vdb-clickzetta/tests/unit_tests/test_clickzetta_vector.py:425:12
+ERROR Object of class `ModuleType` has no attribute `PasswordAuthenticator` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:129:5
+ERROR Object of class `ModuleType` has no attribute `Cluster` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:130:5
+ERROR Object of class `ModuleType` has no attribute `SearchIndex` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:131:5
+ERROR Object of class `ModuleType` has no attribute `ClusterOptions` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:132:5
+ERROR Object of class `ModuleType` has no attribute `SearchOptions` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:133:5
+ERROR Object of class `ModuleType` has no attribute `VectorQuery` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:134:5
+ERROR Object of class `ModuleType` has no attribute `VectorSearch` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:135:5
+ERROR Object of class `ModuleType` has no attribute `QueryStringQuery` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:136:5
+ERROR Object of class `ModuleType` has no attribute `SearchRequest` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:137:5
+ERROR Object of class `ModuleType` has no attribute `search` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:139:5
+ERROR Object of class `ModuleType` has no attribute `management` [missing-attribute]
+   --> providers/vdb/vdb-couchbase/tests/unit_tests/test_couchbase_vector.py:140:5
+ERROR Object of class `ModuleType` has no attribute `Elasticsearch` [missing-attribute]
+  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/test_elasticsearch_ja_vector.py:29:5
+ERROR Object of class `ModuleType` has no attribute `ConnectionError` [missing-attribute]
+  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/test_elasticsearch_ja_vector.py:30:5
 ERROR Object of class `ModuleType` has no attribute `Elasticsearch` [missing-attribute]
-  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/src/dify_vdb_elasticsearch/test_elasticsearch_vector.py:39:5
+  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/test_elasticsearch_vector.py:39:5
 ERROR Object of class `ModuleType` has no attribute `ConnectionError` [missing-attribute]
-  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/src/dify_vdb_elasticsearch/test_elasticsearch_vector.py:40:5
+  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/test_elasticsearch_vector.py:40:5
 ERROR Argument `tuple[Any, Any, Any, Any, float]` is not assignable to parameter `object` with type `tuple[float, Any, Any, Any]` in function `list.append` [bad-argument-type]
-  --> providers/vdb/vdb-hologres/tests/e2e_tests/conftest.py:56:32
+  --> providers/vdb/vdb-hologres/tests/integration_tests/conftest.py:56:32
+ERROR Object of class `ModuleType` has no attribute `BaseQuantizationType` [missing-attribute]
+  --> providers/vdb/vdb-hologres/tests/unit_tests/test_hologres_vector.py:19:5
+ERROR Object of class `ModuleType` has no attribute `DistanceType` [missing-attribute]
+  --> providers/vdb/vdb-hologres/tests/unit_tests/test_hologres_vector.py:20:5
+ERROR Object of class `ModuleType` has no attribute `TokenizerType` [missing-attribute]
+  --> providers/vdb/vdb-hologres/tests/unit_tests/test_hologres_vector.py:21:5
 ERROR Object of class `ModuleType` has no attribute `connect` [missing-attribute]
-  --> providers/vdb/vdb-iris/tests/unit_tests/src/dify_vdb_iris/test_iris_vector.py:23:5
+  --> providers/vdb/vdb-hologres/tests/unit_tests/test_hologres_vector.py:33:5
+ERROR Argument `SimpleNamespace` is not assignable to parameter `object` with type `Document` in function `list.append` [bad-argument-type]
+   --> providers/vdb/vdb-hologres/tests/unit_tests/test_hologres_vector.py:127:22
+ERROR Object of class `ModuleType` has no attribute `Elasticsearch` [missing-attribute]
+  --> providers/vdb/vdb-huawei-cloud/tests/unit_tests/test_huawei_cloud_vector.py:29:5
+ERROR Object of class `ModuleType` has no attribute `connect` [missing-attribute]
+  --> providers/vdb/vdb-iris/tests/unit_tests/test_iris_vector.py:23:5
 ERROR Object of class `ModuleType` has no attribute `_pool_instance` [missing-attribute]
-  --> providers/vdb/vdb-iris/tests/unit_tests/src/dify_vdb_iris/test_iris_vector.py:34:5
+  --> providers/vdb/vdb-iris/tests/unit_tests/test_iris_vector.py:34:5
 ERROR Object of class `ModuleType` has no attribute `escape_like_pattern` [missing-attribute]
-   --> providers/vdb/vdb-iris/tests/unit_tests/src/dify_vdb_iris/test_iris_vector.py:339:5
+   --> providers/vdb/vdb-iris/tests/unit_tests/test_iris_vector.py:339:5
 ERROR Missing argument `using_ugc` in function `dify_vdb_lindorm.lindorm_vector.LindormVectorStore.__init__` [missing-argument]
-  --> providers/vdb/vdb-lindorm/tests/e2e_tests/test_lindorm.py:21:41
+  --> providers/vdb/vdb-lindorm/tests/integration_tests/test_lindorm.py:21:41
 ERROR Missing argument `using_ugc` in function `dify_vdb_lindorm.lindorm_vector.LindormVectorStore.__init__` [missing-argument]
-  --> providers/vdb/vdb-lindorm/tests/e2e_tests/test_lindorm.py:41:41
+  --> providers/vdb/vdb-lindorm/tests/integration_tests/test_lindorm.py:41:41
 ERROR Object of class `ModuleType` has no attribute `BulkIndexError` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:44:5
+  --> providers/vdb/vdb-lindorm/tests/unit_tests/test_lindorm_vector.py:40:5
 ERROR Object of class `ModuleType` has no attribute `bulk` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:45:5
-ERROR Object of class `ModuleType` has no attribute `NotFoundError` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:46:5
+  --> providers/vdb/vdb-lindorm/tests/unit_tests/test_lindorm_vector.py:41:5
 ERROR Object of class `ModuleType` has no attribute `OpenSearch` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:48:5
-ERROR Object of class `ModuleType` has no attribute `NotFoundError` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:49:5
+  --> providers/vdb/vdb-lindorm/tests/unit_tests/test_lindorm_vector.py:43:5
 ERROR Object of class `ModuleType` has no attribute `helpers` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:50:5
+  --> providers/vdb/vdb-lindorm/tests/unit_tests/test_lindorm_vector.py:44:5
+ERROR Object of class `ModuleType` has no attribute `MoVectorClient` [missing-attribute]
+  --> providers/vdb/vdb-matrixone/tests/unit_tests/test_matrixone_vector.py:31:5
+ERROR Object of class `ModuleType` has no attribute `client` [missing-attribute]
+  --> providers/vdb/vdb-matrixone/tests/unit_tests/test_matrixone_vector.py:32:5
 ERROR Object of class `ModuleType` has no attribute `MilvusException` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:79:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:79:5
 ERROR Object of class `ModuleType` has no attribute `MilvusClient` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:80:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:80:5
 ERROR Object of class `ModuleType` has no attribute `IndexParams` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:81:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:81:5
 ERROR Object of class `ModuleType` has no attribute `CollectionSchema` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:82:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:82:5
 ERROR Object of class `ModuleType` has no attribute `DataType` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:83:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:83:5
 ERROR Object of class `ModuleType` has no attribute `FieldSchema` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:84:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:84:5
 ERROR Object of class `ModuleType` has no attribute `Function` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:85:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:85:5
 ERROR Object of class `ModuleType` has no attribute `FunctionType` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:86:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:86:5
 ERROR Object of class `ModuleType` has no attribute `IndexParams` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:87:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:87:5
 ERROR Object of class `ModuleType` has no attribute `types` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:88:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:88:5
 ERROR Object of class `ModuleType` has no attribute `infer_dtype_bydata` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:89:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:89:5
 ERROR Object of class `ModuleType` has no attribute `milvus_client` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:92:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:92:5
 ERROR Object of class `ModuleType` has no attribute `orm` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:93:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:93:5
+ERROR Object of class `ModuleType` has no attribute `get_client` [missing-attribute]
+  --> providers/vdb/vdb-myscale/tests/unit_tests/test_myscale_vector.py:36:5
+ERROR Object of class `ModuleType` has no attribute `QueryResult` [missing-attribute]
+  --> providers/vdb/vdb-myscale/tests/unit_tests/test_myscale_vector.py:37:5
+ERROR Object of class `ModuleType` has no attribute `_fake_client` [missing-attribute]
+  --> providers/vdb/vdb-myscale/tests/unit_tests/test_myscale_vector.py:38:5
+ERROR Object of class `ModuleType` has no attribute `VECTOR` [missing-attribute]
+  --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:53:5
+ERROR Object of class `ModuleType` has no attribute `ObVecClient` [missing-attribute]
+  --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:54:5
+ERROR Object of class `ModuleType` has no attribute `VecIndexType` [missing-attribute]
+  --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:55:5
+ERROR Object of class `ModuleType` has no attribute `l2_distance` [missing-attribute]
+  --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:56:5
+ERROR Object of class `ModuleType` has no attribute `cosine_distance` [missing-attribute]
+  --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:57:5
+ERROR Object of class `ModuleType` has no attribute `inner_product` [missing-attribute]
+  --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:58:5
 ERROR `config` may be uninitialized [unbound-name]
-  --> providers/vdb/vdb-opengauss/tests/e2e_tests/test_opengauss.py:35:20
+  --> providers/vdb/vdb-opengauss/tests/integration_tests/test_opengauss.py:35:20
+ERROR Object of class `ModuleType` has no attribute `SimpleConnectionPool` [missing-attribute]
+  --> providers/vdb/vdb-opengauss/tests/unit_tests/test_opengauss.py:29:5
+ERROR Object of class `ModuleType` has no attribute `execute_values` [missing-attribute]
+  --> providers/vdb/vdb-opengauss/tests/unit_tests/test_opengauss.py:30:5
+ERROR Object of class `ModuleType` has no attribute `pool` [missing-attribute]
+  --> providers/vdb/vdb-opengauss/tests/unit_tests/test_opengauss.py:32:5
+ERROR Object of class `ModuleType` has no attribute `extras` [missing-attribute]
+  --> providers/vdb/vdb-opengauss/tests/unit_tests/test_opengauss.py:33:5
 ERROR Object of class `ModuleType` has no attribute `OpenSearch` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:55:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:49:5
 ERROR Object of class `ModuleType` has no attribute `Urllib3AWSV4SignerAuth` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:56:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:50:5
 ERROR Object of class `ModuleType` has no attribute `Urllib3HttpConnection` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:57:5
-ERROR Object of class `ModuleType` has no attribute `NotFoundError` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:58:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:51:5
 ERROR Object of class `ModuleType` has no attribute `helpers` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:59:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:52:5
 ERROR Object of class `ModuleType` has no attribute `BulkIndexError` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:60:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:53:5
 ERROR Object of class `ModuleType` has no attribute `Session` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:112:13
+   --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:104:9
 ERROR Object of class `ModuleType` has no attribute `OpenSearch` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:380:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:50:5
 ERROR Object of class `ModuleType` has no attribute `Urllib3AWSV4SignerAuth` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:381:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:51:5
 ERROR Object of class `ModuleType` has no attribute `Urllib3HttpConnection` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:382:5
-ERROR Object of class `ModuleType` has no attribute `NotFoundError` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:383:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:52:5
 ERROR Object of class `ModuleType` has no attribute `helpers` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:384:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:53:5
 ERROR Object of class `ModuleType` has no attribute `BulkIndexError` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:385:5
-ERROR Object of class `ModuleType` has no attribute `NotFoundError` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:386:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:54:5
 ERROR Object of class `ModuleType` has no attribute `Session` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:462:9
+   --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:127:5
 ERROR Object of class `ModuleType` has no attribute `cut` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:20:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:20:5
 ERROR Object of class `ModuleType` has no attribute `posseg` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:21:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:21:5
 ERROR Object of class `ModuleType` has no attribute `Connection` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:29:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:29:5
 ERROR Object of class `ModuleType` has no attribute `defaults` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:30:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:30:5
 ERROR Object of class `ModuleType` has no attribute `DB_TYPE_VECTOR` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:31:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:31:5
 ERROR Object of class `ModuleType` has no attribute `create_pool` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:32:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:32:5
 ERROR Object of class `ModuleType` has no attribute `connect` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:33:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:33:5
 ERROR Object of class `ModuleType` has no attribute `data` [missing-attribute]
-   --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:278:5
+   --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:278:5
 ERROR Object of class `ModuleType` has no attribute `word_tokenize` [missing-attribute]
-   --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:279:5
+   --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:279:5
 ERROR Object of class `ModuleType` has no attribute `stopwords` [missing-attribute]
-   --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:280:5
+   --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:280:5
+ERROR Object of class `ModuleType` has no attribute `VECTOR` [missing-attribute]
+  --> providers/vdb/vdb-pgvecto-rs/tests/unit_tests/test_pgvecto_rs.py:25:5
 ERROR Argument `list[Document | SimpleNamespace]` is not assignable to parameter `documents` with type `list[Document]` in function `dify_vdb_pgvector.pgvector.PGVector.add_texts` [bad-argument-type]
-   --> providers/vdb/vdb-pgvector/tests/unit_tests/src/dify_vdb_pgvector/test_pgvector.py:392:28
+   --> providers/vdb/vdb-pgvector/tests/unit_tests/test_pgvector.py:392:28
 ERROR Object of class `ModuleType` has no attribute `QdrantClient` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:110:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:108:5
 ERROR Object of class `ModuleType` has no attribute `FilterSelector` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:111:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:109:5
 ERROR Object of class `ModuleType` has no attribute `HnswConfigDiff` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:112:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:110:5
 ERROR Object of class `ModuleType` has no attribute `PayloadSchemaType` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:113:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:111:5
 ERROR Object of class `ModuleType` has no attribute `TextIndexParams` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:114:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:112:5
 ERROR Object of class `ModuleType` has no attribute `TextIndexType` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:115:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:113:5
 ERROR Object of class `ModuleType` has no attribute `TokenizerType` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:116:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:114:5
 ERROR Object of class `ModuleType` has no attribute `VectorParams` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:117:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:115:5
 ERROR Object of class `ModuleType` has no attribute `Distance` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:118:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:116:5
 ERROR Object of class `ModuleType` has no attribute `PointStruct` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:119:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:117:5
 ERROR Object of class `ModuleType` has no attribute `Filter` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:120:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:118:5
 ERROR Object of class `ModuleType` has no attribute `FieldCondition` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:121:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:119:5
 ERROR Object of class `ModuleType` has no attribute `MatchValue` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:122:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:120:5
 ERROR Object of class `ModuleType` has no attribute `MatchAny` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:123:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:121:5
 ERROR Object of class `ModuleType` has no attribute `MatchText` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:124:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:122:5
 ERROR Object of class `ModuleType` has no attribute `UnexpectedResponse` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:125:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:123:5
 ERROR Object of class `ModuleType` has no attribute `models` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:127:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:125:5
 ERROR Object of class `ModuleType` has no attribute `QdrantLocal` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:128:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:126:5
 ERROR Object of class `ModuleType` has no attribute `qdrant_local` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:129:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:127:5
 ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:431:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:429:5
 ERROR Object of class `ModuleType` has no attribute `VECTOR` [missing-attribute]
-  --> providers/vdb/vdb-relyt/tests/unit_tests/src/dify_vdb_relyt/test_relyt_vector.py:24:5
+  --> providers/vdb/vdb-relyt/tests/unit_tests/test_relyt_vector.py:24:5
+ERROR Object of class `BaseVector` has no attribute `_tablestore_client` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/integration_tests/test_tablestore.py:50:31
+ERROR Object of class `BaseVector` has no attribute `_table_name` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/integration_tests/test_tablestore.py:51:28
+ERROR Object of class `BaseVector` has no attribute `_index_name` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/integration_tests/test_tablestore.py:52:28
+ERROR Object of class `BaseVector` has no attribute `_config` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/integration_tests/test_tablestore.py:76:12
+ERROR Object of class `BaseVector` has no attribute `_config` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/integration_tests/test_tablestore.py:85:12
+ERROR Object of class `ModuleType` has no attribute `OTSClient` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:50:5
+ERROR Object of class `ModuleType` has no attribute `BatchGetRowRequest` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:51:5
+ERROR Object of class `ModuleType` has no attribute `TableInBatchGetRowItem` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:52:5
+ERROR Object of class `ModuleType` has no attribute `Row` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:53:5
+ERROR Object of class `ModuleType` has no attribute `TableMeta` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:54:5
+ERROR Object of class `ModuleType` has no attribute `TableOptions` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:55:5
+ERROR Object of class `ModuleType` has no attribute `CapacityUnit` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:56:5
+ERROR Object of class `ModuleType` has no attribute `ReservedThroughput` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:57:5
+ERROR Object of class `ModuleType` has no attribute `FieldSchema` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:58:5
+ERROR Object of class `ModuleType` has no attribute `VectorOptions` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:59:5
+ERROR Object of class `ModuleType` has no attribute `SearchIndexMeta` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:60:5
+ERROR Object of class `ModuleType` has no attribute `SearchQuery` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:61:5
+ERROR Object of class `ModuleType` has no attribute `TermQuery` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:62:5
+ERROR Object of class `ModuleType` has no attribute `ColumnsToGet` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:63:5
+ERROR Object of class `ModuleType` has no attribute `KnnVectorQuery` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:64:5
+ERROR Object of class `ModuleType` has no attribute `TermsQuery` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:65:5
+ERROR Object of class `ModuleType` has no attribute `Sort` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:66:5
+ERROR Object of class `ModuleType` has no attribute `ScoreSort` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:67:5
+ERROR Object of class `ModuleType` has no attribute `BoolQuery` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:68:5
+ERROR Object of class `ModuleType` has no attribute `MatchQuery` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:69:5
+ERROR Object of class `ModuleType` has no attribute `FieldType` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:71:5
+ERROR Object of class `ModuleType` has no attribute `AnalyzerType` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:72:5
+ERROR Object of class `ModuleType` has no attribute `VectorDataType` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:73:5
+ERROR Object of class `ModuleType` has no attribute `VectorMetricType` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:74:5
+ERROR Object of class `ModuleType` has no attribute `ColumnReturnType` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:75:5
+ERROR Object of class `ModuleType` has no attribute `SortOrder` [missing-attribute]
+  --> providers/vdb/vdb-tablestore/tests/unit_tests/test_tablestore_vector.py:76:5
 ERROR Argument `Index | None` is not assignable to parameter `index` with type `Index` in function `tcvectordb.rpc.model.collection.RPCCollection.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tencent/tests/e2e_tests/conftest.py:90:13
+  --> providers/vdb/vdb-tencent/tests/integration_tests/conftest.py:90:13
 ERROR Argument `xinference_client.types.Embedding | None` is not assignable to parameter `embedding` with type `tcvectordb.model.collection_view.Embedding` in function `tcvectordb.rpc.model.collection.RPCCollection.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tencent/tests/e2e_tests/conftest.py:91:23
+  --> providers/vdb/vdb-tencent/tests/integration_tests/conftest.py:91:23
 ERROR Argument `dict[Unknown, Unknown] | None` is not assignable to parameter `ttl_config` with type `dict[Unknown, Unknown]` in function `tcvectordb.rpc.model.collection.RPCCollection.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tencent/tests/e2e_tests/conftest.py:94:24
+  --> providers/vdb/vdb-tencent/tests/integration_tests/conftest.py:94:24
 ERROR Argument `FilterIndexConfig | None` is not assignable to parameter `filter_index_config` with type `FilterIndexConfig` in function `tcvectordb.rpc.model.collection.RPCCollection.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tencent/tests/e2e_tests/conftest.py:95:33
+  --> providers/vdb/vdb-tencent/tests/integration_tests/conftest.py:95:33
 ERROR Object of class `ModuleType` has no attribute `VectorType` [missing-attribute]
-  --> providers/vdb/vdb-tidb-vector/tests/unit_tests/src/dify_vdb_tidb_vector/test_tidb_vector.py:77:5
-ERROR Cannot find module `deepeval.metrics` [missing-import]
-   --> core/evaluation/frameworks/deepeval/deepeval_evaluator.py:259:5
-ERROR Cannot find module `deepeval.test_case` [missing-import]
-   --> core/evaluation/frameworks/deepeval/deepeval_evaluator.py:268:5
-ERROR Cannot find module `deepeval.models` [missing-import]
-  --> core/evaluation/frameworks/deepeval/deepeval_model_wrapper.py:16:1
-ERROR Class member `DifyDeepEvalModel.supports_structured_outputs` is marked as an override, but no parent class has a matching attribute [bad-override]
-  --> core/evaluation/frameworks/deepeval/deepeval_model_wrapper.py:94:9
-ERROR Class member `DifyDeepEvalModel.supports_temperature` is marked as an override, but no parent class has a matching attribute [bad-override]
-  --> core/evaluation/frameworks/deepeval/deepeval_model_wrapper.py:98:9
-ERROR Cannot find module `langchain_core.embeddings` [missing-import]
- --> core/evaluation/frameworks/ragas/ragas_embeddings_wrapper.py:4:1
-ERROR Class member `DifyEmbeddingsWrapper.aembed_query` is marked as an override, but no parent class has a matching attribute [bad-override]
-  --> core/evaluation/frameworks/ragas/ragas_embeddings_wrapper.py:83:15
-ERROR Class member `DifyEmbeddingsWrapper.aembed_documents` is marked as an override, but no parent class has a matching attribute [bad-override]
-  --> core/evaluation/frameworks/ragas/ragas_embeddings_wrapper.py:87:15
-ERROR Cannot find module `ragas` [missing-import]
-   --> core/evaluation/frameworks/ragas/ragas_evaluator.py:275:9
-ERROR Cannot find module `ragas.dataset_schema` [missing-import]
-   --> core/evaluation/frameworks/ragas/ragas_evaluator.py:276:9
-ERROR Cannot find module `ragas.run_config` [missing-import]
-   --> core/evaluation/frameworks/ragas/ragas_evaluator.py:277:9
-ERROR Cannot find module `ragas.dataset_schema` [missing-import]
-   --> core/evaluation/frameworks/ragas/ragas_evaluator.py:338:9
-ERROR Cannot find module `ragas.dataset_schema` [missing-import]
-   --> core/evaluation/frameworks/ragas/ragas_evaluator.py:415:5
-ERROR Cannot find module `ragas.messages` [missing-import]
-   --> core/evaluation/frameworks/ragas/ragas_evaluator.py:416:5
-ERROR Cannot find module `ragas.metrics` [missing-import]
-   --> core/evaluation/frameworks/ragas/ragas_evaluator.py:417:5
-ERROR Cannot find module `langchain_core.messages` [missing-import]
- --> core/evaluation/frameworks/ragas/ragas_model_wrapper.py:5:1
-ERROR Cannot find module `langchain_core.outputs` [missing-import]
- --> core/evaluation/frameworks/ragas/ragas_model_wrapper.py:6:1
-ERROR Cannot find module `langchain_core.prompt_values` [missing-import]
- --> core/evaluation/frameworks/ragas/ragas_model_wrapper.py:7:1
-ERROR Cannot find module `ragas.llms.base` [missing-import]
- --> core/evaluation/frameworks/ragas/ragas_model_wrapper.py:8:1
-ERROR Unpacked keyword argument `str` is not assignable to parameter `port` with type `int | None` in function `qdrant_client.qdrant_client.QdrantClient.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py:93:51
-ERROR Unpacked keyword argument `str` is not assignable to parameter `grpc_port` with type `int` in function `qdrant_client.qdrant_client.QdrantClient.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py:93:51
-ERROR Unpacked keyword argument `str` is not assignable to parameter `prefer_grpc` with type `bool` in function `qdrant_client.qdrant_client.QdrantClient.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py:93:51
-ERROR Unpacked keyword argument `str` is not assignable to parameter `https` with type `bool | None` in function `qdrant_client.qdrant_client.QdrantClient.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py:93:51
-ERROR Unpacked keyword argument `str` is not assignable to parameter `timeout` with type `int | None` in function `qdrant_client.qdrant_client.QdrantClient.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py:93:51
-ERROR Unpacked keyword argument `str` is not assignable to parameter `force_disable_check_same_thread` with type `bool` in function `qdrant_client.qdrant_client.QdrantClient.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py:93:51
-ERROR Unpacked keyword argument `str` is not assignable to parameter `grpc_options` with type `dict[str, Any] | None` in function `qdrant_client.qdrant_client.QdrantClient.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py:93:51
-ERROR Unpacked keyword argument `str` is not assignable to parameter `auth_token_provider` with type `(() -> Awaitable[str]) | (() -> str) | None` in function `qdrant_client.qdrant_client.QdrantClient.__init__` [bad-argument-type]
-  --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py:93:51
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_service.py:152:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_service.py:153:35
-ERROR Argument `Any | None` is not assignable to parameter `cluster_response` with type `Mapping[str, Any]` in function `TidbService.extract_qdrant_endpoint` [bad-argument-type]
-   --> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_service.py:154:75
+  --> providers/vdb/vdb-tidb-vector/tests/unit_tests/test_tidb_vector.py:77:5
+ERROR Object of class `ModuleType` has no attribute `Vector` [missing-attribute]
+  --> providers/vdb/vdb-upstash/tests/unit_tests/test_upstash_vector.py:35:5
+ERROR Object of class `ModuleType` has no attribute `Index` [missing-attribute]
+  --> providers/vdb/vdb-upstash/tests/unit_tests/test_upstash_vector.py:36:5
+ERROR Object of class `ModuleType` has no attribute `SimpleConnectionPool` [missing-attribute]
+  --> providers/vdb/vdb-vastbase/tests/unit_tests/test_vastbase_vector.py:34:5
+ERROR Object of class `ModuleType` has no attribute `execute_values` [missing-attribute]
+  --> providers/vdb/vdb-vastbase/tests/unit_tests/test_vastbase_vector.py:35:5
+ERROR Object of class `ModuleType` has no attribute `UndefinedTable` [missing-attribute]
+  --> providers/vdb/vdb-vastbase/tests/unit_tests/test_vastbase_vector.py:36:5
+ERROR Object of class `ModuleType` has no attribute `pool` [missing-attribute]
+  --> providers/vdb/vdb-vastbase/tests/unit_tests/test_vastbase_vector.py:38:5
+ERROR Object of class `ModuleType` has no attribute `extras` [missing-attribute]
+  --> providers/vdb/vdb-vastbase/tests/unit_tests/test_vastbase_vector.py:39:5
+ERROR Object of class `ModuleType` has no attribute `errors` [missing-attribute]
+  --> providers/vdb/vdb-vastbase/tests/unit_tests/test_vastbase_vector.py:40:5
+ERROR Object of class `ModuleType` has no attribute `Data` [missing-attribute]
+  --> providers/vdb/vdb-vikingdb/tests/unit_tests/test_vikingdb_vector.py:70:5
+ERROR Object of class `ModuleType` has no attribute `DistanceType` [missing-attribute]
+  --> providers/vdb/vdb-vikingdb/tests/unit_tests/test_vikingdb_vector.py:71:5
+ERROR Object of class `ModuleType` has no attribute `Field` [missing-attribute]
+  --> providers/vdb/vdb-vikingdb/tests/unit_tests/test_vikingdb_vector.py:72:5
+ERROR Object of class `ModuleType` has no attribute `FieldType` [missing-attribute]
+  --> providers/vdb/vdb-vikingdb/tests/unit_tests/test_vikingdb_vector.py:73:5
+ERROR Object of class `ModuleType` has no attribute `IndexType` [missing-attribute]
+  --> providers/vdb/vdb-vikingdb/tests/unit_tests/test_vikingdb_vector.py:74:5
+ERROR Object of class `ModuleType` has no attribute `QuantType` [missing-attribute]
+  --> providers/vdb/vdb-vikingdb/tests/unit_tests/test_vikingdb_vector.py:75:5
+ERROR Object of class `ModuleType` has no attribute `VectorIndexParams` [missing-attribute]
+  --> providers/vdb/vdb-vikingdb/tests/unit_tests/test_vikingdb_vector.py:76:5
+ERROR Object of class `ModuleType` has no attribute `VikingDBService` [missing-attribute]
+  --> providers/vdb/vdb-vikingdb/tests/unit_tests/test_vikingdb_vector.py:77:5
+ERROR Object of class `FromClause` has no attribute `metadata` [missing-attribute]
+  --> tests/helpers/legacy_model_type_migration.py:64:16
+ERROR Object of class `FromClause` has no attribute `metadata` [missing-attribute]
+  --> tests/helpers/legacy_model_type_migration.py:80:16
+ERROR Argument `dict[_KeyType, Any]` is not assignable to parameter `object` with type `dict[str, object]` in function `list.append` [bad-argument-type]
+   --> tests/helpers/legacy_model_type_migration.py:139:23
+ERROR Object of class `FromClause` has no attribute `insert` [missing-attribute]
+   --> tests/helpers/legacy_model_type_migration.py:183:13
+ERROR Missing argument `tenant_id` in function `models.account.TenantAccountJoin.__init__` [missing-argument]
+  --> tests/integration_tests/controllers/console/app/test_chat_message_permissions.py:53:45
+ERROR Missing argument `account_id` in function `models.account.TenantAccountJoin.__init__` [missing-argument]
+  --> tests/integration_tests/controllers/console/app/test_chat_message_permissions.py:53:45
+ERROR Missing argument `tenant_id` in function `models.account.TenantAccountJoin.__init__` [missing-argument]
+  --> tests/integration_tests/controllers/console/app/test_model_config_permissions.py:49:45
+ERROR Missing argument `account_id` in function `models.account.TenantAccountJoin.__init__` [missing-argument]
+  --> tests/integration_tests/controllers/console/app/test_model_config_permissions.py:49:45
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+  --> tests/integration_tests/controllers/openapi/conftest.py:38:43
+ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
+  --> tests/integration_tests/controllers/openapi/conftest.py:43:83
+ERROR Unexpected keyword argument `scopes` in function `libs.oauth_bearer.AuthContext.__replace__` [unexpected-keyword]
+   --> tests/integration_tests/controllers/openapi/test_app_run.py:203:29
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:45:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:46:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:47:23
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:61:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:62:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:63:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:78:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:79:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:80:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:94:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:95:12
+ERROR `None` is not subscriptable [unsupported-operation]
+  --> tests/integration_tests/controllers/openapi/test_apps.py:96:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:110:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:111:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:112:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:126:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:127:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:128:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:168:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:169:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:170:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:171:56
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:191:12
+ERROR `None` is not subscriptable [unsupported-operation]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:202:23
+ERROR `in` is not supported between `Literal['page']` and `None` [not-iterable]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:203:12
+ERROR `in` is not supported between `Literal['limit']` and `None` [not-iterable]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:204:12
+ERROR `in` is not supported between `Literal['total']` and `None` [not-iterable]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:205:12
+ERROR `in` is not supported between `Literal['has_more']` and `None` [not-iterable]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:206:12
+ERROR `not in` is not supported between `Literal['sessions']` and `None` [not-iterable]
+   --> tests/integration_tests/controllers/openapi/test_apps.py:210:12
+ERROR Class member `TestClickZettaVolumeStorage.setUp` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
+  --> tests/integration_tests/storage/test_clickzetta_volume.py:19:9
+ERROR Argument `SSRFProxy` is not assignable to parameter `http_client` with type `HttpClientProtocol | None` in function `graphon.nodes.http_request.node.HttpRequestNode.__init__` [bad-argument-type]
+  --> tests/integration_tests/workflow/nodes/test_http.py:85:21
+ERROR Argument `type[ToolFileManager]` is not assignable to parameter `tool_file_manager_factory` with type `(() -> ToolFileManagerProtocol) | None` in function `graphon.nodes.http_request.node.HttpRequestNode.__init__` [bad-argument-type]
+  --> tests/integration_tests/workflow/nodes/test_http.py:86:35
+ERROR Argument `SSRFProxy` is not assignable to parameter `http_client` with type `HttpClientProtocol` in function `graphon.nodes.http_request.executor.Executor.__init__` [bad-argument-type]
+   --> tests/integration_tests/workflow/nodes/test_http.py:243:25
+ERROR Argument `SSRFProxy` is not assignable to parameter `http_client` with type `HttpClientProtocol | None` in function `graphon.nodes.http_request.node.HttpRequestNode.__init__` [bad-argument-type]
+   --> tests/integration_tests/workflow/nodes/test_http.py:734:21
+ERROR Argument `type[ToolFileManager]` is not assignable to parameter `tool_file_manager_factory` with type `(() -> ToolFileManagerProtocol) | None` in function `graphon.nodes.http_request.node.HttpRequestNode.__init__` [bad-argument-type]
+   --> tests/integration_tests/workflow/nodes/test_http.py:735:35
+ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
+  --> tests/test_containers_integration_tests/controllers/openapi/test_account.py:24:22
+ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
+  --> tests/test_containers_integration_tests/controllers/openapi/test_account.py:49:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:62:22
+  --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:62:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:85:22
+  --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:85:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-   --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:103:22
+   --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:103:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-   --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:112:23
+   --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:112:23
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-   --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:134:22
+   --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:134:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-   --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:153:17
+   --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:153:17
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/e2e_tests/containers/controllers/openapi/test_workspaces.py:27:22
+  --> tests/test_containers_integration_tests/controllers/openapi/test_app_run.py:41:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/e2e_tests/containers/controllers/openapi/test_workspaces.py:47:22
+  --> tests/test_containers_integration_tests/controllers/openapi/test_workspaces.py:27:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/e2e_tests/containers/controllers/openapi/test_workspaces.py:64:22
+  --> tests/test_containers_integration_tests/controllers/openapi/test_workspaces.py:47:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/e2e_tests/containers/controllers/openapi/test_workspaces.py:87:17
-ERROR Argument `Literal['browser']` is not assignable to parameter `type` with type `EndUserType | SQLCoreOperations[EndUserType]` in function `models.model.EndUser.__init__` [bad-argument-type]
-  --> tests/e2e_tests/containers/controllers/web/test_site.py:55:14
+  --> tests/test_containers_integration_tests/controllers/openapi/test_workspaces.py:64:22
+ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
+  --> tests/test_containers_integration_tests/controllers/openapi/test_workspaces.py:87:17
 ERROR Argument `Literal['emoji']` is not assignable to parameter `icon_type` with type `IconType | SQLCoreOperations[IconType | None] | None` in function `models.model.Site.__init__` [bad-argument-type]
-  --> tests/e2e_tests/containers/controllers/web/test_site.py:64:19
+  --> tests/test_containers_integration_tests/controllers/web/test_site.py:64:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
-  --> tests/e2e_tests/containers/controllers/web/test_wraps.py:78:33
+  --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:78:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
-   --> tests/e2e_tests/containers/controllers/web/test_wraps.py:101:33
+   --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:101:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
-   --> tests/e2e_tests/containers/controllers/web/test_wraps.py:113:33
+   --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:113:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
-   --> tests/e2e_tests/containers/controllers/web/test_wraps.py:133:33
+   --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:133:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
-   --> tests/e2e_tests/containers/controllers/web/test_wraps.py:153:33
+   --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:153:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
-   --> tests/e2e_tests/containers/controllers/web/test_wraps.py:172:29
+   --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:172:29
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
-   --> tests/e2e_tests/containers/controllers/web/test_wraps.py:191:33
+   --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:191:33
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
-   --> tests/e2e_tests/containers/controllers/web/test_wraps.py:219:33
-ERROR Argument `Literal['chat']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
-   --> te\n\n... (truncated) ...

@github-actions

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 86.44% 76.29% -10.15%
Strict coverage 86.10% 75.97% -10.14%
Typed symbols 93,593 64,423 -29,170
Untyped symbols 14,735 20,108 +5,373
Modules 4599 3834 -765

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.80%. Comparing base (e7c2c6f) to head (f5e2f6e).
⚠️ Report is 921 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #44456   +/-   ##
=======================================
  Coverage   88.80%   88.80%           
=======================================
  Files        5558     5558           
  Lines      332910   332911    +1     
  Branches    66661    66661           
=======================================
+ Hits       295644   295650    +6     
+ Misses      32088    32084    -4     
+ Partials     5178     5177    -1     
Flag Coverage Δ
api 88.85% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asukaminato0721 asukaminato0721 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2 inline suggestions at f5e2f6efd9, each from a rule learned from earlier reviews in this repository. Reply on a comment if it is wrong.

dify-codereview


@pytest.mark.parametrize("status_code", [402, 409, 403])
@pytest.mark.parametrize("response_text", ['["Forbidden"]', "[]", "null", '"Forbidden"', "123", "false"])
@patch("services.data_source.auth.jina.jina._http_client.post", autospec=True)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is an external boundary: define a small typing.Protocol for what the code needs, have the production code accept it as a parameter, and pass a fake that implements the Protocol in the test, instead of patching or mocking it.

dify-codereview · tests-real-dependencies (protocol-di) Learned from an earlier review. Reply here if this is wrong.

)
from services.data_source.entities.api_key_auth import DataSourceApiKeyAuthCredentials

_error_response_adapter: TypeAdapter[dict[str, Any]] = TypeAdapter(dict[str, Any])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Parse, don't validate (https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/): model this data once at the boundary as a pydantic model / dataclass / TypedDict (Model.model_validate(raw)), and pass the typed value on, instead of passing dicts around and re-checking keys and types where they are used. In a test, don't build this as an ad hoc dict[str, object]: define the shape (TypedDict / model) in the production code and import it here.

dify-codereview · parse-dont-validate Learned from an earlier review. Reply here if this is wrong.

asukaminato0721

This comment was marked as outdated.

@asukaminato0721 asukaminato0721 added the waiting-for-author dify-codereview: the author has suggestions, a conflict, failing CI or unresolved threads to address label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files. waiting-for-author dify-codereview: the author has suggestions, a conflict, failing CI or unresolved threads to address

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants