Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] update dependencies, bump to Go 1.19.1 #826

Merged

Conversation

NyaaaWhatsUpDoc
Copy link
Member

Unfortunately we can't update our uptrace/bun version as there seems to be another breaking changing going from 1.17 -> 1.18 😭

We will also need to bump the Go build version in: https://github.com/superseriousbusiness/gotosocial-drone-build/blob/main/.drone.yml

@tsmethurst
Copy link
Contributor

We will also need to bump the Go build version in: https://github.com/superseriousbusiness/gotosocial-drone-build/blob/main/.drone.yml

done!

also signed it for ya

also bumped golangci-lint and guess what 😈 there's linter errors

@tsmethurst
Copy link
Contributor

Swagger docs fixed, go fmt can be run now without fucking them up.

Will fix the lint issues next...

@tsmethurst
Copy link
Contributor

tsmethurst commented Sep 14, 2022

It's passing linting now, but tests now fail/timeout. Seems to block on a channel now:

@NyaaaWhatsUpDoc Could you take a look at this?

timestamp="14/09/2022 19:29:43.137" func=bundb.queryHook.AfterQuery level=TRACE duration=122.527µs query=SELECT "user"."id", "user"."created_at", "user"."updated_at", "user"."email", "user"."account_id", "user"."encrypted_password", "user"."sign_up_ip", "user"."current_sign_in_at", "user"."current_sign_in_ip", "user"."last_sign_in_at", "user"."last_sign_in_ip", "user"."sign_in_count", "user"."invite_id", "user"."chosen_languages", "user"."filtered_languages", "user"."locale", "user"."created_by_application_id", "user"."last_emailed_at", "user"."confirmation_token", "user"."confirmation_sent_at", "user"."confirmed_at", "user"."unconfirmed_email", "user"."moderator", "user"."admin", "user"."disabled", "user"."approved", "user"."reset_password_token", "user"."reset_password_sent_at" FROM "users" AS "user" WHERE (account_id = '01F8MH1H7YV1Z7D2C8K2730QBF')
timestamp="14/09/2022 19:29:43.185" func=concurrency.(*WorkerPool).Queue level=TRACE msg="worker.Worker[messages.FromClientAPI] queueing message (queue=0): {APObjectType:Person APActivityType:Delete GTSModel:<nil> OriginAccount:0xc000547340 TargetAccount:0xc000547340}"
panic: test timed out after 30s

goroutine 169 [running]:
testing.(*M).startAlarm.func1()
	/usr/local/go/src/testing/testing.go:2036 +0x8e
created by time.goFunc
	/usr/local/go/src/time/sleep.go:176 +0x32

goroutine 1 [chan receive]:
testing.(*T).Run(0xc000440ea0, {0x210284d?, 0x524905?}, 0x21789d8)
	/usr/local/go/src/testing/testing.go:1494 +0x37a
testing.runTests.func1(0xc000440ea0?)
	/usr/local/go/src/testing/testing.go:1846 +0x6e
testing.tRunner(0xc000440ea0, 0xc000687cd8)
	/usr/local/go/src/testing/testing.go:1446 +0x10b
testing.runTests(0xc000563ea0?, {0x365c380, 0x6, 0x6}, {0x7f7eec72d108?, 0x40?, 0x36725e0?})
	/usr/local/go/src/testing/testing.go:1844 +0x456
testing.(*M).Run(0xc000563ea0)
	/usr/local/go/src/testing/testing.go:1726 +0x5d9
main.main()
	_testmain.go:59 +0x1aa

goroutine 11 [chan receive]:
testing.(*T).Run(0xc000441380, {0x1dd349d?, 0xc000441380?}, 0xc0006a0120)
	/usr/local/go/src/testing/testing.go:1494 +0x37a
github.com/stretchr/testify/suite.runTests({0x25bcbb0, 0xc000441380}, {0xc0004aac00?, 0x1, 0x1})
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/github.com/stretchr/testify/suite/suite.go:220 +0x128
github.com/stretchr/testify/suite.Run(0xc000441380, {0x25a8360, 0xc0006960e0})
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/github.com/stretchr/testify/suite/suite.go:193 +0x6e5
github.com/superseriousbusiness/gotosocial/internal/api/client/account_test.TestAccountDeleteTestSuite(0x0?)
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/internal/api/client/account/accountdelete_test.go:100 +0x39
testing.tRunner(0xc000441380, 0x21789d8)
	/usr/local/go/src/testing/testing.go:1446 +0x10b
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1493 +0x35f

