Commit graph

328 commits

Author SHA1 Message Date
Hazelnoot
152714ca03 fix lots of rebase errors 2025-11-15 14:08:36 -05:00
Hazelnoot
342a125cbf fix activitypub.ts tests 2025-11-15 14:08:36 -05:00
Hazelnoot
5d962da61e fix merge errors 2025-11-15 14:08:36 -05:00
Hazelnoot
5db73f86df fix logic errors in collection fetch and featured posts validation 2025-11-15 14:08:35 -05:00
Hazelnoot
8b3ea577da limit unbounded parallel async maps 2025-11-15 14:08:35 -05:00
Hazelnoot
79289f1a87 separate get into get and getMaybe 2025-11-12 01:00:16 -05:00
Hazelnoot
a2ddeb28c3 separate get into get and getMaybe 2025-11-12 00:53:39 -05:00
Hazelnoot
a1265f4c45 implement refreshMaybe 2025-11-12 00:44:38 -05:00
Hazelnoot
ca2de630b9 fix fetchMaybe tests 2025-11-12 00:44:24 -05:00
Hazelnoot
ece03bef61 QuantumKVCache upgrades:
* Implement optionalFetcher callback
* Allow rate limits for all fetcher types
* De-duplicate concurrent fetch operations
* Stricter type checks for cache value types
* Add abort-on-dispose support for all fetcher types
* Dispose terminates and awaits all in-progress fetches
* Throw on attempts to use a disposed cache
* Unit test cleanup
* Reduced overhead for async operations
* More normalized exception handling
2025-11-11 23:59:03 -05:00
Hazelnoot
39f291cdeb move CacheManagementServiceTests to correct location 2025-11-11 22:45:17 -05:00
Hazelnoot
6387b36dc3 implement callAllAsync and callAllOnAsync utilities 2025-11-11 22:40:26 -05:00
Hazelnoot
e54b8c4b72 fix typo in QuantumKVCache unit tests 2025-11-06 22:12:23 -05:00
Hazelnoot
3e1668348e implement QuantumKVCache.reset 2025-11-06 22:11:21 -05:00
Hazelnoot
3e90b211ba fix "duplicate cache" errors in SkRateLimiterServiceTests 2025-11-05 22:33:57 -05:00
Hazelnoot
83134775f0 fix rebase errors 2025-11-05 19:51:56 -05:00
Hazelnoot
8271dc199e normalize cache constructors and detect duplicate cache names 2025-11-05 19:42:31 -05:00
Hazelnoot
151550602c handle errors from cache management callbacks 2025-11-05 19:42:31 -05:00
Hazelnoot
86ca3921c9 use platform services in startup routines 2025-11-05 19:42:30 -05:00
Hazelnoot
effdea5658 update unit tests and mocks 2025-11-05 19:42:30 -05:00
Hazelnoot
6e36462c80 update SkRateLimiterServiceTests.ts to use standard mocks and fakes 2025-11-05 19:42:30 -05:00
Hazelnoot
a55649e89a move global services to "global" directory 2025-11-05 19:42:28 -05:00
Hazelnoot
8e000ae313 implement MockEnvService and fix tests 2025-11-05 19:41:09 -05:00
Hazelnoot
1b98ed0e06 fix sporraddic test failures due to Postgres deadlock 2025-11-05 19:40:48 -05:00
Hazelnoot
2bbd5be646 fix type errors (again) 2025-11-05 19:40:48 -05:00
Hazelnoot
542b99244a fix backend unit tests: migrate delete({}) to deleteAll() 2025-11-05 19:40:48 -05:00
Hazelnoot
8cc3b8dd1e fix TypeORM error "Empty criteria(s) are not allowed for the delete method."
- https://github.com/typeorm/typeorm/issues/11455
- https://github.com/typeorm/typeorm/pull/11459
2025-11-05 19:38:06 -05:00
Hazelnoot
3702729f26 update all dependencies 2025-11-05 19:29:50 -05:00
Hazelnoot
2f4270b8f7 manage GC timers in CacheManagementService 2025-11-05 19:21:51 -05:00
Hazelnoot
acf29ff40b rename MockInternalEventService methods to match other utilities 2025-11-05 19:21:51 -05:00
Hazelnoot
598c43945a use GlobalModule in chart tests 2025-11-05 19:21:50 -05:00
Hazelnoot
3a92471b68 convert all remaining backend code to TimeService 2025-11-05 19:21:50 -05:00
Hazelnoot
64745a41e5 use TimeService in charts 2025-11-05 19:20:25 -05:00
Hazelnoot
2d0b3cd325 remove NestJS instance from UtilityService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
5805426bdf remove NestJS instance from ReactionService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
7c6f46a3e0 remove NestJS instance from NoteCreateService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
c413896a21 remove NestJS instance from MfmService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
bbdc62992a await DB cleanup in chart.ts unit test 2025-11-05 19:20:05 -05:00
Hazelnoot
d3ac7598b7 remove NestJS instance from ApMfmService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
1e04b20b6b fix activitypub.ts unit tests 2025-11-05 19:20:05 -05:00
Hazelnoot
a3e969625d remove inline providers from unit tests 2025-11-05 19:20:05 -05:00
Hazelnoot
92892338f3 call app.init, app.enableShutdownHooks, and app.close in more tests 2025-11-05 19:20:05 -05:00
Hazelnoot
7d6732bf96 commit missed changes in UserEntityService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
31ce0f7cd2 use CacheManagementService in CheckModeratorsActivityProcessorService.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
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
5a28c4e110 implement kvp-array.ts utility 2025-11-05 19:20:04 -05:00