Commit graph

105 commits

Author SHA1 Message Date
Jake Barnby
a0b8437f08 fix: scope file caching to Database tests only, revert for non-Database tests
The previous file caching approach cached getRoot(), getUser(), getProject(),
and getConsoleVariables() globally. This caused all test methods in a class
to share the same project, breaking non-Database tests that expect isolated
state (Account 401s, Storage 500s, Users 404s, etc.).

Now file caching is only applied in Database/Transaction test setup chains:
- ensureSharedProject() in DatabasesBase, TransactionsBase, TransactionPermissionsBase
  creates and file-caches both the project AND user so all methods share
  consistent project + user state (needed for collection permissions)
- Non-Database tests (Account, Storage, Users, etc.) create their own
  isolated projects per-process as before

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 02:46:56 +13:00
Jake Barnby
3ea1e8e59f fix: add file-based cross-process caching for ParaTest --functional mode
With --functional mode, each test method runs in its own process so
static caches are empty. This causes every method to recreate projects,
databases, collections, attributes, and indexes - flooding the serial
database worker queue and causing attribute polling timeouts.

File-based caching with file locks ensures resources are created once
per test class, then shared across all method processes. This restores
--functional mode and dramatically reduces worker queue load.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 01:47:20 +13:00
Jake Barnby
991af09fdf fix: improve auth retry resilience for MongoDB CI stability
- Increase callWithAuthRetry from 5 to 8 retries with capped delay (50s total)
- Increase ProjectCustom retries from 3 to 5 with 1s delays
- Fix swapped assertEquals parameters in FunctionsBase for clearer errors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 21:46:24 +13:00
Jake Barnby
5df786b5ad fix: add retry logic for 401 errors and explicit site deployment activation
- Add retry logic with delays for transient 401 auth errors during project
  setup in ProjectCustom::getProject() (cherry-pick from feat-db-tests)
