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

[Task] Safe mode - first steps #26

Closed
Gnuxie opened this issue Sep 13, 2024 · 1 comment
Closed

[Task] Safe mode - first steps #26

Gnuxie opened this issue Sep 13, 2024 · 1 comment

Comments

@Gnuxie
Copy link
Member

Gnuxie commented Sep 13, 2024

Main story: #1

Acceptance criteria for this task:

  • Safe mode is locked behind a feature flag while we have no diagnostic or config editing commands.
  • It is obvious to the moderator that Draupnir is in safe mode, even if days have passed since the failure happened and there is lots of scrollback to reach that point
  • It is obvious how to attempt to restart Draupnir normally in any notification relating to Draupnir being in safe mode
  • Appservice draupnir also can boot into and from safe mode
  • Draupnir has a command to go into safe mode.
  • Draupnir can still be started without safe mode, but safe mode is the default. (Use case is people who know what they're doing and want draupnir to keep being restarted by systemd if it fails while they're out)

Details

This should be a distinct bot from draupnir that gets created when draupnir cannot start.

It should have a distinct command table, with one command that restarts the bot and displays help.

Every single command or message should show a warning that draupnir is in safe mode in the management room.

There's something to show the Error or ResultError that caused draupnir to start in safe mode. Possibly a command that can show the cause and details about it.

Config

Config should be something like this:

safeMode:
  enabled: boolean

PRs

Gnuxie added a commit to the-draupnir-project/Draupnir that referenced this issue Sep 19, 2024
Gnuxie added a commit to the-draupnir-project/Draupnir that referenced this issue Sep 19, 2024
…pservice-integration-test

appservice provisioned draupnir safe mode test

the-draupnir-project/planning#26
@Gnuxie Gnuxie closed this as completed Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant