Skip to content

test(api): align unit and E2E suites with production structure - #44605

Merged
laipz8200 merged 4 commits into
mainfrom
laipz8200/reorganize-api-tests
Oct 23, 2026
Merged

laipz8200 merged 4 commits into
mainfrom
laipz8200/reorganize-api-tests

Conversation

@laipz8200

@laipz8200 laipz8200 commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #44604.

Backend unit-test paths and filenames do not consistently match their production modules, and integration scenarios are spread across several directories. Organize the API and provider suites into unit and E2E groups, with unit modules following the production directory structure and test_<production_filename> naming.

  • Move middleware, container, KnowledgeFS vector, and provider integration scenarios into e2e_tests/; keep shared helpers outside the mirrored unit tree.
  • Consolidate existing files that cover the same production module while preserving their assertions and fixture scopes. Prefer whole-file renames wherever possible.
  • Match CODEOWNERS to the corresponding production directories and modules.
  • Update imports, fixture locations, runner and CI paths, and documentation references for the new layout. Production code remains unchanged.
  • Document the required unit-test layout and naming convention in the backend guide linked from api/AGENTS.md.
  • Preserve incremental Python guard baselines for code moved between files and renamed imports, while rejecting additional or changed calls and keeping patched method invocations outside the constructor rule.

Screenshots

Not applicable; this change reorganizes repository files.

Checklist

  • 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 updated the documentation accordingly.

Mirror backend and provider unit-test directories and filenames against their
production modules. Move integration scenarios into E2E suites and shared
helpers out of the mirrored tree, consolidating existing tests only where
multiple files cover the same module.

Preserve production code and existing test behavior while updating imports,
fixture locations, runner and CI paths, documentation references, and
CODEOWNERS to match the new layout and production ownership.

Refs #44604
@github-actions github-actions Bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Oct 23, 2026
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 78.31% 78.31% +0.00%
Strict coverage 78.01% 77.99% -0.01%
Typed symbols 73,743 73,664 -79
Untyped symbols 20,507 20,486 -21
Modules 4210 3910 -300

Document exact production-directory mirroring and test_ filenames for backend and provider unit suites, and link the rule from the API agent guide.
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-10-23 07:53:49.959502417 +0000
+++ /tmp/pyrefly_pr.txt	2026-10-23 07:53:39.595391132 +0000
@@ -1,1649 +1,2015 @@
 ERROR Missing argument `min_connection` in function `dify_vdb_analyticdb.analyticdb_vector_sql.AnalyticdbVectorBySqlConfig.__init__` [missing-argument]
-  --> providers/vdb/vdb-analyticdb/tests/integration_tests/test_analyticdb.py:19:55
+  --> providers/vdb/vdb-analyticdb/tests/e2e_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/integration_tests/test_analyticdb.py:19:55
+  --> providers/vdb/vdb-analyticdb/tests/e2e_tests/test_analyticdb.py:19:55
 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
+  --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/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/test_analyticdb_vector_sql.py:102:5
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/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/test_analyticdb_vector_sql.py:141:22
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/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/test_analyticdb_vector_sql.py:143:20
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/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/test_analyticdb_vector_sql.py:381:5
+   --> providers/vdb/vdb-analyticdb/tests/unit_tests/src/dify_vdb_analyticdb/test_analyticdb_vector_sql.py:381:5
 ERROR Object of class `ModuleType` has no attribute `Elasticsearch` [missing-attribute]
-  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/test_elasticsearch_vector.py:39:5
+  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/src/dify_vdb_elasticsearch/test_elasticsearch_vector.py:39:5
 ERROR Object of class `ModuleType` has no attribute `ConnectionError` [missing-attribute]
-  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/test_elasticsearch_vector.py:40:5
+  --> providers/vdb/vdb-elasticsearch/tests/unit_tests/src/dify_vdb_elasticsearch/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/integration_tests/conftest.py:56:32
+  --> providers/vdb/vdb-hologres/tests/e2e_tests/conftest.py:56:32
 ERROR Object of class `ModuleType` has no attribute `connect` [missing-attribute]
