CI: tirar o apt lento do job painel (imagem oficial do Playwright), para o timeout voltar a 15 min

Open
#352 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
40/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, github-actions, javascript
Domain
ci-cd

Research direction

Start in the painel job of ci.yml, at the playwright install --with-deps step and its timeout-minutes setting, then compare the @playwright/test version in package-lock.json. Choose between running the job in the official Playwright container image or installing only the needed dependencies, and check whether the e2e and axe tests still cover both chromium and webkit. Done means the panel job finishes under 5 minutes on the next 10 runs, with the timeout back at 15 and the image version matching the Playwright package.

Written by the indexing model from the issue text.

Description

trilha:T9

Objetivo

Tirar do job painel do CI a instalação lenta de pacotes do sistema (playwright install --with-deps), para ele voltar a levar de 2 a 3 min sempre e o timeout-minutes voltar de 45 para 15.

Motivo (medido nos logs; escopo trocado em 24/11)

A reconferência R19 do Esp DevOps no #350 leu os logs dos runs lentos.

  • Os 3 runs lentos (29,2, 29,7 e 31,5 min) caíram no mirror apt us-east-2.ec2: são cerca de 140 MB a ~85 kB/s, o que dá de 26 a 29 min só no apt.
  • Os runs rápidos caíram no mirror da Azure e fazem a mesma etapa em 11 a 18 s.
  • Os navegadores em si baixam em ~6 s. Por isso, o cache de ~/.cache/ms-playwright, que era a proposta inicial desta issue, não resolve. A causa está nos pacotes do sistema, e não nos navegadores.

Caminhos (escolher 1 no PR, com o porquê)

  1. Rodar o job na imagem oficial mcr.microsoft.com/playwright (como container: do job), na mesma versão do @playwright/test do package-lock.json. Os pacotes do sistema já vêm na imagem, e o apt sai do run. É a opção preferida.
  2. Instalar as deps só do necessário. Atenção: os testes e2e usam chromium e webkit (ci.yml, linha do playwright install). Instalar as deps só do chromium quebraria o webkit, a menos que se aceite rodar o e2e só no chromium. Isso tira cobertura e precisa ser decidido no PR.

Critérios de aceite

  • Nos 10 primeiros runs depois do merge, o painel fica abaixo de 5 min em todos. Cite os tempos.
  • O timeout-minutes do painel volta para 15, com o comentário atualizado.
  • A versão da imagem acompanha o @playwright/test, e o PR diz como o Dependabot atualiza as duas juntas.
  • O axe e os e2e continuam nos mesmos navegadores, ou o PR registra a decisão de mudar.

Tamanho e prioridade

P (1 a 2 h) · p1 (era p2). O limite de 45 min só esconde a lentidão, e cerca de 10% dos runs já levam ~30 min.

Fora do escopo

  • O cache de ~/.cache/ms-playwright: medido, não ajuda.
  • Os outros workflows sem timeout, listados no #350.
Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
15h 6m
Merged PRs (30d)
118

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learnTECH-community/formacao-dev

All issues in learnTECH-community/formacao-dev

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.