Commit Graph
897 Commits
Author SHA1 Message Date
zkldi b4778040ff fix: separate some migrations to boku/kamai specific
since some migrations are boku/kamai specific, them
running on the wrong thing causes unecessary stress
and gray hairs
for me
2022-10-11 19:23:48 +01:00
zkldi 695fa98fec feat: mount migration
confirmed to work on local hardware, should be good.
2022-10-07 01:48:21 +01:00
zkldi ac0debe2e9 feat: add migration script for iidx notecounts 2022-10-07 01:09:12 +01:00
zkldi 0a189a9eb6 Merge pull request #703 from TNG-dev/zkldi/new-tables 2022-10-03 21:22:02 +01:00
zkldi c6dfae2cf2 feat: update how bms-table-sync works 2022-10-03 20:39:03 +01:00
zkldi 131e0f2dc9 fix: use proper paths to deterministic coll sort 2022-09-30 13:26:54 +01:00
zkldi ccb6ec74a5 fix: remove useless test 2022-09-30 12:30:54 +01:00
zkldi 3dd7737096 fix(test): add regression tests for invites 2022-09-30 11:21:25 +01:00
zkldi 2c8ae63171 fix(test): fix test regression with new pb handling 2022-09-29 15:25:25 +01:00
zkldi 87eb00adef fix: inherit combobreak from lampPB instead of scorePB 2022-09-29 11:29:14 +01:00
zkldi 6ab9ba7e33 fix: always apply lampPB merging
THIS WAS BROKEN!!! if a BP PB (lol) did not exist
then no lamp merging would happen.

whoops.
2022-09-29 11:29:14 +01:00
zkldi 0385cb65f9 Merge branch 'staging' into zkldi/seeds-ui 2022-09-28 22:34:22 +01:00
zkldi 3a9d982815 refactor: use collections as the base for dbseedsrepo
also, change `dontDestroy` to the far more intuitive `shouldDestroy`.
2022-09-20 22:29:17 +01:00
zkldi dd22ecf8b3 refactor: move listing collections into its own fn 2022-09-19 23:29:33 +01:00
zkldi 7f7c48311e fix: have proper types on Environment.nodeEnv
it was bugging me because i couldn't remember whether it was
dev or development.
2022-09-19 23:29:18 +01:00
zkldi 1f9d9e8a7f Merge pull request #675 from Bottersnike/feat/childprocess-exec-cwd 2022-09-19 01:06:28 +01:00
zkldi 806fc5789a fix: new Error in JS takes a string, not an object
future employers, please ignore this small mishap on part of the
contributor. Consider hiring them, they're very good at their job
and make excellent coffees.
2022-09-19 00:49:16 +01:00
zkldi b8f8305476 feat: allow running offline
i have no internet at the moment :)
2022-09-18 12:06:03 +01:00
zkldi 427c155b15 fix: only filter iidx versions in one place
this fixes a bug where casthour scores would be rejected in one place
but not the other.
2022-09-14 18:51:44 +01:00
zkldi 0f241e720e fix: remove more instances of instanceof
it's completely broken and no longer honoured. I *still* to this day do
not know why this is a bug on our systems. Maybe I will investigate it
further at some point, but for now, instanceof is banned in the codebase
as it doesn't seem to fucking work.

