Jake Barnby
a7046dbe3c
(fix): Replace tab characters with spaces in tests.yml workflow
2026-02-26 22:43:23 +13:00
Jake Barnby
3ecb4ee4e2
Sync 1.8.x
2026-02-26 18:50:29 +13:00
Jake Barnby
b41678d57a
Merge remote-tracking branch 'origin/feat-mongodb' into feat-installer
...
# Conflicts:
# .github/workflows/tests.yml
# Dockerfile
# app/views/install/compose.phtml
# composer.lock
# mongo-entrypoint.sh
# src/Appwrite/Platform/Tasks/Install.php
# src/Appwrite/Platform/Tasks/Upgrade.php
# tests/e2e/Client.php
# tests/e2e/Services/Databases/DatabasesBase.php
# tests/e2e/Services/Databases/Legacy/DatabasesCustomClientTest.php
# tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php
# tests/e2e/Services/Databases/TablesDB/DatabasesBase.php
# tests/e2e/Services/Databases/TablesDB/DatabasesCustomClientTest.php
# tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php
# tests/e2e/Services/Databases/Transactions/TransactionsBase.php
# tests/e2e/Services/GraphQL/Legacy/DatabaseServerTest.php
# tests/e2e/Services/GraphQL/TablesDB/DatabaseServerTest.php
# tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
# tests/e2e/Services/Teams/TeamsCustomClientTest.php
2026-02-13 17:09:42 +13:00
Jake Barnby
9c40d0c6f8
Merge pull request #11317 from appwrite/copilot/sub-pr-11312
2026-02-13 03:02:25 +00:00
Jake Barnby
2b536078bb
Merge branch '1.8.x' into feat-mongodb
2026-02-13 02:19:37 +00:00
copilot-swe-agent[bot]
3d58ed10dc
Use explicit empty strings for environment variables
...
Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com >
2026-02-13 02:06:37 +00:00
copilot-swe-agent[bot]
0a79370e1c
Use GitHub Actions env config instead of sed commands
...
Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com >
2026-02-13 02:05:30 +00:00
loks0n
4326600751
Refactor CI workflows: add COMPOSE_FILE env, add build targets, bump action versions, pin composer
...
- Add COMPOSE_FILE=docker-compose.yml to tests, benchmark, and sdk-preview to prevent loading overrides in CI
- Add target: development to tests/benchmark builds, target: production to pr-scan/nightly builds
- Bump actions/checkout v4→v6, docker/build-push-action v4/v5→v6, actions/upload-artifact v4→v6, actions/github-script v7→v8
- Pin composer images to 2.8 in linter and static-analysis workflows
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 00:56:03 +00:00
Jake Barnby
f0e6105ba0
fix: Use Docker Compose profiles to isolate database containers in CI
...
- Add profiles to database services (mariadb, mongodb, postgresql) so only
the needed database starts per CI job, freeing resources for the executor
- Increase Sites deployment activation timeouts from 50-100s to 200s for
MongoDB compatibility
- Increase SSR logs polling timeout from 30s to 120s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 07:27:21 +13:00
Jake Barnby
eaff193055
fix: Resolve PostgreSQL DNS failure by routing through Docker's embedded DNS
...
The appwrite container's `dns: 172.16.238.100` (CoreDNS) bypassed Docker's
embedded DNS, preventing resolution of service names like `postgresql`.
CoreDNS only handles custom test domains and forwards unknown queries to
Cloudflare, which can't resolve Docker service names.
Fix: Add 127.0.0.11 (Docker embedded DNS) as primary resolver and configure
CoreDNS to forward unknown queries to Docker DNS with Cloudflare as fallback.
Bind CoreDNS to its static IP to avoid port conflict with Docker's DNS proxy.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 04:02:31 +13:00
Jake Barnby
fc893e1c7e
fix: Add connect_timeout to PostgreSQL DSN and add server logs to CI
...
PDO ATTR_TIMEOUT does not control connection timeout for the pgsql driver.
Without connect_timeout in the DSN, the PDO constructor blocks indefinitely
if PostgreSQL isn't ready, which blocks the Swoole master process event loop
(since coroutine hooks are not enabled in http.php) and prevents all HTTP
request dispatching.
Also add appwrite server logs to CI failure output for debugging.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 03:17:48 +13:00
Jake Barnby
ccb8b9eb6f
Revert "fix: Set MariaDB adapter for non-adapter-specific CI tests"
...
This reverts commit 17d9a72922 .
2026-02-13 00:35:56 +13:00
Jake Barnby
17d9a72922
fix: Set MariaDB adapter for non-adapter-specific CI tests
...
The .env defaults were changed to mongodb, but tests that don't
explicitly set a DB adapter (general, shared mode, abuse, screenshots)
were implicitly using the default. These tests need MariaDB since
shared tables mode is not supported with MongoDB yet.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 00:34:38 +13:00
Jake Barnby
638778413d
Fix workflows
2026-02-12 23:44:45 +13:00
Jake Barnby
5590f0bcd0
Merge remote-tracking branch 'origin/1.8.x' into feat-mongodb
...
# Conflicts:
# .env
# .github/workflows/tests.yml
# app/controllers/api/projects.php
# app/controllers/api/teams.php
# app/init/registers.php
# app/views/install/compose.phtml
# composer.json
# composer.lock
# docker-compose.yml
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Create.php
# src/Appwrite/Platform/Tasks/Install.php
# src/Appwrite/Platform/Tasks/Upgrade.php
# tests/e2e/Services/Databases/Legacy/DatabasesBase.php
# tests/e2e/Services/Databases/TablesDB/DatabasesBase.php
2026-02-12 23:35:21 +13:00
Chirag Aggarwal
b243404a71
chore(ci): add PR comment permissions to retry jobs
2026-02-11 16:53:25 +05:30
Chirag Aggarwal
dcb759e3fe
chore(ci): restore retry job metadata inputs
2026-02-11 16:49:59 +05:30
Chirag Aggarwal
5371aa6820
chore(ci): add php-retry to tests workflow
2026-02-11 16:30:29 +05:30
ArnabChatterjee20k
e3aaac7f9f
Merge remote-tracking branch 'origin/1.8.x' into pg-adapter
2026-02-06 11:35:38 +05:30
Jake Barnby
e70739a3c0
Merge remote-tracking branch 'origin/1.8.x' into feat-mongodb
...
# Conflicts:
# Dockerfile
# app/controllers/api/account.php
# app/controllers/api/avatars.php
# app/controllers/api/console.php
# app/controllers/api/projects.php
# app/controllers/api/storage.php
# app/controllers/api/teams.php
# app/http.php
# app/init/database/filters.php
# app/init/registers.php
# app/init/resources.php
# app/views/install/compose.phtml
# composer.json
# composer.lock
# docker-compose.yml
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Update.php
# src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php
# src/Appwrite/Platform/Tasks/Install.php
# tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
2026-02-05 01:01:03 +13:00
Jake Barnby
afe800197b
Update .github/workflows/tests.yml
2026-01-19 23:39:53 +13:00
Jake Barnby
c5c2c44755
Fix PHPUnit --exclude-group deprecation warning
...
PHPUnit 11+ warns when using comma-separated values with --exclude-group.
This warning causes the tests to return exit code 1 despite all tests passing.
Fix by using separate --exclude-group flags for each group.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-15 17:33:51 +13:00
Jake Barnby
714b8d7ea6
Migrate to PHPUnit 11
2026-01-15 16:14:53 +13:00
Jake Barnby
1a22c281f5
Parallelise
2026-01-10 21:25:06 +13:00
Jake Barnby
f797ae3ac6
Remove sleeps
2026-01-10 14:53:29 +13:00
Matej Bačo
a37aa2dd68
Generic abuse test group
2026-01-05 22:51:11 +01:00
ArnabChatterjee20k
ee35322db6
Merge remote-tracking branch 'upstream/1.8.x' into pg-adapter
2025-12-29 16:56:02 +05:30
Darshan
45d5f14b83
add: targets.
2025-12-13 16:43:19 +05:30
Jake Barnby
d8d970e03e
Merge remote-tracking branch 'origin/1.8.x' into feat-mongodb
...
# Conflicts:
# app/controllers/api/account.php
# app/controllers/api/messaging.php
# app/controllers/api/projects.php
# app/controllers/api/storage.php
# app/controllers/api/teams.php
# app/controllers/api/users.php
# composer.lock
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Line/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Point/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Polygon/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Line/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Point/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Polygon/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Create.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Delete.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Decrement.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Increment.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Delete.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Get.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/XList.php
# src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php
# src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php
# src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Create.php
# src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Update.php
2025-11-20 17:46:19 +13:00
Steven Nguyen
babddf2d1e
fix: clarify bold formatting in triage instructions
2025-11-12 11:49:58 -08:00
Steven Nguyen
73d8fbfebc
feat: update issue-triage to process comments for AI spam
2025-11-12 10:56:33 -08:00
Steven Nguyen
09933ce658
refactor: Simplify issue retrieval - use single since query
...
The list_issues tool's 'since' parameter already filters by updated_at,
which captures both newly created issues AND recently commented issues in
a single query. Removed redundant second query.
2025-11-07 12:28:14 -08:00
Steven Nguyen
b225503dc5
feat: Enhance issue triage with updated criteria
...
- Include issues updated in last 24 hours (with new comments), not just newly created
- Add non-English content check: detect and request English translation respectfully
- Add multi-topic detection: ask users to split issues with multiple unrelated topics
- Improve spam detection with clear guidance
- Enhanced with empathetic approach for language and topic guidance
- Add parameter hints for list_label tool usage
- Clarify good first issue label application criteria
- Update summary message to reflect new triage scope
2025-11-07 12:26:13 -08:00
Steven Nguyen
a77a279539
fix: update issue-triage workflow
...
- look for duplicate issues across the org
- fix deprecated timeout_minutes
2025-11-07 12:17:51 -08:00
Steven Nguyen
b1e65725b5
fix: increase safe-outputs limits (labels=100, comments=10) and extend workflow stop-time
2025-11-07 12:01:42 -08:00
Steven Nguyen
84ebbc6993
fix: Enable labels toolset in GitHub MCP server
...
- Add github tool configuration with 'default' and 'labels' toolsets
- The labels toolset was not enabled by default, causing the agent
to fall back to bash commands like 'gh label list'
- Now list_label MCP tool will be available to the agent
2025-11-06 15:43:31 -08:00
Steven Nguyen
94db75fd6c
fix: Correct GitHub MCP tool name from list_labels to list_label
...
The correct tool name in GitHub MCP server is 'list_label' (singular), not 'list_labels' (plural). This was causing the agent to fall back to bash commands like 'gh label list' instead of using the proper MCP tool.
2025-11-06 15:05:45 -08:00
Steven Nguyen
2e4397a951
fix: Use GitHub MCP list_labels tool instead of bash gh command
...
- Replace 'gh label list' bash command instruction with 'list_labels' GitHub MCP tool
- GitHub MCP tools are already enabled and authenticated, no additional config needed
- Fixes permission denied errors when agent tried to use gh CLI
2025-11-06 14:33:24 -08:00
Steven Nguyen
2f255ce01c
fix: Enable batch mode for issue triage safe-outputs
...
- Add target: "*" to safe-outputs configuration for add-labels and add-comment
- This allows the workflow to apply comments and labels to multiple issues
when running in scheduled/manual trigger mode (batch processing)
- Previously, safe-outputs jobs were skipped because they required
github.event.issue.number which only exists in event-triggered runs
- With target: "*", the workflow now reads issue numbers from the agent
output and applies changes to each issue individually
2025-11-06 11:50:38 -08:00
copilot-swe-agent[bot]
2f843153da
Add duplicate/related issues detection and listing to triage workflow
...
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com >
2025-11-03 20:02:03 +00:00
copilot-swe-agent[bot]
1f9afc8cab
Update issue-triage workflow to run daily and process last 24h issues
...
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com >
2025-11-01 15:47:43 +00:00
Steven Nguyen
e5cd093a7b
Apply suggestion from @stnguyen90
2025-10-29 00:45:49 -07:00
copilot-swe-agent[bot]
2078e52798
Add contents: read permission to AI Moderator workflow
...
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com >
2025-10-29 07:16:52 +00:00
Steven Nguyen
37dfce0f5b
Merge pull request #10718 from appwrite/add-workflow-workflows-issue-triage.md-5094
...
Add agentic workflow issue-triage
2025-10-29 00:04:22 -07:00
Steven Nguyen
eec3d210ee
Add agentic workflow issue-triage
2025-10-28 03:00:30 +00:00
copilot-swe-agent[bot]
b729c8119d
Fix parameter name to use 'token' instead of 'github-token'
...
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com >
2025-10-28 02:18:07 +00:00
copilot-swe-agent[bot]
30a093a0d5
Add GitHub AI Moderator workflow
...
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com >
2025-10-28 02:16:40 +00:00
Steven Nguyen
21b95c2645
chore: create workflow to auto add labels to issues
2025-10-24 11:24:57 -07:00
Jake Barnby
2f6bc9115f
Fix workflows init
2025-10-01 21:35:55 +13:00
Jake Barnby
daeb721995
Fix tests
2025-09-30 23:44:26 +13:00