goroutine 12 [select]:
codeberg.org/gruf/go-runners.(*WorkerPool).Enqueue(0xc000098480, 0xc0006ccba0)
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:104 +0x96
github.com/superseriousbusiness/gotosocial/internal/concurrency.(*WorkerPool[...]).Queue(0xc000098480, {{0x20db349, 0x6}, {0x20d9ff3, 0x6}, {0x0, 0x0}, 0xc000547340, 0xc000547340})
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/internal/concurrency/workers.go:119 +0x1df
github.com/superseriousbusiness/gotosocial/internal/processing/account.(*processor).DeleteLocal(0xc0002b8580, {0x25ae8c0?, 0xc000048120?}, 0xc000547340?, 0xc0005bc440?)
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/internal/processing/account/delete.go:343 +0x327
github.com/superseriousbusiness/gotosocial/internal/processing.(*processor).AccountDeleteLocal(0xc00012a200?, {0x25ae8c0?, 0xc000048120?}, 0xe?, 0x4?)
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/internal/processing/account.go:34 +0x36
github.com/superseriousbusiness/gotosocial/internal/api/client/account.(*Module).AccountDeletePOSTHandler(0xc0004a1d90, 0xc00012a200)
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/internal/api/client/account/accountdelete.go:89 +0x15b
github.com/superseriousbusiness/gotosocial/internal/api/client/account_test.(*AccountDeleteTestSuite).TestAccountDeletePOSTHandler(0xc0006960e0)
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/internal/api/client/account/accountdelete_test.go:51 +0x2d2
reflect.Value.call({0xc00010f500?, 0xc0004a4ea0?, 0x25b1300?}, {0x20d27ca, 0x4}, {0xc000bf7e70, 0x1, 0xc000bf7d80?})
	/usr/local/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0xc00010f500?, 0xc0004a4ea0?, 0xc0006960e0?}, {0xc000bf7e70?, 0x7f7ec40ce110?, 0xd0?})
	/usr/local/go/src/reflect/value.go:368 +0xbc
github.com/stretchr/testify/suite.Run.func1(0xc000441a00)
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/github.com/stretchr/testify/suite/suite.go:175 +0x4b6
testing.tRunner(0xc000441a00, 0xc0006a0120)
	/usr/local/go/src/testing/testing.go:1446 +0x10b
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1493 +0x35f

goroutine 13 [select]:
database/sql.(*DB).connectionOpener(0xc000423a00, {0x25ae888, 0xc0003f0100})
	/usr/local/go/src/database/sql/sql.go:1224 +0x8d
created by database/sql.OpenDB
	/usr/local/go/src/database/sql/sql.go:792 +0x18d

goroutine 26 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 25 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 24 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 23 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 22 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 21 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 20 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 19 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 47 [select]:
codeberg.org/gruf/go-sched.(*Scheduler).run(0x36723c0, {0x25af490, 0xc000660c00})
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-sched/scheduler.go:196 +0x231
codeberg.org/gruf/go-sched.(*Scheduler).Start.func1({0x25af490, 0xc000660c00})
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-sched/scheduler.go:61 +0xb9
codeberg.org/gruf/go-runners.(*Service).GoRun.func1()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/service.go:62 +0x6d
created by codeberg.org/gruf/go-runners.(*Service).GoRun
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/service.go:51 +0xb8

goroutine 48 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:79 +0x169
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:42 +0x10a

goroutine 49 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:79 +0x169
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:42 +0x10a

goroutine 50 [select]:
github.com/robfig/cron/v3.(*Cron).run(0xc00072f0e0)
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/github.com/robfig/cron/v3/cron.go:263 +0xb9d
created by github.com/robfig/cron/v3.(*Cron).Start
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/github.com/robfig/cron/v3/cron.go:222 +0xca

goroutine 27 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 28 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 29 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 30 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 31 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 32 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 33 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 66 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 67 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 68 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 69 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 70 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 71 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 72 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 73 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 74 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 75 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 76 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 77 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 78 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 79 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 80 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 81 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 82 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 83 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 84 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 85 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 86 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 87 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 88 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 89 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 90 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 91 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 92 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 93 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 94 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 95 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 96 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 97 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 98 [chan receive]:
codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1.2()
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:62 +0xae
created by codeberg.org/gruf/go-runners.(*WorkerPool).Start.func1
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/vendor/codeberg.org/gruf/go-runners/pool.go:55 +0x8d

goroutine 55 [select]:
github.com/superseriousbusiness/gotosocial/internal/oauth.newTokenStore.func1({0x25ae8c0, 0xc000048120}, 0x0?)
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/internal/oauth/tokenstore.go:54 +0xb5
created by github.com/superseriousbusiness/gotosocial/internal/oauth.newTokenStore
	/home/tobi/go/src/github.com/superseriousbusiness/gotosocial/internal/oauth/tokenstore.go:51 +0x105
exit status 2

Signed-off-by: kim <grufwub@gmail.com>
@NyaaaWhatsUpDoc
Copy link
Member Author

NyaaaWhatsUpDoc commented Sep 14, 2022

figured out the issue for the follow request reject test! the test processor wasn't being started so enqueuing a worker function blocked as there was nothing to pick it up.

Signed-off-by: kim <grufwub@gmail.com>
Signed-off-by: kim <grufwub@gmail.com>
@NyaaaWhatsUpDoc
Copy link
Member Author

That should be the remainder of the tests fixed now, in all cases it was the processor not being started. I'm not 100% sure why it had worked previously, but this change basically just brought to light cases where we were passing things when processors were not started

Signed-off-by: kim <grufwub@gmail.com>
@tsmethurst
Copy link
Contributor

I'm not 100% sure why it had worked previously

Right?? That's bonkers

@tsmethurst
Copy link
Contributor

Closes #831

We should merge this after the remaining 0.5.x issues and include it in 0.6.x

@tsmethurst
Copy link
Contributor

tsmethurst commented Sep 20, 2022

An update on the bun stuff, I investigated and the breakage from upstepping bun comes from this commit: uptrace/bun@177ec4c

so previously the statement for creating the media_attachments table looked like this:

CREATE TABLE "media_attachments" ("id" CHAR(26) NOT NULL, "created_at" timestamptz NOT NULL DEFAULT current_timestamp, "updated_at" timestamptz NOT NULL DEFAULT current_timestamp, "status_id" CHAR(26), "url" VARCHAR, "remote_url" VARCHAR, "type" VARCHAR NOT NULL, "original_width" INTEGER, "original_height" INTEGER, "original_size" INTEGER, "original_aspect" DOUBLE PRECISION, "small_width" INTEGER, "small_height" INTEGER, "small_size" INTEGER, "small_aspect" DOUBLE PRECISION, "focus_x" REAL, "focus_y" REAL, "account_id" CHAR(26) NOT NULL, "description" VARCHAR, "scheduled_status_id" CHAR(26), "blurhash" VARCHAR, "processing" INTEGER NOT NULL DEFAULT 2, "file_path" VARCHAR NOT NULL, "file_content_type" VARCHAR NOT NULL, "file_file_size" INTEGER NOT NULL, "file_updated_at" timestamptz NOT NULL DEFAULT current_timestamp, "thumbnail_path" VARCHAR NOT NULL, "thumbnail_content_type" VARCHAR NOT NULL, "thumbnail_file_size" INTEGER NOT NULL, "thumbnail_updated_at" timestamptz NOT NULL DEFAULT current_timestamp, "thumbnail_url" VARCHAR, "thumbnail_remote_url" VARCHAR, "avatar" BOOLEAN NOT NULL DEFAULT false, "header" BOOLEAN NOT NULL DEFAULT false, "cached" BOOLEAN NOT NULL, PRIMARY KEY ("id"), UNIQUE ("id"))

and now it looks like this:

CREATE TABLE IF NOT EXISTS "media_attachments" ("id" CHAR(26) NOT NULL, "created_at" timestamptz NOT NULL DEFAULT current_timestamp, "updated_at" timestamptz NOT NULL DEFAULT current_timestamp, "status_id" CHAR(26), "url" VARCHAR, "remote_url" VARCHAR, "type" VARCHAR NOT NULL, "filemeta_original_width" INTEGER, "filemeta_original_height" INTEGER, "filemeta_original_size" INTEGER, "filemeta_original_aspect" DOUBLE PRECISION, "filemeta_small_width" INTEGER, "filemeta_small_height" INTEGER, "filemeta_small_size" INTEGER, "filemeta_small_aspect" DOUBLE PRECISION, "filemeta_focus_x" REAL, "filemeta_focus_y" REAL, "account_id" CHAR(26) NOT NULL, "description" VARCHAR, "scheduled_status_id" CHAR(26), "blurhash" VARCHAR, "processing" INTEGER NOT NULL DEFAULT 2, "file_path" VARCHAR NOT NULL, "file_content_type" VARCHAR NOT NULL, "file_file_size" INTEGER NOT NULL, "file_updated_at" timestamptz NOT NULL DEFAULT current_timestamp, "thumbnail_path" VARCHAR NOT NULL, "thumbnail_content_type" VARCHAR NOT NULL, "thumbnail_file_size" INTEGER NOT NULL, "thumbnail_updated_at" timestamptz NOT NULL DEFAULT current_timestamp, "thumbnail_url" VARCHAR, "thumbnail_remote_url" VARCHAR, "avatar" BOOLEAN NOT NULL DEFAULT false, "header" BOOLEAN NOT NULL DEFAULT false, "cached" BOOLEAN NOT NULL DEFAULT false, PRIMARY KEY ("id"), UNIQUE ("id"))

so the difference is that now the media_attachment fields that have the embed tag on them are more deeply embedded, including the prefix of the previous layer (see the filemeta_focus column names in particular). The new way actually makes more sense, but it is a bit of a pain because now we need to fix it

options for fixing this are:

  • find some tag combination on the gtsmodel.MediaAttachment that will allow us to keep the existing schema (easier)
  • do a db migration to the new model (harder, more annoying, but probably more futureproof)

[edit] For now I fixed this here -- a040e17. This makes the behavior of bun for this particular model work the same as before.

@NyaaaWhatsUpDoc
Copy link
Member Author

@tsmethurst can merge now? :D

@tsmethurst
Copy link
Contributor

Go for it :)

@NyaaaWhatsUpDoc NyaaaWhatsUpDoc merged commit a156188 into superseriousbusiness:main Sep 28, 2022
@tsmethurst tsmethurst deleted the chore/update-deps branch September 29, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants