Skip to content

Conversation

mjankowski
Copy link
Contributor

Instead of just tracking true/false on whether we've had an error, collect them as we go and then summarize at the end.

Example output:

Your Mastodon server is set up, but there were some errors along the way, you may have to fix them:
- Redis connection could not be established.

Ran this a few times with various scenarios and seems to do what I want.

Separately - this method is truly enormous and unwieldy. I'd like to refactor this a bit, but it's challenging to find something which would be meaningfully better but not create a pretty crazy diff.

I think if we pull out the prompt, env, errors - we might be able at minimum to make this look sort of like the CLI maintenance task does, with one private method per "section" of the setup.

Also separately - I suspect that the "does the db connection work" check is ... not actually checking. I think the method it uses changed to not raise, so it just always says its good now even with garbage values. May try to improve that as followup here.

ClearlyClaire
ClearlyClaire previously approved these changes Jan 16, 2025
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Jan 16, 2025
Merged via the queue into mastodon:main with commit 69b8a0b Jan 16, 2025
27 checks passed
@mjankowski mjankowski deleted the mast-rake-setup branch January 16, 2025 15:18
ttrace pushed a commit to ttrace/mastodon that referenced this pull request Feb 28, 2025
robin-maki pushed a commit to byulmaru/mastodon that referenced this pull request Mar 1, 2025
vmstan pushed a commit to vmstan/mastodon that referenced this pull request Mar 27, 2025
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.

2 participants