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

Mastodon: provision actor #262

Closed
jernst opened this issue Jul 22, 2024 · 3 comments
Closed

Mastodon: provision actor #262

jernst opened this issue Jul 22, 2024 · 3 comments

Comments

@jernst
Copy link
Member

jernst commented Jul 22, 2024

We don't want hard-coded actors if we can avoid it.

Use tootctl accounts create { new_username } --approve to create them on UBOS. (There does not seem to be a way that can be automated on non-UBOS)

This needs to be invoked when tests attempt to obtain Actors in roles that haven't been used yet.

We should use some kind of predictable username creator for new_username above.

@steve-bate
Copy link
Member

steve-bate commented Jul 22, 2024

There does not seem to be a way that can be automated on non-UBOS

A UBOS alternative is a (e.g., Docker) container that has the actors already provisioned. In my experience, several (5) pre-provisioned actors were sufficient for AP tests. I currently don't understand the benefit of the dynamically-provisioned actors.

@jernst
Copy link
Member Author

jernst commented Jul 22, 2024

I see a bunch of advantages to avoid restoring from a previously saved state (as we already do with the .ubos-backup file for WordPress due to a lack of other alternatives to get the plugins activated):

  • The workflow to maintain them is separate from the code release process and involves manual steps
  • Harder to put under configuration control
  • The configuration is dependent on the application version, so we potentially need to redo it for each version, and that adds further complexity
  • if we used this mechanism for something like pre-provisioning actors, the cost of doing so grows linearly with the number of actors
  • I think UBOS handles restore-to-Mastodon correctly even if the hostname to which the backup is restored is different from where Mastodon runs now (which we need to be able to run constellations with more than one Mastodon instance in them) but it adds further potential brittleness.

@jernst
Copy link
Member Author

jernst commented Aug 2, 2024

Done in #252.

@jernst jernst closed this as completed Aug 2, 2024
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

No branches or pull requests

2 participants