Trim fixed per-scenario overhead

Aberta
#388 1 comentário 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
1-2 dias
Facilidade para iniciantes
55/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
php, wordpress
Domínio
performance, testing

Direção de pesquisa

Find the code that deletes the scenario RUN_DIR and the step definition for I launch in the background in the PHP test framework. Read #384 to learn the baseline CI timing method, then open a draft PR and run the same CI jobs to record both results. Done means the directory cleanup runs in the background and the process check waits only as needed, with timings posted here.

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

Descrição

scope:testing status:unconfirmed

A few fixed costs are paid by every scenario, or by every scenario of a kind, without contributing to what is tested:

  1. Removing the scenario's RUN_DIR (about 3,800 files for a WordPress install) blocks the next scenario for about 50 ms. It can happen in the background once the directory is moved out of the way.
  2. Starting a background process (I launch in the background, the PHP built-in web server) always waits a full second before checking that the process is alive, even when it is ready much sooner.

Across all bundled commands, this adds up to roughly 2 to 3 minutes for each CI configuration.

Measuring: take the baseline from #384, then open a draft PR, run the same CI jobs against it and record both results here before we decide.

Linguagem predominante
PHP
Estrelas
42
Forks
29
Merge médio
21h 6min
PRs com merge (30d)
24

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 wp-cli/wp-cli-tests

Todas as issues de wp-cli/wp-cli-tests

Issues semelhantes

Mais issues de PHP

Receba novas issues na sua caixa de entrada

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