-  --> providers/vdb/vdb-iris/tests/unit_tests/test_iris_vector.py:23:5
+  --> providers/vdb/vdb-iris/tests/unit_tests/src/dify_vdb_iris/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/test_iris_vector.py:34:5
+  --> providers/vdb/vdb-iris/tests/unit_tests/src/dify_vdb_iris/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/test_iris_vector.py:339:5
+   --> providers/vdb/vdb-iris/tests/unit_tests/src/dify_vdb_iris/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/integration_tests/test_lindorm.py:21:41
+  --> providers/vdb/vdb-lindorm/tests/e2e_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/integration_tests/test_lindorm.py:41:41
+  --> providers/vdb/vdb-lindorm/tests/e2e_tests/test_lindorm.py:41:41
 ERROR Object of class `ModuleType` has no attribute `BulkIndexError` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/test_lindorm_vector.py:40:5
+  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:40:5
 ERROR Object of class `ModuleType` has no attribute `bulk` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/test_lindorm_vector.py:41:5
+  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:41:5
 ERROR Object of class `ModuleType` has no attribute `OpenSearch` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/test_lindorm_vector.py:43:5
+  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:43:5
 ERROR Object of class `ModuleType` has no attribute `helpers` [missing-attribute]
-  --> providers/vdb/vdb-lindorm/tests/unit_tests/test_lindorm_vector.py:44:5
+  --> providers/vdb/vdb-lindorm/tests/unit_tests/src/dify_vdb_lindorm/test_lindorm_vector.py:44:5
 ERROR Object of class `ModuleType` has no attribute `MilvusException` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:79:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:79:5
 ERROR Object of class `ModuleType` has no attribute `MilvusClient` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:80:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:80:5
 ERROR Object of class `ModuleType` has no attribute `IndexParams` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:81:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:81:5
 ERROR Object of class `ModuleType` has no attribute `CollectionSchema` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:82:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:82:5
 ERROR Object of class `ModuleType` has no attribute `DataType` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:83:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:83:5
 ERROR Object of class `ModuleType` has no attribute `FieldSchema` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:84:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:84:5
 ERROR Object of class `ModuleType` has no attribute `Function` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:85:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:85:5
 ERROR Object of class `ModuleType` has no attribute `FunctionType` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:86:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:86:5
 ERROR Object of class `ModuleType` has no attribute `IndexParams` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:87:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:87:5
 ERROR Object of class `ModuleType` has no attribute `types` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:88:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:88:5
 ERROR Object of class `ModuleType` has no attribute `infer_dtype_bydata` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:89:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:89:5
 ERROR Object of class `ModuleType` has no attribute `milvus_client` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:92:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:92:5
 ERROR Object of class `ModuleType` has no attribute `orm` [missing-attribute]
-  --> providers/vdb/vdb-milvus/tests/unit_tests/test_milvus.py:93:5
+  --> providers/vdb/vdb-milvus/tests/unit_tests/src/dify_vdb_milvus/test_milvus_vector.py:93:5
 ERROR `config` may be uninitialized [unbound-name]
-  --> providers/vdb/vdb-opengauss/tests/integration_tests/test_opengauss.py:35:20
+  --> providers/vdb/vdb-opengauss/tests/e2e_tests/test_opengauss.py:35:20
 ERROR Object of class `ModuleType` has no attribute `OpenSearch` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:49:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:52:5
 ERROR Object of class `ModuleType` has no attribute `Urllib3AWSV4SignerAuth` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:50:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:53:5
 ERROR Object of class `ModuleType` has no attribute `Urllib3HttpConnection` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:51:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:54:5
 ERROR Object of class `ModuleType` has no attribute `helpers` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:52:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:55:5
 ERROR Object of class `ModuleType` has no attribute `BulkIndexError` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:53:5
+  --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:56:5
 ERROR Object of class `ModuleType` has no attribute `Session` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch.py:104:9
+   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:108:13
 ERROR Object of class `ModuleType` has no attribute `OpenSearch` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:50:5
+   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:372:5
 ERROR Object of class `ModuleType` has no attribute `Urllib3AWSV4SignerAuth` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:51:5
+   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:373:5
 ERROR Object of class `ModuleType` has no attribute `Urllib3HttpConnection` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:52:5
+   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:374:5
 ERROR Object of class `ModuleType` has no attribute `helpers` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:53:5
+   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:375:5
 ERROR Object of class `ModuleType` has no attribute `BulkIndexError` [missing-attribute]
-  --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:54:5
+   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:376:5
 ERROR Object of class `ModuleType` has no attribute `Session` [missing-attribute]
-   --> providers/vdb/vdb-opensearch/tests/unit_tests/test_opensearch_vector.py:127:5
+   --> providers/vdb/vdb-opensearch/tests/unit_tests/src/dify_vdb_opensearch/test_opensearch_vector.py:451:9
 ERROR Object of class `ModuleType` has no attribute `cut` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:20:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:20:5
 ERROR Object of class `ModuleType` has no attribute `posseg` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:21:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:21:5
 ERROR Object of class `ModuleType` has no attribute `Connection` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:29:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:29:5
 ERROR Object of class `ModuleType` has no attribute `defaults` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:30:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/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/test_oraclevector.py:31:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:31:5
 ERROR Object of class `ModuleType` has no attribute `create_pool` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:32:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:32:5
 ERROR Object of class `ModuleType` has no attribute `connect` [missing-attribute]
-  --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:33:5
+  --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:33:5
 ERROR Object of class `ModuleType` has no attribute `data` [missing-attribute]
-   --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:278:5
+   --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:278:5
 ERROR Object of class `ModuleType` has no attribute `word_tokenize` [missing-attribute]
-   --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:279:5
+   --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:279:5
 ERROR Object of class `ModuleType` has no attribute `stopwords` [missing-attribute]
-   --> providers/vdb/vdb-oracle/tests/unit_tests/test_oraclevector.py:280:5
+   --> providers/vdb/vdb-oracle/tests/unit_tests/src/dify_vdb_oracle/test_oraclevector.py:280: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/test_pgvector.py:392:28
+   --> providers/vdb/vdb-pgvector/tests/unit_tests/src/dify_vdb_pgvector/test_pgvector.py:392:28
 ERROR Object of class `ModuleType` has no attribute `QdrantClient` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:108:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:108:5
 ERROR Object of class `ModuleType` has no attribute `FilterSelector` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:109:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:109:5
 ERROR Object of class `ModuleType` has no attribute `HnswConfigDiff` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:110:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:110:5
 ERROR Object of class `ModuleType` has no attribute `PayloadSchemaType` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:111:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:111:5
 ERROR Object of class `ModuleType` has no attribute `TextIndexParams` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:112:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:112:5
 ERROR Object of class `ModuleType` has no attribute `TextIndexType` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:113:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:113:5
 ERROR Object of class `ModuleType` has no attribute `TokenizerType` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:114:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:114:5
 ERROR Object of class `ModuleType` has no attribute `VectorParams` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:115:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:115:5
 ERROR Object of class `ModuleType` has no attribute `Distance` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:116:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:116:5
 ERROR Object of class `ModuleType` has no attribute `PointStruct` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:117:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:117:5
 ERROR Object of class `ModuleType` has no attribute `Filter` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:118:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:118:5
 ERROR Object of class `ModuleType` has no attribute `FieldCondition` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:119:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:119:5
 ERROR Object of class `ModuleType` has no attribute `MatchValue` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:120:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:120:5
 ERROR Object of class `ModuleType` has no attribute `MatchAny` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:121:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:121:5
 ERROR Object of class `ModuleType` has no attribute `MatchText` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:122:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:122:5
 ERROR Object of class `ModuleType` has no attribute `UnexpectedResponse` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:123:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:123:5
 ERROR Object of class `ModuleType` has no attribute `models` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:125:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:125:5
 ERROR Object of class `ModuleType` has no attribute `QdrantLocal` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:126:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/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/test_qdrant_vector.py:127:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:127:5
 ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
-   --> providers/vdb/vdb-qdrant/tests/unit_tests/test_qdrant_vector.py:429:5
+   --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:429:5
 ERROR Object of class `ModuleType` has no attribute `VECTOR` [missing-attribute]
