Commit graph

32853 commits

Author SHA1 Message Date
Marie
6117b87925 fix path in clean*.js 2025-11-13 18:32:02 +01:00
Marie
66346ae389 Fix Dockerfile error 2025-11-13 11:45:52 +01:00
Hazelnoot
68a3b4293c merge: Move user hibernation to scheduled system task (!1227)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1227

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-11-12 19:02:08 -05:00
Hazelnoot
90201307a0 merge: Deterministic operation (!1235)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1235

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-11-12 17:04:17 -05:00
Hazelnoot
fdabe27d30 remove error filtering 2025-11-12 01:00:32 -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
0ab203f790 add missing comment for refreshMany 2025-11-12 00:44:03 -05:00
Hazelnoot
616025198a remove incomplete and unused patchPromiseTypes implementation 2025-11-12 00:00:13 -05:00
Hazelnoot
29c069e39a move more "common" environment logic to prepEnv 2025-11-11 23:59:33 -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
815bb2234e fix broken import in MockRedis 2025-11-11 23:13:54 -05:00
Hazelnoot
c9b06306f3 fix lint error in FetchFailedError.ts 2025-11-11 23:13:36 -05:00
Hazelnoot
d6071853ca fix TS errors when checking unit tests
(it was loading the setup files, then following the imports into "built" directory. as those are compiled JS, it produced lots of type errors.)
2025-11-11 23:13:11 -05:00
Hazelnoot
a777b2357b support async disposal in CacheManagementService 2025-11-11 22:54:35 -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
c777b79431 implement assert.isNotNullish, assert.throws, assert.throwsAsync, and assert.rejectsAsync testing utilities 2025-11-11 20:19:08 -05:00
Hazelnoot
e5f78145d2 update all QuantumKVCache fetchers to use consistent code styles 2025-11-11 20:18:12 -05:00
Hazelnoot
fa1273a737 fix incorrect reference to process.env in Logger 2025-11-11 20:17:05 -05:00
Hazelnoot
d6f6d89bc3 use promise utilities in TimeService 2025-11-11 20:16:36 -05:00
Hazelnoot
bcc0c5fa55 implement withCleanup and withSignal Promise utilities 2025-11-11 20:16:23 -05:00
Hazelnoot
49ac63db1c fix DisposeError, DisposedError, and DisposingError not having a message 2025-11-11 20:15:58 -05:00
Hazelnoot
05414ce0b9 return promises for chaining in promise-tracker.ts 2025-11-11 20:15:40 -05:00
Hazelnoot
5f37eef244 add throwIfAborted and rejectIfAborted utilities to simplify AbortSignal handling 2025-11-11 20:15:11 -05:00
Hazelnoot
8d848703b5 add polyfill for Promise.try 2025-11-11 20:14:52 -05:00
Hazelnoot
9534bacbf5 add polyfill for Error.isError 2025-11-11 20:14:44 -05:00
Hazelnoot
5f50f51426 fix custom errors having the wrong name in stack traces 2025-11-11 20:07:28 -05:00
Hazelnoot
73f672ff79 implement AbortedError to represent an aborted operation 2025-11-11 20:06:13 -05:00
Hazelnoot
c4866c9712 implement error types for disposal patterns 2025-11-09 00:51:52 -05:00
Hazelnoot
b013649a41 prefer type-only imports in testing utilities 2025-11-09 00:51:34 -05:00
Hazelnoot
e7015d4f8e update jest and related dependencies 2025-11-09 00:48:52 -05:00
Hazelnoot
c997471cb8 fix sync-deps not working if the newest package version is checked first 2025-11-09 00:48:33 -05:00
Hazelnoot
f30b2d0e39 fix references to renamed jest config 2025-11-09 00:40:04 -05:00
Hazelnoot
a6c4945569 prevent base jest config from including any tests 2025-11-09 00:39:49 -05:00
Hazelnoot
bcf7347372 warn on slow unit tests 2025-11-09 00:39:36 -05:00
Hazelnoot
fd162fabe3 speed up unit tests by narrowing roots 2025-11-09 00:39:21 -05:00
Hazelnoot
e8d13af57c fix reference to deleted script in backend package.json 2025-11-07 21:46:27 -05:00
Hazelnoot
d71a4fa41d fix indentation 2025-11-07 02:53:03 -05:00
Hazelnoot
10a9e423d9 adjust job scheduler timings 2025-11-07 02:51:58 -05:00
Hazelnoot
26db8cb96e fix rebase error in HibernateUsersProcessorService 2025-11-07 02:51:47 -05:00
Hazelnoot
4e03a128cc add comments to job scheduler times 2025-11-07 02:44:57 -05:00
Hazelnoot
397f7fdf13 fix rebase error 2025-11-07 02:38:11 -05:00
Hazelnoot
a91be6581c fix merge errors 2025-11-07 02:37:35 -05:00
Hazelnoot
8eeaa12ca0 fix typo: backBufferedReactions -> bakeBufferedReactions 2025-11-07 02:37:35 -05:00
Hazelnoot
9fcdd8e513 remove dangling reference to ApLogCleanupService 2025-11-07 02:37:32 -05:00
Hazelnoot
4a341a53d0 move user hibernation into HibernateUsersProcessorService.ts 2025-11-07 02:37:17 -05:00
Hazelnoot
7050583b86 convert ApLogsCleanupService into a queue task 2025-11-07 02:37:17 -05:00