Remove cli backend assumptions #344

Closed
opened 2026-07-11 12:44:39 -04:00 by didericis · 0 comments
Owner

Tried running ./cli.py cleanup on linux, hit an error about the macos backend being unsupported. Must have missed some hardcoded macos backend assumptions in the cli. Should search for any assumptions like that and remove them.

Also let's consolidate the backend selection logic:

  1. Remove the --backend flag/only drive backend usage from the env var (or default selection)
  2. When no env var is set, we should search for the first available backend

RE first available backend, there should be a two tiered search:

  1. Search for a VM backend (firecracker on linux, macos containers on mac)
  2. Fall back to docker

RE falling back to docker, we should warn the user that docker is less secure, and prompt the user to install either firecracker or macos containers (depending on the platform), to ignore the warning/use docker, or to quit. When docker is unavailable, should also prompt the user to install either firecracker or macos containers (use the same function to display install commands as the former flow) and then quit.

Tried running `./cli.py cleanup` on linux, hit an error about the macos backend being unsupported. Must have missed some hardcoded macos backend assumptions in the cli. Should search for any assumptions like that and remove them. Also let's consolidate the backend selection logic: 1. Remove the `--backend` flag/only drive backend usage from the env var (or default selection) 2. When no env var is set, we should search for the first available backend RE first available backend, there should be a two tiered search: 1. Search for a VM backend (firecracker on linux, macos containers on mac) 2. Fall back to docker RE falling back to docker, we should warn the user that docker is less secure, and prompt the user to install either firecracker or macos containers (depending on the platform), to ignore the warning/use docker, or to quit. When docker is unavailable, should also prompt the user to install either firecracker or macos containers (use the same function to display install commands as the former flow) and then quit.
didericis added the Kind/Bug label 2026-07-11 12:44:39 -04:00
didericis added the
Priority
Critical
1
label 2026-07-18 03:39:44 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didericis/bot-bottle#344