Commit graph

1777 commits

Author SHA1 Message Date
kim
4b7d5b3b86 i'm sorry sir linter 2024-04-26 13:35:37 +01:00
kim
951335a26c remove redundant return statements 2024-04-26 13:27:05 +01:00
kim
07e6331b2b fix rebase issues 2024-04-26 13:23:34 +01:00
kim
ea3a871689 update prune cli to start scheduler but not all of the workers 2024-04-26 13:22:49 +01:00
kim
4a263f9e71 remove worker starting from the admin CLI commands (we don't need to handle side-effects) 2024-04-26 13:22:49 +01:00
kim
43fe04e54f remove optional passed-in http.client 2024-04-26 13:22:49 +01:00
kim
e1b6dd4434 remove boolean result from worker start / stop since false = already running or already stopped 2024-04-26 13:22:49 +01:00
kim
1733a0d422 improved code comment re: requesting account delete checks 2024-04-26 13:22:49 +01:00
kim
101e6bd192 improved code comment 2024-04-26 13:22:49 +01:00
kim
2560915163 use getFederatorMsg() 2024-04-26 13:22:49 +01:00
kim
2e5c93fdba make if else clauses easier to parse 2024-04-26 13:22:49 +01:00
kim
1ec1af9e22 don't warn log on forwarded deletes 2024-04-26 13:22:49 +01:00
kim
2e72e7e177 silently drop deletes from accounts not permitted to 2024-04-26 13:22:49 +01:00
kim
35080f2772 ensure error (non nil!!) gets passed in refactored federatingDB{}.Delete() 2024-04-26 13:22:49 +01:00
kim
7430444b18 move back accidentally shuffled account deletion order 2024-04-26 13:22:49 +01:00
kim
951d591f4f fix account test suite queue popping logic, ensure noop workers do not pull from queue 2024-04-26 13:22:49 +01:00
kim
1f9a077c7b fix remaining broken tests relying on worker queue logic 2024-04-26 13:22:49 +01:00
kim
529715f39f ensure more worker pools get started properly in tests 2024-04-26 13:22:49 +01:00
kim
4cba8174e7 update go-structr to add (+then rely on) QueueCtx{} type 2024-04-26 13:22:49 +01:00
kim
382790cf7f add logging to worker processing functions in testrig, don't start workers in unexpected places 2024-04-26 13:22:49 +01:00
kim
a055c5f749 move queue invalidation to before wipeing / deletion, to ensure queued work not dropped 2024-04-26 13:22:49 +01:00
kim
1d1d80ed11 fix vendoring 2024-04-26 13:22:49 +01:00
kim
8b9f718c79 update go-list version 2024-04-26 13:22:49 +01:00
kim
c828963e6b reshuffle ordering or server.go + remove duplicate worker start / stop 2024-04-26 13:22:49 +01:00
kim
f94c201e94 start the job scheduler separately to the worker pools 2024-04-26 13:22:49 +01:00
kim
092c9819b2 update gruf libraries in readme 2024-04-26 13:22:49 +01:00
kim
2f859ec051 code comments, ensure dereferencer worker pool gets started 2024-04-26 13:22:49 +01:00
kim
216ddc6214 undo toolchain updates 2024-04-26 13:22:48 +01:00
kim
5f81198328 move all queue purging to the processor workers 2024-04-26 13:22:28 +01:00
kim
4729c92dad refactor federatingDB.Delete(), drop queued messages when deleting account / status 2024-04-26 13:22:28 +01:00
kim
ef48fc13f0 start replacing client + federator + media workers with new worker + queue types 2024-04-26 13:22:26 +01:00
tobi
ba4f51ce2f
[chore] update Docker container to use new go swagger hash (#2872) 2024-04-26 12:12:24 +02:00
Daenney
83d24658a8
[chore] Update the flags passed to goreleaser (#2869)
* [chore] Update the flags passed to goreleaser

--rm-dist has been deprecated, the new flag is called --clean.

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-04-26 11:42:33 +02:00
Daenney
6c9bc26a6d
[chore] Update setting testrig loglevel (#2870)
cmp.Or was introduced in Go 1.22 and picks the first value that's not
the zero value for the type. For a string, the zero value is the empty
string, which is what os.Getenv will return if the environment variable
is not set. That then results in "error" being returned instead.

This allows loading an environment variable with a default without
having to do the check and write out the conditional.
2024-04-26 11:31:26 +02:00
tobi
fd8a724e77
[chore] Bump go swagger (#2871)
* bump go swagger version

* bump swagger version
2024-04-26 11:31:10 +02:00
Daenney
3a369d834a
[chore] Upgrade our Go version to 1.22 (#2862)
* [chore] Upgrade our Go version to 1.22

With Go 1.22 having been released at the start of February, it's now
been a few months. No major issues have shown up, and the two point
release since then have primarily been security fixes plus some general
bug fixing.

This sets the required Go version to 1.22, as there's nothing in 1.22.1
or 1.22.2 that we would explicitly require. It sets the toolchain to the
latest point release, to ensure we pick up any fixes from there when
building releases etc.

* [chore] Update CI to Go 1.22

* [chore] Update golangci-lint to 1.25.7

Newer version should know about Go 1.22 and run fine.

* [chore] Update Docker container to Go 1.22

* [chore] Update Dockerfile to newer Alpine version

* sign drone.yml

* add missing license header

---------

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-04-26 10:40:29 +02:00
tobi
aecf74951c
[chore] Settings refactor 2: the re-refactoring-ing (#2866)
* [chore] Bit more refactoring of settings panel

* fix up some remaining things

* groovy baby yeah!

* remove unused Suspense
2024-04-25 18:24:24 +02:00
tobi
7a1e639483
[chore] Refactor settings panel routing (and other fixes) (#2864) 2024-04-24 11:12:47 +01:00
dependabot[bot]
62788aa116
[chore]: Bump codeberg.org/gruf/go-mutexes from 1.4.0 to 1.4.1 (#2860)
Bumps codeberg.org/gruf/go-mutexes from 1.4.0 to 1.4.1.

---
updated-dependencies:
- dependency-name: codeberg.org/gruf/go-mutexes
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 13:43:45 +01:00
dependabot[bot]
a57dd15a8e
[chore]: Bump github.com/miekg/dns from 1.1.58 to 1.1.59 (#2861) 2024-04-22 09:11:53 +00:00
kim
12a7eba01f
[chore] bump modernc.org/sqlite to v1.29.8 (with our concurrency workaround) (#2855) 2024-04-22 11:02:11 +02:00
Daenney
dcab555a6b
[chore] Update robots.txt (#2856)
This updates the robots.txt based on the list of the ai.robots.txt
repository. We can look at automating that at some point.

It's worth pointing out that some robots, namely the ones by Bytedance,
are known to ignore robots.txt entirely.
2024-04-22 11:01:37 +02:00
dependabot[bot]
0db9e34b69
[chore]: Bump github.com/KimMachineGun/automemlimit from 0.5.0 to 0.6.0 (#2859) 2024-04-22 08:59:30 +00:00
tobi
b7c629a18a
[bugfix] Fix incorrect field name for status source, add helpful message (#2854)
* [bugfix] Fix incorrect field name for status source, add helpful message

* swagger

* yyammm
2024-04-18 13:22:55 +02:00
tobi
431505b3e4
[feature] Stub conversations endpoint (#2853) 2024-04-18 12:36:02 +02:00
tobi
34d0159ad5
[feature] Stub account mutes endpoint (#2852)
* [feature] Stub account mutes endpoint

* swagger? i barely know 'er!
2024-04-18 09:59:47 +01:00
kim
b3f2d44143
bump to modernc.org/sqlite v1.29.7 (#2850) 2024-04-17 17:10:51 +01:00
kim
c67bbe5ba0
update to set requesting account when deleting status (#2849) 2024-04-17 16:54:40 +01:00
tobi
cef9924d9a
[feature] Status source endpoint (#2848)
* [feature] statusSource endpoint

* finish up
2024-04-17 13:49:20 +01:00
tobi
ef16919d4a
[feature] Stub status history endpoint (#2847) 2024-04-17 13:06:49 +01:00