Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

azdev test failing with LROPoller Error

Abierto
#286 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
azure, python
Área
cli, testing-qa

Línea de trabajo

Reproduce el fallo con azdev test y comienza con src/k8s-extension/azext_k8s_extension/tests/latest/test_k8s_extension_scenario.py::K8sExtensionScenarioTest::test_k8s_extension. Lee la aserción de teardown en azure_devtools/scenario_tests/base.py y determina qué LROPoller sigue activo; la tarea está completada cuando esta prueba de escenario finaliza sin el fallo de la aserción.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Running azdev test is failing on our private preview extension with the following error, please help resolve this

self = <azext_k8s_extension.tests.latest.test_k8s_extension_scenario.K8sExtensionScenarioTest testMethod=test_k8s_extension>

    def tearDown(self):
        os.environ = self.original_env
        # Autorest.Python 2.x
        assert not [t for t in threading.enumerate() if t.name.startswith("AzureOperationPoller")], \
            "You need to call 'result' or 'wait' on all AzureOperationPoller you have created"
        # Autorest.Python 3.x
>       assert not [t for t in threading.enumerate() if t.name.startswith("LROPoller")], \
            "You need to call 'result' or 'wait' on all LROPoller you have created"
E       AssertionError: You need to call 'result' or 'wait' on all LROPoller you have created

env\lib\site-packages\azure_devtools\scenario_tests\base.py:154: AssertionError
------------------------------------------------------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------------------------------------------------------- 
WARNING: Command group 'k8s-extension' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Ignoring name, release-namespace and scope parameters since microsoft.azuremonitor.containers only supports cluster scope and single instance of this extension
--------------------------------------------------------------------- generated xml file: C:\Users\joinnis\.azdev\env_config\Users\joinnis\github\narayan-cli-pr\env\test_results.xml --------------------------------------------------------------------- 
================================================================================================================= short test summary info ================================================================================================================= 
FAILED src\k8s-extension\azext_k8s_extension\tests\latest\test_k8s_extension_scenario.py::K8sExtensionScenarioTest::test_k8s_extension - AssertionError: You need to call 'result' or 'wait' on all LROPoller you have created
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! xdist.dsession.Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================================================================================== 1 failed in 11.24s ====================================================================================================================
Lenguaje dominante
Python
Estrellas
91
Forks
134
Merge medio
2 h 51 min
PR fusionados (30 d)
1

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/azure-cli-dev-tools

Todos los issues de Azure/azure-cli-dev-tools

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.