Repository navigation
mastodon: 4.6.8 -> 4.7.2 - #554800
mastodon: 4.6.8 -> 4.7.2#554800
Conversation
|
|
@erictapen the module code should be changed to add |
|
@abhin4v This is only true for large instances, and people operating these should read the NixOS release notes (therefore the entry) to understand the implications and take additional steps. The goal of this module is always to require no manual steps for regular small instances. Asking everybody to manually run migrations would be against that goal. For 4.6.0 we did the same, btw. |
|
@erictapen I checked the actual migration files. I doubt they'll run under few minutes even for small instances. They migrate the accounts table that contains every account ever seen by an instance including the remote ones. My small instance of 15 users has over 300000 accounts. I estimate that the full migration to take tens of minutes, if not over an hour. I'll try to figure out a workaround if your call is to not change the service. Thanks. Please note that the release notes for 4.6.0 do not mention long running migrations. |
|
Mh good call, I didn't consider that this might not scale with the amount of local users on the instance but with the amount of federated users. The thing is, the module should work in a way so that not reading the release notes should always result in a functional system. An hour of downtime is still better than the service being guaranteed to crash because the migrations weren't applied. So how about we add more precise NixOS release notes and make sure that mastodon-init-db never timeouts? Afaiu a oneshot service has |
|
That's an option. Alternatively, we can change the mastodon-init-db service to run only pre migrations by adding |
|
I'll try to have a look at this on the weekend. |
Wrong PR number? Error logs |
|
Shit, thank you. This is blocked by #524710 then, cherry-picking the commit fixes the build. |
Can you explain more what you mean by this? System activation will restart all changed units anyways, so there wouldn't any difference in downtime. And when switching on boot (e.g. when going to a new NixOS release) it wouldn't make any difference either. I finally managed to run the migrations against a database dump of a small instance with around 50 active users (300k entries in the accounts table) and it took 7min on my laptop. That's not nothing, but I would deem it acceptable enough for the average Mastodon instance. |
|
I think we want to change the lockfile to the old lock format as the linked yarn-berry PR is pretty stale. |
|
The build error seems to be caused by a compatibility issue between TypeScript 7 and yarn < v4.17.1, see yarnpkg/berry#7190. |
Yarn update PR: #555729 |
|
There is already https://github.com/mastodon/mastodon/releases/tag/v4.7.2 in the time we fixed our yarn stuff :) |
Changelog: https://github.com/mastodon/mastodon/releases/tag/v4.7.0 Changelog: https://github.com/mastodon/mastodon/releases/tag/v4.7.1 Changelog: https://github.com/mastodon/mastodon/releases/tag/v4.7.2 Diff: mastodon/mastodon@v4.6.8...v4.7.2
d618d7c to
0c1762b
Compare
There was a problem hiding this comment.
Thanks for contributing to the documentation
Make sure you follow the documentation styleguide, most notably:
- Show, don't tell: lead with a minimal working example; explanation follows the code.
- No meta-commentary: don't write "This section explains how to…", just do it.
- Imperative mood and active voice: "Run the command", not "The user should run the following command".
- Present tense: "This creates a folder", not "This will create a folder".
- Be confident: no hedging with "should", "might", "typically", "usually".
- Cut filler words: "simply", "just", "easily", "basically"; "to", not "in order to".
For larger changes, like adding or removing whole sections, ask the NixOS documentation team for a review.
This comment was marked as outdated.
This comment was marked as outdated.
|
Tested on c3d2.social and works with the yarn update included. |
Changelog: https://github.com/mastodon/mastodon/releases/tag/v4.7.0
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.