Skip to content

CI: test MongoDB shared_v1/v2 only#11815

Draft
premtsd-code wants to merge 19 commits into1.9.xfrom
fix-ci-mongo-shared
Draft

CI: test MongoDB shared_v1/v2 only#11815
premtsd-code wants to merge 19 commits into1.9.xfrom
fix-ci-mongo-shared

Conversation

@premtsd-code
Copy link
Copy Markdown
Contributor

Summary

  • Temporary PR to isolate and reproduce MongoDB shared_v1/v2 E2E failures after the DI container migration merge
  • All other CI jobs disabled to save runner time
  • Only runs: MongoDB shared_v1 + shared_v2 E2E service tests

Context

These tests fail after merging 1.9.x (with feat/migrate-di-container) into bump-database-version2. The DI migration PR only ran MongoDB dedicated tests (27 jobs), never shared-table modes.

- Bump utopia-php/database from 5.3.17 to 5.3.19

- Remove invalid (int) cast on tenant sequence in shared tables mode

- Fix DSN construction for documentsdb/vectorsdb: filter empty strings
  from explode(), skip pool filtering when shared tables env vars unset,
  fail fast when no pool found

- Use dedicated mode for separate database pools in getDatabasesDB
  since shared tables can't work across engines (PostgreSQL integer
  _tenant vs MongoDB UUID tenant). Auto-init schema on first use.

- Add documentsdb/vectorsdb shared tables env vars to CI workflow

- Fix testChannelTablesDBRowUpdate race condition with deterministic
  event drain loop
# Conflicts:
#	src/Appwrite/Event/Message/Usage.php
…apter skips to Databases VectorsDB/DocumentsDB tests
# Conflicts:
#	src/Appwrite/Platform/Modules/Databases/Http/VectorsDB/Collections/Create.php
Resolve merge conflicts in app/init/resources.php and app/worker.php
caused by the DI container migration (Http::setResource/Server::setResource
to $container->set). Port separate-pool shared tables logic for
getDatabasesDB to the new file locations (request.php and message.php)
with the correct $databaseDSN->getParam('namespace') fix.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

🔄 PHP-Retry Summary

Flaky tests detected across commits:

Commit a2f8454 - 7 flaky tests
Test Retries Total Time Details
LegacyConsoleClientTest::testListDocumentsWithCache 1 1.30s Logs
LegacyConsoleClientTest::testListDocumentsCacheBustedByAttributeChange 1 1.77s Logs
LegacyConsoleClientTest::testCreatedBetween 1 240.48s Logs
LegacyCustomClientTest::testListIndexes 1 240.67s Logs
LegacyCustomServerTest::testAttributeResponseModels 1 241.61s Logs
VectorsDBConsoleClientTest::testGetCollectionLogs 1 9ms Logs
DatabasesConsoleClientTest::testGetCollectionLogs 1 10ms Logs
Commit c36d434 - 5 flaky tests
Test Retries Total Time Details
LegacyCustomClientTest::testAttributeResponseModels 1 241.88s Logs
LegacyTransactionsCustomClientTest::testIncrementDecrementEndpointsWithTransaction 1 240.08s Logs
LegacyTransactionsCustomServerTest::testRollback 1 240.43s Logs
VectorsDBConsoleClientTest::testGetCollectionLogs 1 12ms Logs
DatabasesConsoleClientTest::testGetCollectionLogs 1 15ms Logs

@blacksmith-sh
Copy link
Copy Markdown

blacksmith-sh Bot commented Apr 7, 2026

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
Tests\E2E\Services\TablesDB\Transactions</code>
TablesDBTransactionsCustomServerTest::testBulkUpdateWithDependentDocuments
View Logs

Fix in Cursor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant