Commit graph

32569 commits

Author SHA1 Message Date
Hazelnoot
5db84dfc9b disconnect redis after running e2e/timelines.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
3f950e398b remove NoOpCaches in favor of CacheManagementService 2025-11-05 19:20:05 -05:00
Hazelnoot
c8976fef94 update unit tests for QuantumKVCache 2025-11-05 19:20:05 -05:00
Hazelnoot
e222516fce update unit tests for is-retryable-error 2025-11-05 19:20:05 -05:00
Hazelnoot
97300774c0 add InstanceStatsService 2025-11-05 19:20:05 -05:00
Hazelnoot
b5f2c743b2 remove dependency on UserEntityService from CacheService 2025-11-05 19:20:05 -05:00
Hazelnoot
173105ae24 add constructor to MiEmoji 2025-11-05 19:20:05 -05:00
Hazelnoot
72da199f61 pass services into caches through constructor 2025-11-05 19:20:05 -05:00
Hazelnoot
4116c19e7e add fetchMaybe() method to QuantumKVCache 2025-11-05 19:20:05 -05:00
Hazelnoot
eda982882e fix incorrect event names in QuantumKVCache comments 2025-11-05 19:20:05 -05:00
Hazelnoot
8828f37b57 add clear() / dispose() methods to memory caches 2025-11-05 19:20:05 -05:00
Hazelnoot
b32f3b5019 manage caches in SkRateLimiterService 2025-11-05 19:20:05 -05:00
Hazelnoot
338dad9a87 add unit tests for CacheManagementService 2025-11-05 19:20:05 -05:00
Hazelnoot
ff76371057 add MockApResolverService testing utility 2025-11-05 19:20:05 -05:00
Hazelnoot
ac0d261190 add FakeSkRateLimiterService testing utility 2025-11-05 19:20:05 -05:00
Hazelnoot
d2e902f5b7 rename FakeInternalEventService to MockInternalEventService and fix DI errors 2025-11-05 19:20:05 -05:00
Hazelnoot
dac1a3d20f add FakeCacheManagementService testing utility 2025-11-05 19:20:05 -05:00
Hazelnoot
4142788989 add MockRedis testing utility 2025-11-05 19:20:05 -05:00
Hazelnoot
1d5bc6928f add FakeRedis testing utility 2025-11-05 19:20:05 -05:00
Hazelnoot
373456fa17 move TimeService, EnvService, CacheManagementService, and InternalEventService to GlobalModule 2025-11-05 19:20:05 -05:00
Hazelnoot
411df0c0bf fix DI errors when using TimeService 2025-11-05 19:20:05 -05:00
Hazelnoot
239cc3de6d implement CacheManagementService to provided centralized management of cache instances 2025-11-05 19:20:05 -05:00
Hazelnoot
920dd5893d add [isRetryableSymbol] to begin moving away from unreliable heuristic 2025-11-05 19:20:04 -05:00
Hazelnoot
37f00b9ca1 recurse to Error.cause in is-retryable-error.ts 2025-11-05 19:20:04 -05:00
Hazelnoot
ac0e3d9394 prevent crash if Redis cache has a negative lifetime 2025-11-05 19:20:04 -05:00
Hazelnoot
20b763c3c3 generate IDs based on TimeService 2025-11-05 19:20:04 -05:00
Hazelnoot
ab213f2146 make GlobalEventService depend on InternalEventService (instead of the other way around) so that they can eventually be separated 2025-11-05 19:20:04 -05:00
Hazelnoot
48cc7e21e3 make TimeService abstract and add support for managed timers 2025-11-05 19:20:04 -05:00
Hazelnoot
5f6578c8cd fix circular dependency caused by is-retryable-error, render-inline-error, and render-full-error 2025-11-05 19:20:04 -05:00
Hazelnoot
c2f6f54f50 make MiUser.isRemoteUser / MiUser.isLocalUser generic 2025-11-05 19:20:04 -05:00
Hazelnoot
7c8d09f1c9 add missing bindThis() to OnModuleInit / OnApplicationShutdown handlers 2025-11-05 19:20:04 -05:00
Hazelnoot
92466ed569 fix circular dependency in NoteEntityService.ts 2025-11-05 19:20:04 -05:00
Hazelnoot
697c897d94 fix circular dependency in DriveFileEntityService.ts 2025-11-05 19:20:04 -05:00
Hazelnoot
5b01ed54b9 implement MockApResolverService.ts testing utility 2025-11-05 19:20:04 -05:00
Hazelnoot
6f6ee0436e verify recursion limit in MockResolver 2025-11-05 19:20:04 -05:00
Hazelnoot
c45d6ea452 implement MockLoggerService.ts testing utility 2025-11-05 19:20:04 -05:00
Hazelnoot
5a28c4e110 implement kvp-array.ts utility 2025-11-05 19:20:04 -05:00
Hazelnoot
457fc38e6a normalize more TS configs 2025-11-05 19:20:04 -05:00
Hazelnoot
d135f09a60 fix "eslint missing" error in backend 2025-11-05 19:20:04 -05:00
Hazelnoot
4d9317ad2b make sure S3 clients are properly disposed 2025-11-05 19:20:04 -05:00
Hazelnoot
db4661397b fix accidental "import type" in FederatedInstanceService 2025-11-05 19:20:04 -05:00
Hazelnoot
b8e3f545c0 add missing shutdown hooks in unit tests 2025-11-05 19:20:04 -05:00
Hazelnoot
4db8d0b9ed make sure GlobalModule.dispose always completes 2025-11-05 19:20:04 -05:00
Hazelnoot
e7f93f19bf make sure QueueProcessorService.dispose always completes 2025-11-05 19:20:04 -05:00
Hazelnoot
89981285b2 make sure QueueModule.dispose always completes 2025-11-05 19:20:04 -05:00
Hazelnoot
910af0532c make sure ChartManagementService.dispose always completes 2025-11-05 19:20:04 -05:00
Hazelnoot
83adb5e887 add missing bindThis to several onApplicationShutdown hooks 2025-11-05 19:20:04 -05:00
Hazelnoot
ac9b787796 move userFollowingChannelsCache and federatedInstanceCache to CacheService for more reliable disposal 2025-11-05 19:20:04 -05:00
Hazelnoot
4b4efef5f9 add missing cache dispose/clear to CacheService 2025-11-05 19:20:04 -05:00
Hazelnoot
3c3253f84a remove duplicate event from CacheService 2025-11-05 19:20:04 -05:00