Tidy Containerfile pnpm pin and token request errors #86

Stängd
öppnade 2026-10-08 21:12:32 +00:00 av supernaut · 0 kommentarer
Ägare

What

Three small items. The Containerfile pins pnpm 11.17.0 while package.json pins 11.28.3. Six parallel reads each request a token at start. A failed token request drops the response body from the error.

Why

The Containerfile comment says the pins match. The parallel token POSTs are redundant. A bad client secret is harder to diagnose without the body.

Failing case

Build the image: it uses pnpm 11.17.0, not the Volta pin. Start a run: six token requests are sent.

Fix

Use 11.28.3 in the Containerfile. Await one token before the fan-out, or cache the pending promise. Include res.text() in the token error like getJson does.

Done when

  • Containerfile pnpm version equals the package.json pin
  • One token request per run when the token is fresh
  • Token error includes the response body
## What Three small items. The Containerfile pins pnpm 11.17.0 while `package.json` pins 11.28.3. Six parallel reads each request a token at start. A failed token request drops the response body from the error. ## Why The Containerfile comment says the pins match. The parallel token POSTs are redundant. A bad client secret is harder to diagnose without the body. ## Failing case Build the image: it uses pnpm 11.17.0, not the Volta pin. Start a run: six token requests are sent. ## Fix Use 11.28.3 in the Containerfile. Await one token before the fan-out, or cache the pending promise. Include `res.text()` in the token error like `getJson` does. ## Done when - [ ] Containerfile pnpm version equals the `package.json` pin - [ ] One token request per run when the token is fresh - [ ] Token error includes the response body
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-auth-reconciler#86
Ingen beskrivning angiven.