Agent controller install.sh finds no release: first page is all prereleases, stable release is unsigned, --version rejects prereleases

Aperta
#1,981 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@GauravPatil2515 ci sta già lavorando.

Dal 13/11/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
40/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, shell
Ambito
cli, release

Direzione di ricerca

Start in console/packages/agent-controller/install.sh: the release lookup that requests /releases?per_page=100 without paging, the prerelease skip, and the --version check that rejects anything containing characters outside digits and dots. The fix needs the script to find the newest signed stable release across pages and to accept signed prerelease versions like x.y.z-rc.N. Publishing a signed stable release needs maintainer access, so confirm that with the maintainers before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

What happens

The documented one-line install of the headless agent controller fails on every machine:

curl -fsSL https://raw.githubusercontent.com/sandbox-quantum/switch/main/console/packages/agent-controller/install.sh | sh -s -- --server <server> --code <code> --name <name>
switch-agent-controller install: sandbox-quantum/switch has no switch-agent-controller release yet.

Why

Three things in console/packages/agent-controller/install.sh combine:

  1. Only the first page of releases is read. The newest release is looked up with GET /repos/sandbox-quantum/switch/releases?per_page=100, with no paging. Dev builds of main are published as controller prereleases several times an hour, so the newest 100 releases are all prereleases (95 of them controller dev builds and release candidates at the time of writing), and the script skips prereleases. The stable releases are further back and never seen.
  2. The only stable controller release is unsigned. switch-agent-controller-v0.31.0 ships switch-agent-controller-0.31.0.tgz but no .sig, so even when it is found, or named with --version 0.31.0, the installer refuses it: only signed releases are installed.
  3. Signed prereleases cannot be requested. Release candidates are signed (switch-agent-controller-v0.32.0-rc.5 ships its .tgz.sig), but --version accepts only x.y.z (*[!0-9.]* is refused), so --version 0.32.0-rc.5 is rejected before any download.

So there is currently no way to install the controller with the script.

Expected

The script installs the newest signed stable release, and --version can name any signed release, including a prerelease.

Suggested fix

  • Find the newest stable controller release without depending on the first page: page through /releases until a match is found, or list matching tags (/git/matching-refs/tags/switch-agent-controller-v) and fetch releases by tag.
  • Let --version accept a prerelease version (x.y.z-rc.N, x.y.z-dev.N.gSHA), still requiring a valid signature.
  • Publish a signed stable controller release (or add a .sig to the next one), so the default path has something to install.

Workaround

Switch Console sets up a managed machine on the computer it runs on, so agents can run there without the headless controller, at the cost of stopping when Console quits.

Lingua principale
Python
Stelle
4.5k
Fork
348
Merge medio
1g 17h
PR unite (30g)
287

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sandbox-quantum/switch

Tutte le issue di sandbox-quantum/switch

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.