Commit graph

32561 commits

Author SHA1 Message Date
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
Hazelnoot
5a05978776 fix test errors caused by AppLockService opening Redis connections in the constructor 2025-11-05 19:20:04 -05:00
Hazelnoot
bac8c3859b fix test errors caused by QueueService opening BullMQ queues in the constructor 2025-11-05 19:20:04 -05:00
Hazelnoot
0b47d144f7 add license headers 2025-11-05 19:20:04 -05:00
Hazelnoot
4fbaf5aceb use correct filter syntax in CI scripts 2025-11-05 19:20:01 -05:00
Hazelnoot
2faeabe79c rework misskey-js build to preserve original package structure 2025-11-05 19:19:10 -05:00
Hazelnoot
b8a3bd6182 rebuild misskey-js 2025-11-05 19:19:10 -05:00
Hazelnoot
32f086bce4 test misskey-js in pipelines 2025-11-05 19:19:10 -05:00
Hazelnoot
5d645bd7ca fix misskey-js tests (unit and type) 2025-11-05 19:19:09 -05:00