Repository navigation
Refactor command execution to use Utopia\Command - #11937
Draft
TorstenDittmann wants to merge 7 commits into
Draft
TorstenDittmann wants to merge 7 commits into
TorstenDittmann wants to merge 7 commits into
Conversation
🔄 PHP-Retry SummaryFlaky tests detected across commits: Commit
|
| Test | Retries | Total Time | Details |
|---|---|---|---|
UsageTest::testPrepareDatabaseStatsTablesAPI |
1 | 32.61s | Logs |
LegacyConsoleClientTest::testInvalidDocumentStructure |
1 | 240.53s | Logs |
LegacyCustomClientTest::testAttributeResponseModels |
1 | 240.55s | Logs |
LegacyCustomServerTest::testListDocumentsCacheBustedByAttributeChange |
1 | 240.46s | Logs |
LegacyCustomServerTest::testEnforceCollectionPermissions |
1 | 240.10s | Logs |
VectorsDBConsoleClientTest::testGetCollectionLogs |
1 | 8ms | Logs |
DatabasesConsoleClientTest::testGetCollectionLogs |
1 | 15ms | Logs |
Commit 31461c9 - 28 flaky tests
| Test | Retries | Total Time | Details |
|---|---|---|---|
UsageTest::testFunctionsStats |
1 | 10.23s | Logs |
UsageTest::testPrepareSitesStats |
1 | 7ms | Logs |
UsageTest::testEmbeddingsTextUsageDoesNotBreakProjectUsage |
1 | 7ms | Logs |
WebhooksCustomServerTest::testDeleteDeployment |
1 | 16ms | Logs |
WebhooksCustomServerTest::testDeleteFunction |
1 | 14ms | Logs |
WebhooksCustomServerTest::testCreateCollection |
1 | 12ms | Logs |
WebhooksCustomServerTest::testCreateAttributes |
1 | 11ms | Logs |
WebhooksCustomServerTest::testCreateDocument |
1 | 15ms | Logs |
WebhooksCustomServerTest::testUpdateDocument |
1 | 15ms | Logs |
WebhooksCustomServerTest::testDeleteDocument |
1 | 13ms | Logs |
WebhooksCustomServerTest::testCreateTable |
1 | 13ms | Logs |
WebhooksCustomServerTest::testCreateColumns |
1 | 11ms | Logs |
WebhooksCustomServerTest::testCreateRow |
1 | 16ms | Logs |
WebhooksCustomServerTest::testUpdateRow |
1 | 11ms | Logs |
WebhooksCustomServerTest::testDeleteRow |
1 | 12ms | Logs |
WebhooksCustomServerTest::testCreateStorageBucket |
1 | 8ms | Logs |
WebhooksCustomServerTest::testUpdateStorageBucket |
1 | 15ms | Logs |
WebhooksCustomServerTest::testCreateBucketFile |
1 | 15ms | Logs |
WebhooksCustomServerTest::testUpdateBucketFile |
1 | 7ms | Logs |
WebhooksCustomServerTest::testDeleteBucketFile |
1 | 15ms | Logs |
WebhooksCustomServerTest::testDeleteStorageBucket |
1 | 25ms | Logs |
WebhooksCustomServerTest::testCreateTeam |
1 | 15ms | Logs |
WebhooksCustomServerTest::testUpdateTeam |
1 | 16ms | Logs |
WebhooksCustomServerTest::testUpdateTeamPrefs |
1 | 17ms | Logs |
WebhooksCustomServerTest::testDeleteTeam |
1 | 8ms | Logs |
WebhooksCustomServerTest::testCreateTeamMembership |
1 | 22ms | Logs |
WebhooksCustomServerTest::testDeleteTeamMembership |
1 | 24ms | Logs |
WebhooksCustomServerTest::testWebhookAutoDisable |
1 | 30ms | Logs |
Commit 5091861 - 8 flaky tests
| Test | Retries | Total Time | Details |
|---|---|---|---|
UsageTest::testStorageStats |
1 | 10.43s | Logs |
RealtimeConsoleClientTest::testIndexesCollectionAPI |
1 | 120.09s | Logs |
RealtimeConsoleClientTest::testIndexesTablesAPI |
1 | 120.08s | Logs |
RealtimeConsoleClientTest::testDeleteAttributeCollectionsAPI |
1 | 120.08s | Logs |
RealtimeCustomClientQueryTest::testChannelActionFilterByDocumentId |
1 | 30.13s | Logs |
RealtimeCustomClientQueryTest::testChannelActionFilterDeliversDeleteEvents |
1 | 30.09s | Logs |
RealtimeCustomClientTest::testChannelsTablesDB |
1 | 121.03s | Logs |
RealtimeCustomClientTest::testChannelMirrorEventsAcrossDatabasesAndTablesdb |
1 | 120.49s | Logs |
Commit 2663e97 - 5 flaky tests
| Test | Retries | Total Time | Details |
|---|---|---|---|
LegacyConsoleClientTest::testPatchAttribute |
1 | 240.18s | Logs |
LegacyConsoleClientTest::testTimeout |
1 | 129.09s | Logs |
LegacyConsoleClientTest::testSpatialRelationshipOneToOne |
1 | 240.14s | Logs |
LegacyCustomClientTest::testUpsertDocument |
1 | 240.90s | Logs |
LegacyCustomServerTest::testPatchAttribute |
1 | 240.14s | Logs |
Commit 52ba0f4 - 2 flaky tests
| Test | Retries | Total Time | Details |
|---|---|---|---|
RealtimeConsoleClientTest::testIndexesCollectionAPI |
1 | 297ms | Logs |
RealtimeCustomClientTest::testChannelDatabase |
1 | 17ms | Logs |
Note: Flaky test results are tracked for the last 5 commits
✨ Benchmark resultsComparing 1.9.x (before) to feat/command-execute-migration (after). Before
After
Delta
Top API waits
|
…-migration # Conflicts: # composer.lock
…-migration # Conflicts: # src/Appwrite/Platform/Modules/Functions/Workers/Builds.php
loks0n
added a commit
that referenced
this pull request
Sep 10, 2026
Bump utopia-php/console to ^0.2 and build every locally composed shell command with Utopia\Command instead of concatenating escaped strings. Plain commands now reach proc_open as an argument array (no shell), and the one composite chain (the template commit-and-push in the builds worker) is rendered by the library with every argument escaped. Migrated call sites: - src/Appwrite/Certificates/LetsEncrypt.php: certbot issuance - src/Appwrite/Platform/Modules/Functions/Workers/Builds.php: mkdir, mv, rsync, git config/checkout/add/commit/push chain, git rev-parse, rm - src/Appwrite/Migration/Infrastructure/Version/V1.php: docker volume ls and the two docker run invocations that count and copy build artifacts - tests/e2e: every tar packaging helper, docker exec/inspect/logs and the mkdir in the empty-site test The two git clone commands in the builds worker are left as strings because utopia-php/vcs still returns them as such. utopia-php/database is bumped to 7.3.8, the first release that accepts console 0.2. Supersedes #11937 by @TorstenDittmann. Co-Authored-By: Claude Fable 5.1 <[email protected]>
loks0n
added a commit
that referenced
this pull request
Sep 10, 2026
Bump utopia-php/console to ^0.2 and build every locally composed shell command with Utopia\Command instead of concatenating escaped strings. Plain commands now reach proc_open as an argument array (no shell), and the one composite chain (the template commit-and-push in the builds worker) is rendered by the library with every argument escaped. Migrated call sites: - src/Appwrite/Certificates/LetsEncrypt.php: certbot issuance - src/Appwrite/Platform/Modules/Functions/Workers/Builds.php: mkdir, mv, rsync, git config/checkout/add/commit/push chain, git rev-parse, rm - src/Appwrite/Migration/Infrastructure/Version/V1.php: docker volume ls and the two docker run invocations that count and copy build artifacts - tests/e2e: every tar packaging helper, docker exec/inspect/logs and the mkdir in the empty-site test The two git clone commands in the builds worker are left as strings because utopia-php/vcs still returns them as such. utopia-php/database is bumped to 7.3.8, the first release that accepts console 0.2. Supersedes #11937 by @TorstenDittmann. Co-Authored-By: Claude Fable 5.1 <[email protected]>
loks0n
added a commit
that referenced
this pull request
Sep 12, 2026
Bump utopia-php/console to ^0.2 and build every locally composed shell command with Utopia\Command instead of concatenating escaped strings. Plain commands now reach proc_open as an argument array (no shell), and the one composite chain (the template commit-and-push in the builds worker) is rendered by the library with every argument escaped. Migrated call sites: - src/Appwrite/Certificates/LetsEncrypt.php: certbot issuance - src/Appwrite/Platform/Modules/Functions/Workers/Builds.php: mkdir, mv, rsync, git config/checkout/add/commit/push chain, git rev-parse, rm - src/Appwrite/Migration/Infrastructure/Version/V1.php: docker volume ls and the two docker run invocations that count and copy build artifacts - tests/e2e: every tar packaging helper, docker exec/inspect/logs and the mkdir in the empty-site test The two git clone commands in the builds worker are left as strings because utopia-php/vcs still returns them as such. utopia-php/database is bumped to 7.3.8, the first release that accepts console 0.2. Supersedes #11937 by @TorstenDittmann. Co-Authored-By: Claude Fable 5.1 <[email protected]>
loks0n
added a commit
that referenced
this pull request
Sep 14, 2026
Bump utopia-php/console to ^0.2 and build every locally composed shell command with Utopia\Command instead of concatenating escaped strings. Plain commands now reach proc_open as an argument array (no shell), and the one composite chain (the template commit-and-push in the builds worker) is rendered by the library with every argument escaped. Migrated call sites: - src/Appwrite/Certificates/LetsEncrypt.php: certbot issuance - src/Appwrite/Platform/Modules/Functions/Workers/Builds.php: mkdir, mv, rsync, git config/checkout/add/commit/push chain, git rev-parse, rm - src/Appwrite/Migration/Infrastructure/Version/V1.php: docker volume ls and the two docker run invocations that count and copy build artifacts - tests/e2e: every tar packaging helper, docker exec/inspect/logs and the mkdir in the empty-site test The two git clone commands in the builds worker are left as strings because utopia-php/vcs still returns them as such. utopia-php/database is bumped to 7.3.8, the first release that accepts console 0.2. Supersedes #11937 by @TorstenDittmann. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
utopia-php/consolecommand-validation branch for a PoC and switch Appwrite command execution toUtopia\CommandConsole::execute(...)call sites in build workers, certificate issuance, and affected test helpers away from shell-built stringsutopia-php/vcsexposes a structured command APITesting