- Replace 10-minute activation polling in SitesBase with 30-second auto-activation
  wait followed by explicit PATCH /sites/:siteId/deployment fallback to prevent
  test suite timeouts when the build worker is slow to auto-activate

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:05:49 +13:00
Matej Bačo
615aff0714 Allow custom ID for API keys 2026-02-09 14:34:05 +01:00
Steven Nguyen
a94ccdb4f5
fix: enhance SMTP authentication by using env vars 2025-12-12 06:02:17 +00:00
Jake Barnby
b2fa28754d
Merge remote-tracking branch 'origin/1.7.x' into 1.8.x
# Conflicts:
#	.github/workflows/benchmark.yml
#	composer.lock
#	src/Appwrite/Event/Database.php
2025-07-04 10:00:45 -04:00
Matej Bačo
918ad8979d Fix flakyness of account tests 2025-06-26 18:07:59 +02:00
Darshan
789064e295 add: new scopes to the api. 2025-06-25 11:29:45 +05:30
ArnabChatterjee20k
28fbd64864 updated session invalidation tests , models and descriptions 2025-06-17 00:40:32 +05:30
ArnabChatterjee20k
7a0ba95231 updated onPasswordChange to invalidate session 2025-06-16 23:05:52 +05:30
ArnabChatterjee20k
fde2f278e8 added invalidating sessions for the project users 2025-06-14 18:07:42 +05:30
Matej Bačo
d5cb9d0f1f
Merge branch '1.7.x' into feat-tokens-module 2025-04-22 12:25:51 +02:00
Chirag Aggarwal
6d0d15f469 Merge branch '1.7.x' into feat-tokens-module 2025-04-18 16:01:06 +00:00
Matej Bačo
9993cca484 Merge branch '1.7.x' into feat-development-keys 2025-04-17 15:51:31 +02:00
Chirag Aggarwal
b2dffe4057 Merge branch '1.7.x' into feat-tokens-module 2025-04-17 06:19:18 +00:00
Darshan
b358dad817 update: merge '1.7.x' on feat-development-keys. 2025-03-22 18:35:10 +05:30
Matej Bačo
cb85cfc5d9 Merge branch '1.7.x' into feat-sites 2025-03-20 16:42:36 +01:00
shimon
faed019d92 revert 2025-03-19 09:32:48 +02:00
shimon
e9841e53b9 revert 2025-03-18 21:40:46 +02:00
shimon
7149deeacb _app_region 2025-03-17 18:11:49 +02:00
Matej Bačo
7e00bc493c Add SSR tests 2025-02-28 18:29:17 +01:00
Chirag Aggarwal
ba0a6f0097 chore: added requires scopes, fix call method 2025-02-05 14:14:03 +00:00
Chirag Aggarwal
a98f32b5e1 merge with 1.7.x 2025-02-04 16:56:14 +00:00
Matej Bačo
9a94023bde Merge remote-tracking branch 'origin/feat-sites' into feat-add-tests-for-sites 2025-01-21 13:41:08 +00:00
Khushboo Verma
426bcffd1a Resolve merge conflicts 2025-01-09 17:25:24 +05:30
Khushboo Verma
6bf9adfb51 Added some sites tests 2025-01-02 02:21:30 +05:30
Damodar Lohani
05baa6090d fix cycle 2024-12-15 10:31:55 +00:00
Damodar Lohani
ba83dd9252 fix dev key creation 2024-12-15 09:33:17 +00:00
Damodar Lohani
3ad865319c refactor: rename endpoint 2024-12-15 09:22:16 +00:00
Damodar Lohani
4ffdc9c103 fix existing test by adding dev key 2024-12-15 09:22:05 +00:00
Khushboo Verma
b88cd8e544 Add subdomain param in functions and tests 2024-11-07 21:55:41 +05:30
Bradley Schofield
bb72fd8834 Fix source creds being over written and begin implementing migrations tests 2024-10-30 14:23:24 +09:00
loks0n
fa28496b32 feat: ssr dx changes 2024-02-20 11:45:11 +00:00
loks0n
0092af7ac6 chore: rename new scopes 2024-01-17 11:17:03 +00:00
loks0n
5c803f6eff Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-ssr 2024-01-08 11:41:55 +00:00
loks0n
1b6a833bed fix: encode session for ssr clients 2023-12-19 15:45:44 +00:00
loks0n
453c1928ee fix: teams tests 2023-12-11 20:56:59 +00:00
Prateek Banga
3ade88897c Merge branch 'main' of https://github.com/appwrite/appwrite into chore-sync-main-1.5.x 2023-11-10 12:49:05 +05:30
Matej Bačo
b2d385944a Add function domain cookie test 2023-10-27 15:33:26 +02:00
prateek banga
82e165c4c3 Merge branch 'feat-mailgun-provider' into feat-topics-controller 2023-08-31 18:33:02 +05:30
prateek banga
1762c81b8d Merge branch 'feat-messages-event-config' into feat-mailgun-provider 2023-08-31 18:32:26 +05:30
Jake Barnby
e3a9fae033
Fix maildev auth 2023-08-30 00:56:08 -04:00
Jake Barnby
a1d0b67c6b
Fix SMTP 2023-08-30 00:30:44 -04:00
prateek banga
264f0bd5dd adds subscriber controllers 2023-08-28 20:41:05 +05:30
prateek banga
d0c50403c8 adds test cases for topic controller 2023-08-25 04:36:41 +05:30
prateek banga
ec54000263 adds test for target controllers 2023-08-24 01:54:25 +05:30
prateek banga
ac33d7828f Revert "Pint linter ran"
This reverts commit bf5f0a8419.
2023-08-24 01:53:52 +05:30
wess
bf5f0a8419 Pint linter ran 2023-08-23 13:12:43 -04:00
prateek banga
c225563d77 adds test for provider controllers 2023-08-23 15:31:29 +05:30