-  --> providers/vdb/vdb-relyt/tests/unit_tests/test_relyt_vector.py:24:5
+  --> providers/vdb/vdb-relyt/tests/unit_tests/src/dify_vdb_relyt/test_relyt_vector.py:24: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/integration_tests/conftest.py:90:13
+  --> providers/vdb/vdb-tencent/tests/e2e_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/integration_tests/conftest.py:91:23
+  --> providers/vdb/vdb-tencent/tests/e2e_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/integration_tests/conftest.py:94:24
+  --> providers/vdb/vdb-tencent/tests/e2e_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/integration_tests/conftest.py:95:33
+  --> providers/vdb/vdb-tencent/tests/e2e_tests/conftest.py:95:33
 ERROR Object of class `ModuleType` has no attribute `VectorType` [missing-attribute]
-  --> providers/vdb/vdb-tidb-vector/tests/unit_tests/test_tidb_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 `str` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
-  --> tests/integration_tests/controllers/openapi/test_app_run.py:73:22
-ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `AppStatus | SQLCoreOperations[AppStatus]` in function `models.model.App.__init__` [bad-argument-type]
-  --> tests/integration_tests/controllers/openapi/test_app_run.py:74:24
-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 `Literal['workflow']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
-  --> tests/integration_tests/tasks/test_remove_app_and_related_data_task.py:30:18
-ERROR Argument `Literal['workflow']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
-  --> tests/integration_tests/tasks/test_remove_app_and_related_data_task.py:51:22
-ERROR Argument `Literal['workflow']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
-   --> tests/integration_tests/tasks/test_remove_app_and_related_data_task.py:406:22
-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 `*` is not supported between `float` and `str` [unsupported-operation]
-  --> tests/knowledge_fs_vector_integration/test_backends.py:54:37
-ERROR `*` is not supported between `str` and `float` [unsupported-operation]
-  --> tests/knowledge_fs_vector_integration/test_backends.py:54:37
-ERROR `*` is not supported between `str` and `str` [unsupported-operation]
-  --> tests/knowledge_fs_vector_integration/test_backends.py:54:37
-ERROR Object of class `QdrantClient` has no attribute `client` [missing-attribute]
-   --> tests/knowledge_fs_vector_integration/test_backends.py:106:17
-ERROR Object of class `TextClient` has no attribute `client` [missing-attribute]
-  --> tests/knowledge_fs_vector_integration/test_fulltext.py:77:17
+  --> providers/vdb/vdb-tidb-vector/tests/unit_tests/src/dify_vdb_tidb_vector/test_tidb_vector.py:77:5
+ERROR Argument `ModuleSpec | None` is not assignable to parameter `spec` with type `ModuleSpec` in function `_frozen_importlib.module_from_spec` [bad-argument-type]
+  --> tests/unit_tests/migrations/versions/test_2025_07_02_2332-1c9ba48be8e4_add_uuidv7_function_in_sql.py:31:46
+ERROR Object of class `NoneType` has no attribute `loader` [missing-attribute]
+  --> tests/unit_tests/migrations/versions/test_2025_07_02_2332-1c9ba48be8e4_add_uuidv7_function_in_sql.py:32: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/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:74:16
+  --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:74:16
 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/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:119:28
+   --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:119: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/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:120:27
+   --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:120: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/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:121:28
+   --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:121: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/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:122:27
+   --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:122: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/test_containers_integration_tests/controllers/console/app/test_chat_conversation_status_count_api.py:124:16
+   --> tests/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:124:16
 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/test_containers_integration_tests/controllers/console/app/test_conversation_read_timestamp.py:28:16
+  --> tests/e2e_tests/containers/controllers/console/app/test_conversation_read_timestamp.py:28:16
 ERROR Returned type `set[str | None]` is not assignable to declared return type `set[str]` [bad-return]
-   --> tests/test_containers_integration_tests/controllers/console/test_apikey.py:221:16
+   --> tests/e2e_tests/containers/controllers/console/test_apikey.py:221:16
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/test_containers_integration_tests/controllers/openapi/test_account.py:24:22
+  --> tests/e2e_tests/containers/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
+  --> tests/e2e_tests/containers/controllers/openapi/test_account.py:49:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:62:22
+  --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:62:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:85:22
+  --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:85:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-   --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:103:22
+   --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:103:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-   --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:112:23
+   --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:112:23
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-   --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:134:22
+   --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:134:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-   --> tests/test_containers_integration_tests/controllers/openapi/test_account_sessions.py:153:17
+   --> tests/e2e_tests/containers/controllers/openapi/test_account_sessions.py:153:17
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/test_containers_integration_tests/controllers/openapi/test_app_run.py:41:22
+  --> tests/e2e_tests/containers/controllers/openapi/test_app_run.py:41:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/test_containers_integration_tests/controllers/openapi/test_workspaces.py:27:22
+  --> tests/e2e_tests/containers/controllers/openapi/test_workspaces.py:27:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/test_containers_integration_tests/controllers/openapi/test_workspaces.py:47:22
+  --> tests/e2e_tests/containers/controllers/openapi/test_workspaces.py:47:22
 ERROR Object of class `FunctionType` has no attribute `__handler__` [missing-attribute]
-  --> tests/test_containers_integration_tests/controllers/openapi/test_workspaces.py:64:22
+  --> tests/e2e_tests/containers/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
+  --> 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/test_containers_integration_tests/controllers/web/test_site.py:55:14
+  --> tests/e2e_tests/containers/controllers/web/test_site.py:55:14
 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/test_containers_integration_tests/controllers/web/test_site.py:64:19
+  --> tests/e2e_tests/containers/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/test_containers_integration_tests/controllers/web/test_wraps.py:78:33
+  --> tests/e2e_tests/containers/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/test_containers_integration_tests/controllers/web/test_wraps.py:101:33
+   --> tests/e2e_tests/containers/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/test_containers_integration_tests/controllers/web/test_wraps.py:113:33
+   --> tests/e2e_tests/containers/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/test_containers_integration_tests/controllers/web/test_wraps.py:133:33
+   --> tests/e2e_tests/containers/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/test_containers_integration_tests/controllers/web/test_wraps.py:153:33
+   --> tests/e2e_tests/containers/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/test_containers_integration_tests/controllers/web/test_wraps.py:172:29
+   --> tests/e2e_tests/containers/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/test_containers_integration_tests/controllers/web/test_wraps.py:191:33
+   --> tests/e2e_tests/containers/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/test_containers_integration_tests/controllers/web/test_wraps.py:219:33
+   --> 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/test_containers_integration_tests/controllers/web/test_wraps.py:237:18
+   --> tests/e2e_tests/containers/controllers/web/test_wraps.py:237:18
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-  --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:38:23
+  --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:38:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-  --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:53:27
+  --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:53:27
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-  --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:73:60
+  --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:73:60
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-  --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:78:39
+  --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:78:39
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-  --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:99:23
+  --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:99:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:111:27
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:111:27
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:130:60
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:130:60
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:153:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:153:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:165:27
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:165:27
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:184:60
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:184:60
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:207:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:207:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:219:27
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:219:27
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:238:60
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:238:60
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:271:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:271:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:282:60
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:282:60
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:317:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:317:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:328:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:328:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:359:60
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:359:60
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:364:39
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:364:39
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:386:60
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:386:60
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:412:27
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:412:27
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:424:27
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:424:27
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:444:60
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:444:60
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:471:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:471:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:481:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:481:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:499:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:499:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:540:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:540:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:550:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:550:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:588:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:588:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:598:23
+   --> tests/e2e_tests/containers/core/rag/retrieval/test_dataset_retrieval_integration.py:598:23
 ERROR Argument `str` is not assignable to parameter `icon_type` with type `IconType | SQLCoreOperations[IconType | None] | None` in function `models.model.App.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:185:23
