CI: tirar o apt lento do job painel (imagem oficial do Playwright), para o timeout voltar a 15 min
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
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ó noapt. - 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ê)
- Rodar o job na imagem oficial
mcr.microsoft.com/playwright(comocontainer:do job), na mesma versão do@playwright/testdopackage-lock.json. Os pacotes do sistema já vêm na imagem, e oaptsai do run. É a opção preferida. - Instalar as deps só do necessário. Atenção: os testes e2e usam
chromiumewebkit(ci.yml, linha doplaywright 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-minutesdo 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
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from learnTECH-community/formacao-dev
-
Comunidade: reconhecer quem contribui, inclusive sem código (docs/comunidade/quem-contribuiu.md)Opendocumentation trilha:T11
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
learnTECH-community/formacao-dev#351 ·
Maintainers usually reply within 1 day
-
trilha:T4
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
learnTECH-community/formacao-dev#348 ·
Maintainers usually reply within 1 day
-
boa-primeira-issue good first issue trilha:T2
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
learnTECH-community/formacao-dev#347 ·
Maintainers usually reply within 1 day
-
boa-primeira-issue good first issue trilha:T2
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
learnTECH-community/formacao-dev#346 ·
Maintainers usually reply within 1 day
-
trilha:T9
Difficulty 2/5 Under an hour Newbie friendliness 72/100
learnTECH-community/formacao-dev#343 ·
Maintainers usually reply within 1 day
All issues in learnTECH-community/formacao-dev
Similar issues
-
[Sonar] javascript:S7772: Node.js built-in modules should be imported using the "node:" protocolOpensonar:maintainability sonarqube
Difficulty 1/5 Under an hour Newbie friendliness 85/100
telefonicaid/kafnus#338 ·
Maintainers usually reply within 1 day
-
fix
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
idean3885/claude-ops-agent#1257 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
volcengine/OpenViking#8432 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
[bug] Explorer trims leading spaces on file namesPossibly taken @unshade claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
mickael-kerjean/filestash#1033 · 1 comment ·