normally i refrain from swearing in a codebase i know future employers
will check, but this has to be one of *the* most frustrating bugs we've
had in years.
2022-09-13 23:28:30 +01:00
zkldi 95acde4505 fix: improve local binding explanation 2022-09-12 03:38:27 +01:00
zkldi 9358ddb63a style: fix lines-around-comment
this is a cadence bug and it will be fixed at some point
2022-09-12 02:49:15 +01:00
Bottersnike 61981c57b9 Modify database-seeds/repo.ts to not use cd 2022-09-12 02:46:15 +01:00
zkldi 8a2058fdb3 feat: allow casthour scores from kailua iidx 2022-09-09 21:50:22 +01:00
zkldi b02ec4cd8f fix: support AssistEasy clears in raja IR 2022-09-07 11:00:23 +01:00
Christopher Cooper 73d483d24d add exscore to sdvx eamuse csv imports 2022-09-05 16:22:02 -04:00
zkldi 84387ba78b fix: improper logging of classes in score import 2022-08-31 01:48:52 +01:00
zkldi dd821e0a69 refactor: use tagged unions instead of instanceof
Instanceof appears to be somewhat broken in typescript. Still looking
into it.
2022-08-31 01:48:52 +01:00
zkldi eeb7d21602 fix: pin server ts target at es2020
I'm *pretty* sure it should be inheriting this from the parent tsconfig,
but it doesn't seem like it is. instanceof doesn't work if we're
compiling for ES3, and I think we might be doing that?
2022-08-30 13:43:59 +01:00
zkldi 47c893f1eb fix: set individualDifference on dp tiers
(it's invalid to not have this set, not sure why it wasn't)
2022-08-27 16:39:19 +01:00
zkldi 078a34afc2 feat: allow forcing local seeds via env var
Every-so-often we want to run a script that works against local seeds
rather than a remote. It's inconvenient to have a variable passed to all
of the times seeds are clones, so this env var allows this to be
overridden globally. Likely only for script usage; not even documented.
2022-08-27 16:37:56 +01:00
zkldi 5eb3c51849 feat: add importType to import context 2022-08-25 23:57:44 +01:00
zkldi bf5828c5f2 feat: barbatos sdvx6 support 2022-08-25 23:39:17 +01:00
zkldi 5db86c29a3 fix: inherit prototypes, not classes 2022-08-25 17:12:38 +01:00
zkldi afe6e0ba84 fix: enforce prototypes in converter-failures
Typescript sometimes decides to "compile out" prototype chains like this
we have to *enforce* that these classes have the right inheritance,
because we do instanceof checks to determine what kind of error was
thrown. We could switch to a tagged union approach, but this seems more stable.
2022-08-25 14:40:19 +01:00
zkldi 05cc2ac02a feat: add migration script for removing jubeatNightScores 2022-08-25 13:09:08 +01:00
zkldi d7900638ba fix: defer discord transport submissions if we get 429d
This was giving us brownout problems. When we tried to restart all of
our things, only some of them would connect to discord. The rest
would be 429d, and not boot.

This stopped us from firing up score workers, amusingly.
2022-08-24 09:25:25 +01:00
zkldi 16b9ecc32c fix: DON'T DELETE THE LOCAL WORKING SEEDS
i've made this option even more obvious now given that i just messed it up
2022-08-22 02:33:53 +01:00
zkldi 877feb08b3 fix: dont ever delete local seeds 2022-08-22 02:08:35 +01:00
zkldi b72ffeec57 feat: support syncing database-seeds from local 2022-08-22 02:06:30 +01:00
zkldi a90ed51061 fix: iidx migration name whoops 2022-08-18 18:52:43 +01:00
zkldi 984e29e042 fix: mount migrations removeiidxbeginners/updatejubeatpreferredtables 2022-08-18 18:26:59 +01:00
zkldi 1dd065cfcd fix: read monorepo root pkg json 2022-08-18 04:07:37 +01:00
zkldi 27c920bb01 chore: someone didn't run the linter 2022-08-18 03:55:47 +01:00
zkldi d1deeab8de feat: enable storing commitHash in env var 2022-08-18 03:48:02 +01:00
zkldi bb919fc524 fix: don't return a promise from wrapscriptpromise 2022-08-17 20:29:19 +01:00
zkldi eccab72f56 feat: track bestExScore in PBs 2022-08-17 19:53:49 +01:00
zkldi c3d888b84d feat: store exScore from sv6c imports 2022-08-17 18:44:23 +01:00
zkldi 72918c8d6a EMERG: Clean up score import jobs after they are ran.
WHY IS THIS NOT THE DEFAULT???

We've been shredding our servers disk and generally getting into
trouble by having redis infinitely balloon up score imports
and then writing them to disk for backup.
we were writing upwards of 200Mbit/s.

Goddamnit bull.
2022-07-24 16:14:46 +01:00
zkldi 80b36feec1 feat(server): clean up cloned /tmp seeds after use 2022-07-23 15:24:33 +01:00