Flaky: NetworkFailureRecorderLiveTest.chrome_cdp_recordsFailedRequestsOnly

Offen
#259 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
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java, testing-qa
Bereich
testing

Rechercherichtung

Start with NetworkFailureRecorderLiveTest.chrome_cdp_recordsFailedRequestsOnly and the recorder it drives, which assembles method and URL from CDP events; the failure is that requestWillBeSent can arrive after the response, so the fallback defaults get recorded. Run the test in a loop to reproduce the roughly 1-in-5 failure. Done when the method and URL survive out-of-order events, or the test waits for both events, and it passes 20 out of 20 runs locally.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

Fails about 1 run in 5 locally on unmodified master (2a07bba), with Chrome reporting CDP 157 while Selenium tops out at 156.

When it fails, the /fail request (a POST in the page) is recorded as GET ... 500, and a GET (unknown) 0 net::ERR_CONNECTION_REFUSED entry has no URL, so the method and URL assertions miss:

[GET http://127.0.0.1:<port>/fail 500 null, GET (unknown) 0 net::ERR_CONNECTION_REFUSED, GET http://127.0.0.1:<port>/missing 404 null]

This looks like CDP events for the same request arriving out of order (the response before requestWillBeSent), so the recorder falls back to defaults. Found while verifying #254, which doesn't touch tracing.

Done when: the recorder keeps the method and URL when events arrive out of order, or the test waits for the events properly, and the test passes 20/20 locally.

Vorherrschende Sprache
Java
Sterne
12
Forks
6
Ø Merge
10 Std.
Gemergte PRs (30 T.)
76

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 seleniumboot/selenium-boot

Alle Issues in seleniumboot/selenium-boot

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

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