The Hosted UI sign-in journey binds a fixed port and fails when it is already in use

Offen Anfängerfreundlich
#1,888 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
85/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
playwright, typescript
Bereich
testing

Rechercherichtung

Beginne mit frontend/tests/e2e/hosted-ui-sign-in.journey.spec.ts, insbesondere mit der Stub-API-Einrichtung in beforeAll und dem Aufruf von listen um Zeile 260. Prüfe, wie der Server seine zugewiesene Adresse bereitstellt und wie der Journey diese Adresse an das Frontend übergibt. Die Aufgabe ist erledigt, wenn der Journey zuverlässig mit einem verfügbaren Port startet und seine sieben Tests bestehen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

The Hosted UI sign-in journey (frontend/tests/e2e/hosted-ui-sign-in.journey.spec.ts) starts its stub API on a fixed address, 127.0.0.1:55550 (HOSTED_UI_E2E_API_PORT ?? 55550, lines 43-44; the listen call in beforeAll, around line 260). On a runner where that port is already taken, the journey cannot start.

Measured

  • PR QA Gate run 42868240753, job 130022854757 ("Browser E2E"), step 14 "Run the browser journeys": Error: listen EADDRINUSE: address already in use 127.0.0.1:55550, on the first attempt and again on Playwright's one retry, which runs the spec again from the start, so nothing in this spec still held the port.
  • All 7 journeys in the spec got no result: 1 failed, 6 did not run; the other 76 journeys passed.
  • No other spec or workflow names port 55549 or 55550.
  • The same spec passed on another runner about 21 seconds earlier (job 130026182487), and on every other Browser E2E run today.

Inferred, not measured

55550 lies inside Linux's default ephemeral port range (32768-60999), so a socket the job had already opened could have been using it as its local port.

Expected

The journey takes a free port (for example, listen on port 0 and read the assigned port back), or chooses one outside the ephemeral range, so it cannot collide with another socket on the runner.

Impact

Test-only: no shipped code is affected. The failure looks like a product failure in the required Browser E2E check, so it should be fixed to keep that check trustworthy.

🤖 Generated with Claude Code

https://claude.ai/code/session_019CNVFcEPovQW1L3b1vWqGH

Vorherrschende Sprache
Python
Sterne
0
Forks
4
Ø Merge
7 Std. 30 Min.
Gemergte PRs (30 T.)
468

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Controlvar/controlvar

Alle Issues in Controlvar/controlvar

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.