+   --> tests/e2e_tests/containers/core/workflow/test_human_input_resume_node_execution.py:185:23
 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/test_containers_integration_tests/helpers/execution_extra_content.py:48:14
+  --> tests/e2e_tests/containers/helpers/execution_extra_content.py:48:14
 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/test_containers_integration_tests/helpers/execution_extra_content.py:58:14
+  --> tests/e2e_tests/containers/helpers/execution_extra_content.py:58:14
 ERROR Argument `Literal['emoji']` is not assignable to parameter `icon_type` with type `IconType | SQLCoreOperations[IconType | None] | None` in function `models.model.App.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:59:19
+  --> tests/e2e_tests/containers/helpers/execution_extra_content.py:59:19
 ERROR Argument `Literal['chat']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.Conversation.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:77:14
+  --> tests/e2e_tests/containers/helpers/execution_extra_content.py:77:14
 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/test_containers_integration_tests/helpers/execution_extra_content.py:82:16
+  --> tests/e2e_tests/containers/helpers/execution_extra_content.py:82:16
 ERROR Returned type `int | str` is not assignable to declared return type `str` [bad-return]
-   --> tests/test_containers_integration_tests/libs/broadcast_channel/redis/test_sharded_channel.py:367:16
+   --> tests/e2e_tests/containers/libs/broadcast_channel/redis/test_sharded_channel.py:367:16
 ERROR Object of class `TypeEngine` has no attribute `length` [missing-attribute]
