apache / apache/pulsar-client-python
Flaky test: Oauth2Test.test_base64
- Linguagem predominante
- Python
- Estrelas
- 75
- Forks
- 53
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
https://github.com/apache/pulsar-client-python/actions/runs/5493895300/jobs/10012373710?pr=138
```
======================================================================
2023-07-08 10:09:29.109 ERROR [139724761126464] ClientImpl:214 | Error Checking/Getting Partition Metadata while creating producer on persistent://public/default/oauth2-test-base64 -- AuthenticationError
ERROR: test_base64 (__main__.Oauth2Test)
2023-07-08 10:09:29.110 INFO [139724795805696] ClientImpl:614 | Closing Pulsar client with 0 producers and 0 consumers
----------------------------------------------------------------------
2023-07-08 10:09:29.110 INFO [139724761126464] ClientConnection:263 | [[::1]:45552 -> [::1]:6650] Destroyed connection
Traceback (most recent call last):
File "/home/runner/work/pulsar-client-python/pulsar-client-python/tests/oauth2_test.py", line 69, in test_base64
producer = client.create_producer('oauth2-test-base64')
File "/home/runner/.local/lib/python3.10/site-packages/pulsar/__init__.py", line 684, in create_producer
p._producer = self._client.create_producer(topic, conf)
_pulsar.TopicNotFound: Pulsar error: TopicNotFound
======================================================================
ERROR: test_key_file (__main__.Oauth2Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/pulsar-client-python/pulsar-client-python/tests/oauth2_test.py", line 53, in test_key_file
producer = client.create_producer('oauth2-test-base64')
File "/home/runner/.local/lib/python3.10/site-packages/pulsar/__init__.py", line 684, in create_producer
p._producer = self._client.create_producer(topic, conf)
_pulsar.TopicNotFound: Pulsar error: TopicNotFound
```
Guia de contribuição
Direção de pesquisa
Comece por tests/oauth2_test.py, especialmente Oauth2Test.test_base64 e test_key_file, e depois inspecione a execução vinculada do GitHub Actions em busca das falhas TopicNotFound. Determine por que os testes de OAuth2 falham intermitentemente ao criar o producer; o trabalho estará concluído quando esses testes passarem de forma confiável no CI.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- testing
- Tipo de issue
- Bug
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 38/100