[CI]: test-scripts skips two test files, and one of them fails

Aberta Para iniciantes
#977 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
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
82/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
github-actions, python
Domínio
ci-cd, testing

Direção de pesquisa

Comece por .github/workflows/test-parser.yml e pelo diretório .github/scripts/tests. Atualize test_subject_uppercase em test_lintcommit.py para corresponder à alteração da regra descrita na issue e, em seguida, execute python -m pytest .github/scripts/tests. A tarefa estará concluída quando o job test-scripts executar o diretório inteiro e esse comando passar.

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

Descrição

needs-triage

Found while working on Python #971: add PR status labels and bump issue triage.

Problem

The test-scripts job in test-parser.yml runs a fixed list of test files, so a new file under .github/scripts/tests runs in CI only after someone adds it to the list. No other job runs these files, because the pytest testpaths setting lists only packages/*/tests directories.

Two files are not on the list, so CI does not run them:

Change
  • Change test_subject_uppercase to expect no error, since uppercase subjects are allowed on purpose.
  • Run the whole .github/scripts/tests directory in test-scripts instead of the list, so a new test file runs without a list edit.
Acceptance criteria
  • test-scripts runs every test file under .github/scripts/tests.
  • python -m pytest .github/scripts/tests passes on main.
Linguagem predominante
Python
Estrelas
59
Forks
32
Merge médio
1d 5h
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 aws/aws-durable-execution-sdk-python

Todas as issues de aws/aws-durable-execution-sdk-python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

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