-   --> tests/test_containers_integration_tests/models/test_types_enum_text.py:105:16
+   --> tests/e2e_tests/containers/models/test_types_enum_text.py:105:16
 ERROR Object of class `NoneType` has no attribute `user_type` [missing-attribute]
-   --> tests/test_containers_integration_tests/models/test_types_enum_text.py:142:20
+   --> tests/e2e_tests/containers/models/test_types_enum_text.py:142:20
 ERROR Object of class `NoneType` has no attribute `user_type_nullable` [missing-attribute]
-   --> tests/test_containers_integration_tests/models/test_types_enum_text.py:143:20
+   --> tests/e2e_tests/containers/models/test_types_enum_text.py:143:20
 ERROR Object of class `NoneType` has no attribute `user_type` [missing-attribute]
-   --> tests/test_containers_integration_tests/models/test_types_enum_text.py:147:20
+   --> tests/e2e_tests/containers/models/test_types_enum_text.py:147:20
 ERROR Object of class `NoneType` has no attribute `user_type_nullable` [missing-attribute]
-   --> tests/test_containers_integration_tests/models/test_types_enum_text.py:148:20
+   --> tests/e2e_tests/containers/models/test_types_enum_text.py:148:20
 ERROR Generator function should return `Generator` [bad-return]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_api_workflow_run_repository.py:150:56
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_api_workflow_run_repository.py:150:56
 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/test_containers_integration_tests/repositories/test_sqlalchemy_execution_extra_content_repository.py:103:14
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:103:14
 ERROR Argument `Literal['emoji']` is not assignable to parameter `icon_type` with type `IconType | SQLCoreOperations[IconType | None] | None` in function `models.model.App.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_execution_extra_content_repository.py:104:19
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:104:19
 ERROR Argument `Literal['chat']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.Conversation.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_execution_extra_content_repository.py:125:14
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:125:14
 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/test_containers_integration_tests/repositories/test_sqlalchemy_execution_extra_content_repository.py:130:16
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:130:16
 ERROR Argument `str | None` is not assignable to parameter `tenant_id` with type `str` in function `_create_node_execution_model` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:184:23
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:184:23
 ERROR Argument `str | None` is not assignable to parameter `tenant_id` with type `str` in function `_create_node_execution_model` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:193:23
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:193:23
 ERROR Argument `str | None` is not assignable to parameter `tenant_id` with type `str` in function `_create_node_execution_model` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:223:23
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:223:23
 ERROR Argument `str | None` is not assignable to parameter `tenant_id` with type `str` in function `_create_node_execution_model` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:232:23
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:232:23
 ERROR Argument `str | None` is not assignable to parameter `value` with type `SQLCoreOperations[str] | str` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:319:30
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:319:30
 ERROR Argument `Literal['workflow-run']` is not assignable to parameter `value` with type `SQLCoreOperations[WorkflowNodeExecutionTriggeredFrom] | WorkflowNodeExecutionTriggeredFrom` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:322:35
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:322:35
 ERROR Argument `Literal['account']` is not assignable to parameter `value` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:338:36
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:338:36
 ERROR Argument `str | None` is not assignable to parameter `value` with type `SQLCoreOperations[str] | str` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:371:30
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:371:30
 ERROR Argument `Literal['workflow-run']` is not assignable to parameter `value` with type `SQLCoreOperations[WorkflowNodeExecutionTriggeredFrom] | WorkflowNodeExecutionTriggeredFrom` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:374:35
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:374:35
 ERROR Argument `Literal['succeeded']` is not assignable to parameter `value` with type `SQLCoreOperations[WorkflowNodeExecutionStatus] | WorkflowNodeExecutionStatus` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:385:27
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:385:27
 ERROR Argument `Literal['account']` is not assignable to parameter `value` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/repositories/test_sqlalchemy_workflow_node_execution_repository.py:390:36
