Repository navigation
fix(agent): flush trailing incomplete action/thought prefixes in ReAct stream parser - #43353
Conversation
…t stream parser handle_react_stream_output buffers characters while scanning for the action:/thought: markers, but only code_block_cache and json_cache were flushed at end of stream. Ordinary text ending in an incomplete marker prefix (e.g. 'hello a', 'hello acti', 'hello thoug') was silently dropped, for both single-chunk and character-level streams. Flush the two pending marker buffers after the stream ends. Complete markers are still consumed as before. Scope: api/core/agent/output_parser/cot_output_parser.py (+8) and regression tests in tests/unit_tests/core/agent/output_parser/ test_cot_output_parser.py (+37, including incomplete-prefix parametrics for both markers in both cases, char-by-char streams, and complete-marker controls). Verification: parser-level pytest run in an isolated environment (stubbed graphon/core.agent.entities imports) on Windows, Python 3.13.12: - on fixed code: 65 passed (38 existing + 27 new) - on baseline HEAD ca27376: 27 failed / 38 passed (all new tests catch the bug; no existing test regressed) - ruff check + ruff format --check: clean on both touched files Fixes langgenius#43350
|
Hi @laipz8200 @QuantumGhost — gentle bump on this one; it's been open since Oct 2 with no review activity. Status on the current head (
No rush if it's queued behind higher-priority work — just flagging it so it doesn't fall through. Happy to re-run the parser suite in a full backend environment, or to rework the fix along whatever lines you'd prefer. |
|
Bumping again — 17 days and CI has never actually run on this one: Unchanged since Oct 2 and still mergeable: 2 files, +45/−0 —
If someone can approve the workflow run, CI would give a definitive answer on the change itself. Happy to rebase or rework the fix along whatever lines you prefer. cc @lyzno1 |
|
Bumping once more — the checks are still The change itself is unchanged since Oct 2: two files, +45 lines, If approving the workflow run for an outside contributor is not something you want to do here, a note either way would help me stop bumping. |
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-10-30 04:51:33.727203185 +0000
+++ /tmp/pyrefly_pr.txt 2026-10-30 04:51:19.075065938 +0000
@@ -1,2175 +1,1629 @@
+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:352: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:634: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/src/dify_vdb_analyticdb/test_analyticdb_vector_sql.py:88:5
+ --> 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/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:381: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/src/dify_vdb_elasticsearch/test_elasticsearch_vector.py:39:5
+ --> providers/vdb/vdb-elasticsearch/tests/unit_tests/test_elasticsearch_ja_vector.py:28: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_ja_vector.py:29:5
+ERROR Object of class `ModuleType` has no attribute `Elasticsearch` [missing-attribute]
+ --> providers/vdb/vdb-elasticsearch/tests/unit_tests/test_elasticsearch_vector.py:37:5
+ERROR Object of class `ModuleType` has no attribute `ConnectionError` [missing-attribute]
+ --> providers/vdb/vdb-elasticsearch/tests/unit_tests/test_elasticsearch_vector.py:38: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-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/src/dify_vdb_iris/test_iris_vector.py:23:5
+ --> 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:40: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:41: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:43: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:44: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:49:5
+ERROR Object of class `ModuleType` has no attribute `ObVecClient` [missing-attribute]
+ --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:50:5
+ERROR Object of class `ModuleType` has no attribute `l2_distance` [missing-attribute]
+ --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:51:5
+ERROR Object of class `ModuleType` has no attribute `cosine_distance` [missing-attribute]
+ --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:52:5
+ERROR Object of class `ModuleType` has no attribute `inner_product` [missing-attribute]
+ --> providers/vdb/vdb-oceanbase/tests/unit_tests/test_oceanbase_vector.py:53: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:52: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:53: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:54: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:55: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:56: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:108: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:372: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:373: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:374: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:375: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:376: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:451: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:24: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:361: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:108:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:101: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:109:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:102: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:110:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:103: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:111:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:104: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:112:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:105: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:113:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:106: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:114:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:107: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:115:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:108: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:116:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:109: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:117:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:110: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:118:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:111: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:119:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:112: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:120:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:113: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:121:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:114: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:122:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:115: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:123:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:116: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:125:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:118: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:126:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:119: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:127:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:120: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:429:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:356: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 `IndexType` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:99:5
+ERROR Object of class `ModuleType` has no attribute `MetricType` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:105:5
+ERROR Object of class `ModuleType` has no attribute `FieldType` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:106:5
+ERROR Object of class `ModuleType` has no attribute `Document` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:108:5
+ERROR Object of class `ModuleType` has no attribute `HNSWSearchParams` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:109:5
+ERROR Object of class `ModuleType` has no attribute `AnnSearch` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:110:5
+ERROR Object of class `ModuleType` has no attribute `Filter` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:111:5
+ERROR Object of class `ModuleType` has no attribute `KeywordSearch` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:112:5
+ERROR Object of class `ModuleType` has no attribute `WeightedRerank` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:113:5
+ERROR Object of class `ModuleType` has no attribute `HNSWParams` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:115:5
+ERROR Object of class `ModuleType` has no attribute `FilterIndex` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:116:5
+ERROR Object of class `ModuleType` has no attribute `VectorIndex` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:117:5
+ERROR Object of class `ModuleType` has no attribute `SparseIndex` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:118:5
+ERROR Object of class `ModuleType` has no attribute `BM25Encoder` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:120:5
+ERROR Object of class `ModuleType` has no attribute `document` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:122:5
+ERROR Object of class `ModuleType` has no attribute `enum` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:123:5
+ERROR Object of class `ModuleType` has no attribute `index` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:124:5
+ERROR Object of class `ModuleType` has no attribute `RPCVectorDBClient` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:126:5
+ERROR Object of class `ModuleType` has no attribute `VectorDBException` [missing-attribute]
+ --> providers/vdb/vdb-tencent/tests/unit_tests/test_tencent_vector.py:127:5
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 Argument `Literal['normal']` is not assignable to parameter `status` with type `ConversationStatus | SQLCoreOperations[ConversationStatus]` in function `models.model.Conversation.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:75:16
-ERROR Argument `Literal['app-run']` is not assignable to parameter `triggered_from` with type `SQLCoreOperations[WorkflowRunTriggeredFrom] | WorkflowRunTriggeredFrom` in function `models.workflow.WorkflowRun.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:91:24
-ERROR Argument `float` is not assignable to parameter `message_unit_price` with type `Decimal | SQLCoreOperations[Decimal]` in function `models.model.Message.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:120:28
-ERROR Argument `float` is not assignable to parameter `answer_unit_price` with type `Decimal | SQLCoreOperations[Decimal]` in function `models.model.Message.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:121:27
-ERROR Argument `float` is not assignable to parameter `message_price_unit` with type `Decimal | SQLCoreOperations[Decimal]` in function `models.model.Message.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:122:28
-ERROR Argument `float` is not assignable to parameter `answer_price_unit` with type `Decimal | SQLCoreOperations[Decimal]` in function `models.model.Message.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:123:27
-ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `MessageStatus | SQLCoreOperations[MessageStatus]` in function `models.model.Message.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:125:16
-ERROR Returned type `set[str | None]` is not assignable to declared return type `set[str]` [bad-return]
- --> tests/e2e_tests/containers/controllers/console/test_apikey.py:221:16
+ --> 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:83: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:84: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:241: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:730: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:731:35
ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
- --> tests/e2e_tests/containers/controllers/openapi/test_account.py:24:22
+ --> tests/test_containers_integration_tests/controllers/openapi/test_account.py:24:22
ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
- --> tests/e2e_tests/containers/controllers/openapi/test_account.py:49:22
+ --> 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_app_run.py:46:13
+ --> 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:27: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:47: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:64:22
+ --> tests/test_containers_integration_tests/controllers/openapi/test_workspaces.py:64: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: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]
- --> tests/e2e_tests/containers/controllers/web/test_wraps.py:237:18
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:219:33
+ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+ --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:182:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+ --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:183:9
+ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Session]` in function `core.app.layers.pause_state_persist_layer.PauseStatePersistenceLayer.__init__` [bad-argument-type]
+ --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:321:29
+ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTest\n\n... (truncated) ... |
Pyrefly Type Coverage
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #43353 +/- ##
=======================================
Coverage 88.16% 88.16%
=======================================
Files 5510 5510
Lines 328306 328310 +4
Branches 65105 65107 +2
=======================================
+ Hits 289466 289470 +4
- Misses 33645 33646 +1
+ Partials 5195 5194 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
CotAgentOutputParser.handle_react_stream_outputbuffers characters while scanning for theaction:/thought:markers, but at end of stream onlycode_block_cacheandjson_cacheare flushed. Ordinary text ending in an incomplete marker prefix (a,acti,thoug,ACTION, …) is silently dropped, with either single-chunk or character-level streams:This adds the two missing buffer flushes after the stream ends, matching the approach described in #43350. Complete
action:/thought:markers are still consumed as before, and mid-stream flushes are untouched. (Heads-up to @sergioperezcheco: I saw your repro and proposed approach in the issue and went ahead with the small buffer-flush fix + regression tests; happy to hand the branch over if you already had a PR in flight.)Motivation
Fixes #43350
Checklist
Testing
Parser-level verification on Windows / Python 3.13.12, running the full
test_cot_output_parser.pysuite under pytest with the parser's two heavy imports stubbed (graphon.model_runtime.entities.llm_entities,core.agent.entities), since a full backend environment was not available locally. The production code under test is unmodified except for the fix itself.main(ca273762): 27 failed / 38 passed — every new test catches the bug, no existing test regressedruff checkandruff format --checkpass on both touched files