CI failed on Windows
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- testing-qa
Línea de trabajo
Empieza con las pruebas que fallan en pyperf/tests/test_perf_cli.py y pyperf/tests/test_timeit.py, y después reproduce los fallos de CI de Windows. Sigue los errores de los subprocesos RSS y timeit indicados en los stack traces. Se considera terminado cuando las tres pruebas pasan en Windows sin cambiar su comportamiento esperado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
======================================================================
FAIL: test_command_track_memory (test_perf_cli.TestPerfCLI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\pyperf\pyperf\pyperf\tests\test_perf_cli.py", line 619, in test_command_track_memory
self.run_command(*args)
File "D:\a\pyperf\pyperf\pyperf\tests\test_perf_cli.py", line 35, in run_command
self.assertEqual(proc.stderr, '')
AssertionError: 'Traceback (most recent call last):\n Fil[2698 chars] 1\n' != ''
- Traceback (most recent call last):
- File "c:\hostedtoolcache\windows\python\3.9.2\x64\lib\runpy.py", line 197, in _run_module_as_main
- return _run_code(code, main_globals, None,
- File "c:\hostedtoolcache\windows\python\3.9.2\x64\lib\runpy.py", line 87, in _run_code
- exec(code, run_globals)
- File "D:\a\pyperf\pyperf\pyperf\__main__.py", line 763, in <module>
- main()
- File "D:\a\pyperf\pyperf\pyperf\__main__.py", line 759, in main
- func()
- File "D:\a\pyperf\pyperf\pyperf\__main__.py", line 728, in cmd_bench_command
- runner.bench_command(name, command)
- File "D:\a\pyperf\pyperf\pyperf\_runner.py", line 622, in bench_command
- return self._main(task)
- File "D:\a\pyperf\pyperf\pyperf\_runner.py", line 427, in _main
- bench = self._worker(task)
- File "D:\a\pyperf\pyperf\pyperf\_runner.py", line 401, in _worker
- run = task.create_run()
- File "D:\a\pyperf\pyperf\pyperf\_worker.py", line 284, in create_run
- self.compute()
- File "D:\a\pyperf\pyperf\pyperf\_command.py", line 53, in compute
- raise RuntimeError("failed to get the process RSS")
- RuntimeError: failed to get the process RSS
- Traceback (most recent call last):
- File "c:\hostedtoolcache\windows\python\3.9.2\x64\lib\runpy.py", line 197, in _run_module_as_main
- return _run_code(code, main_globals, None,
- File "c:\hostedtoolcache\windows\python\3.9.2\x64\lib\runpy.py", line 87, in _run_code
- exec(code, run_globals)
- File "D:\a\pyperf\pyperf\pyperf\__main__.py", line 763, in <module>
- main()
- File "D:\a\pyperf\pyperf\pyperf\__main__.py", line 759, in main
- func()
- File "D:\a\pyperf\pyperf\pyperf\__main__.py", line 728, in cmd_bench_command
- runner.bench_command(name, command)
- File "D:\a\pyperf\pyperf\pyperf\_runner.py", line 622, in bench_command
- return self._main(task)
- File "D:\a\pyperf\pyperf\pyperf\_runner.py", line 432, in _main
- bench = self._manager()
- File "D:\a\pyperf\pyperf\pyperf\_runner.py", line 560, in _manager
- bench = Manager(self).create_bench()
- File "D:\a\pyperf\pyperf\pyperf\_manager.py", line 229, in create_bench
- worker_bench, run = self.create_worker_bench()
- File "D:\a\pyperf\pyperf\pyperf\_manager.py", line 128, in create_worker_bench
- suite = self.create_suite()
- File "D:\a\pyperf\pyperf\pyperf\_manager.py", line 122, in create_suite
- suite = self.spawn_worker(0, 0)
- File "D:\a\pyperf\pyperf\pyperf\_manager.py", line 104, in spawn_worker
- raise RuntimeError("%s failed with exit code %s"
- RuntimeError: D:\a\pyperf\pyperf\.tox\py\Scripts\python.EXE failed with exit code 1
======================================================================
FAIL: test_python_option (test_timeit.TestTimeit)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\pyperf\pyperf\pyperf\tests\test_timeit.py", line 248, in test_python_option
self.assertEqual(cmd.returncode, 0, repr(cmd.stdout + cmd.stderr))
AssertionError: 1 != 0 : 'Error when running timeit benchmark:\n\nStatement:\n\'time.sleep(1e-6)\'\n\nSetup:\n\'import time\'\n\nNo pyvenv.cfg file\nTraceback (most recent call last):\n File "D:\\a\\pyperf\\pyperf\\pyperf\\_timeit.py", line 230, in bench_timeit\n runner.bench_time_func(name, timer.time_func, **kwargs)\n File "D:\\a\\pyperf\\pyperf\\pyperf\\_runner.py", line 462, in bench_time_func\n return self._main(task)\n File "D:\\a\\pyperf\\pyperf\\pyperf\\_runner.py", line 432, in _main\n bench = self._manager()\n File "D:\\a\\pyperf\\pyperf\\pyperf\\_runner.py", line 560, in _manager\n bench = Manager(self).create_bench()\n File "D:\\a\\pyperf\\pyperf\\pyperf\\_manager.py", line 229, in create_bench\n worker_bench, run = self.create_worker_bench()\n File "D:\\a\\pyperf\\pyperf\\pyperf\\_manager.py", line 128, in create_worker_bench\n suite = self.create_suite()\n File "D:\\a\\pyperf\\pyperf\\pyperf\\_manager.py", line 122, in create_suite\n suite = self.spawn_worker(0, 0)\n File "D:\\a\\pyperf\\pyperf\\pyperf\\_manager.py", line 104, in spawn_worker\n raise RuntimeError("%s failed with exit code %s"\nRuntimeError: C:\\Users\\runneradmin\\AppData\\Local\\Temp\\tmpsstomtue failed with exit code 106\n'
======================================================================
FAIL: test_worker_verbose (test_timeit.TestTimeit)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\pyperf\pyperf\pyperf\tests\test_timeit.py", line 107, in test_worker_verbose
self.assertIsNotNone(match, repr(cmd.stdout))
AssertionError: unexpectedly None : "Warmup 1: 337 us (loops: 1, raw: 337 us)\n\nValue 1: 1.86 ms\nValue 2: 853 us\n\nMetadata:\n- boot_time: 2021-03-16 06:40:42.876194\n- cpu_count: 2\n- date: 2021-03-16 06:46:56.876194\n- duration: 16.0 ms\n- hostname: fv-az68-167\n- loops: 1\n- mem_peak_pagefile_usage: 9988.0 kB\n- name: timeit\n- perf_version: 2.1.1\n- platform: Windows-10-10.0.17763-SP0\n- python_compiler: MSC v.1928 64 bit (AMD64)\n- python_executable: D:\\a\\pyperf\\pyperf\\.tox\\py\\Scripts\\python.EXE\n- python_hash_seed: 337\n- python_implementation: cpython\n- python_version: 3.9.2 (64-bit) revision 1a79785\n- timeit_setup: 'import time'\n- timeit_stmt: 'time.sleep(1e-3)'\n- timer: QueryPerformanceCounter(), resolution: 100 ns\n- unit: second\n- uptime: 6 min 14.0 sec\n\nMean +- std dev: 1.36 ms +- 0.71 ms\n"
----------------------------------------------------------------------
Ran 165 tests in 18.766s
FAILED (failures=3)
ERROR: InvocationError for command 'D:\a\pyperf\pyperf\.tox\py\Scripts\python.EXE' -bb -Wd -m unittest discover -s pyperf/tests/ -v (exited with code 1)
___________________________________ summary ___________________________________
ERROR: py: commands failed
- Lenguaje dominante
- Python
- Estrellas
- 967
- Forks
- 112
- Merge medio
- 5 d 8 h
- PR fusionados (30 d)
- 9
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de psf/pyperf
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
psf/pyperf#274 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Improve Type System for `pyperf`Posiblemente ocupada @DebanKsahu la tomó hace 69 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
psf/pyperf#255 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 32/100
psf/pyperf#243 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Extend hook's teardown metadata with warmup/calibration flagsPosiblemente ocupada @maurycy la tomó hace 170 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
psf/pyperf#239 · 12 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
psf/pyperf#216 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de psf/pyperf
Issues similares
-
add entry to blockAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
StevenBlack/hosts#3299 ·
-
`garak --report` overwrites the input report when its name has no ".report"Posiblemente ocupada @0z5a la tomó hoy. Abiertoneeds-triage
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
plot_graph crashes when a mesh node has no m2m edgePosiblemente ocupada @tygvi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
mllam/neural-lam#883 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
future-agi/future-agi#4092 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
transcript analytics: a text whose only protected spans the prose pass redacts is withheld wholeAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
WingedGuardian/GENesis-AGI#4641 ·
Los mantenedores suelen responder en 1 día