Flaky: NetworkFailureRecorderLiveTest.chrome_cdp_recordsFailedRequestsOnly

Aberta
#259 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
42/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
java, testing-qa
Domínio
testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Java
Estrelas
12
Forks
6
Merge médio
10h
PRs com merge (30d)
76

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de seleniumboot/selenium-boot

Todas as issues de seleniumboot/selenium-boot

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.