+   --> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:390:36
 ERROR Generator function should return `Generator` [bad-return]
-  --> tests/test_containers_integration_tests/repositories/test_workflow_run_repository.py:89:56
+  --> tests/e2e_tests/containers/repositories/test_workflow_run_repository.py:89:56
 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/test_containers_integration_tests/services/dataset_service_update_delete.py:95:18
+  --> tests/e2e_tests/containers/services/dataset_service_update_delete.py:95:18
 ERROR Argument `Literal['emoji']` is not assignable to parameter `icon_type` with type `IconType | SQLCoreOperations[IconType | None] | None` in function `models.model.App.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/services/dataset_service_update_delete.py:96:23
+  --> tests/e2e_tests/containers/services/dataset_service_update_delete.py:96:23
 ERROR Argument `str` is not assignable to parameter `data_source_type` with type `DataSourceType | SQLCoreOperations[DataSourceType]` in function `models.dataset.Document.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/services/document_service_status.py:90:30
+  --> tests/e2e_tests/containers/services/document_service_status.py:90:30
 ERROR Argument `str` is not assignable to parameter `value` with type `IndexingStatus | SQLCoreOperations[IndexingStatus]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/services/document_service_status.py:99:36
+  --> tests/e2e_tests/containers/services/document_service_status.py:99:36
 ERROR `in` is not supported between `Literal['document_name']` and `None` [not-iterable]
-    --> tests/test_containers_integration_tests/services/document_service_status.py:1264:16
+    --> tests/e2e_tests/containers/services/document_service_status.py:1264:16
 ERROR `None` is not subscriptable [unsupported-operation]
-    --> tests/test_containers_integration_tests/services/document_service_status.py:1265:16
+    --> tests/e2e_tests/containers/services/document_service_status.py:1265:16
 ERROR `None` is not subscriptable [unsupported-operation]
-    --> tests/test_containers_integration_tests/services/document_service_status.py:1266:16
+    --> tests/e2e_tests/containers/services/document_service_status.py:1266:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_agent_service.py:135:38
+   --> tests/e2e_tests/containers/services/test_agent_service.py:135:38
 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/test_containers_integration_tests/services/test_agent_service.py:168:20
+   --> tests/e2e_tests/contain\n\n... (truncated) ...

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.74555% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.29%. Comparing base (ee98bdd) to head (e9b9818).

Files with missing lines Patch % Lines
.../src/dify_vdb_opensearch/test_opensearch_vector.py 99.50% 2 Missing ⚠️
...ests/src/dify_vdb_weaviate/test_weaviate_vector.py 98.56% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #44605   +/-   ##
=======================================
  Coverage   89.28%   89.29%           
=======================================
  Files        5990     5983    -7     
  Lines      374966   375030   +64     
  Branches    76036    76041    +5     
=======================================
+ Hits       334807   334870   +63     
- Misses      34124    34125    +1     
  Partials     6035     6035           
Flag Coverage Δ
api 89.19% <99.74%> (+0.01%) ⬆️
dify-ui 92.38% <ø> (ø)
web 89.18% <ø> (-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.

@laipz8200
laipz8200 marked this pull request as draft October 23, 2026 06:37
Point shared E2E setup at the relocated middleware environment fixture. Compare removed and added guard matches by Python syntax so existing calls keep their baseline across file moves and import aliases, while extra copies and different calls remain violations.

Keep patched method invocations outside the mock-constructor rule and restore original helper names where consolidation permits it. Cover relocation, duplication, changed arguments, and alias handling without changing production behavior.
@github-actions github-actions Bot added the e2e End-to-end tests and E2E test infrastructure. label Oct 23, 2026
@laipz8200
laipz8200 marked this pull request as ready for review October 23, 2026 07:14
@laipz8200
laipz8200 enabled auto-merge October 23, 2026 07:15
hjlarry
hjlarry previously approved these changes Oct 23, 2026
@laipz8200
laipz8200 added this pull request to the merge queue Oct 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 23, 2026
Merge main's TypeBase model migration into the reorganized backend suite,
carrying its constructor and fixture updates into the moved and consolidated
test modules. Keep the new model migration cases in models/test_model.py so
unit test paths and filenames continue to mirror production code.
@laipz8200
laipz8200 disabled auto-merge October 23, 2026 07:54
@laipz8200
laipz8200 enabled auto-merge October 23, 2026 07:54
@laipz8200
laipz8200 disabled auto-merge October 23, 2026 07:54
@laipz8200
laipz8200 enabled auto-merge October 23, 2026 07:54
@laipz8200
laipz8200 added this pull request to the merge queue Oct 23, 2026
Merged via the queue into main with commit bf2f058 Oct 23, 2026
63 checks passed
@laipz8200
laipz8200 deleted the laipz8200/reorganize-api-tests branch October 23, 2026 08:08
cty-ut added a commit to cty-ut/dify that referenced this pull request Oct 23, 2026
…ng-indexing

Move the delete-ordering regression test into
tests/unit_tests/services/knowledge/test_dataset_service.py, where langgenius#44605
consolidated the document service unit tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xhdnoah added a commit to xhdnoah/dify that referenced this pull request Oct 28, 2026
Remove the include_own_datasets parameter and the conditional gate so
that maintainers always retain visibility of their own datasets when
RBAC is enabled, matching the main branch behavior.

The LTS branch predates the dataset application boundary refactor
(langgenius#41729, 2026-09-29) that introduced api/services/knowledge/datasets/.
The same logic is applied to the pre-refactor files instead.

The main branch PR added a maintainer-visibility test with an empty
accessible_dataset_ids list (test_list_visibility_restricts_even_requested_ids
in test_adapters.py, introduced by langgenius#44605 on 2026-10-23). LTS forked
on 2026-09-10 and never received that test. Add two equivalent tests
to test_dataset_service_dataset.py covering the boundary scenario
where accessible_dataset_ids is empty but the maintainer should still
see their own dataset — this is the exact regression that langgenius#44795
fixes and the LTS existing tests only cover the non-empty case.

(cherry picked from commit a394d04)
xhdnoah added a commit that referenced this pull request Oct 28, 2026
Remove the include_own_datasets parameter and the conditional gate so
that maintainers always retain visibility of their own datasets when
RBAC is enabled, matching the main branch behavior.

The LTS branch predates the dataset application boundary refactor
(#41729, 2026-09-29) that introduced api/services/knowledge/datasets/.
The same logic is applied to the pre-refactor files instead.

The main branch PR added a maintainer-visibility test with an empty
accessible_dataset_ids list (test_list_visibility_restricts_even_requested_ids
in test_adapters.py, introduced by #44605 on 2026-10-23). LTS forked
on 2026-09-10 and never received that test. Add two equivalent tests
to test_dataset_service_dataset.py covering the boundary scenario
where accessible_dataset_ids is empty but the maintainer should still
see their own dataset — this is the exact regression that #44795
fixes and the LTS existing tests only cover the non-empty case.

(cherry picked from commit a394d04)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e End-to-end tests and E2E test infrastructure. size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor/Chore] Separate backend E2E and unit suites and mirror production ownership

3 participants