Adds Virtual Tennis Tutorial #461
Draft
Cirrus CI / Windows python:3.8-windowsservercore
failed
Dec 10, 2023 in 1m 21s
Task Summary
Instruction main failed in 01:06
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:01 clone
✅ 00:12 install
❌ 01:06 main
note(f"point->frame->viewport: {point_viewport}")
assert point_viewport.isclose(point, rel_tol=1e-5, rel_to=[cam.position])
point_viewport = cam.translate_point_to_game_space(point)
note(f"point->viewport: {point_viewport}")
point_frame = cam.translate_point_to_screen(point_viewport)
note(f"point->viewport->frame: {point_frame}")
> assert point_frame.isclose(point, rel_tol=1e-5, rel_to=[cam.position])
E assert False
E + where False = <bound method Vector.isclose of Vector(0.00021362518443240885, 0.0)>(Vector(0.0002136230468750004, 0.0), rel_tol=1e-05, rel_to=[Vector(0.0, 0.0)])
E + where <bound method Vector.isclose of Vector(0.00021362518443240885, 0.0)> = Vector(0.00021362518443240885, 0.0).isclose
E Falsifying example: test_transformation_roundtrip(
E vp_width=83916553,
E vp_height=1, # or any other generated value
E target_width=1.0,
E cam_pos=Vector(0.0, 0.0),
E point=Vector(0.0002136230468750004, 0.0),
E )
E frame: (-0.5, -5.958300026932708e-09) -> (0.5, 5.958300026932708e-09)
E point: Vector(0.0002136230468750004, 0.0)
E point->frame: Vector(41976203.00973511, 0.5)
E point->frame->viewport: Vector(0.000213623046875, 0.0)
E point->viewport: Vector(-0.4999999999974543, 5.958300026932708e-09)
E point->viewport->frame: Vector(0.00021362518443240885, 0.0)
E
E You can reproduce this example by temporarily adding @reproduce_failure('6.92.0', b'AXicY2TkYngnwIAMGBlwgQPnwRQzkhAAW8ICng==') as a decorator on your test case
tests\test_camera.py:179: AssertionError
============================== warnings summary ===============================
..\..\..\..\..\..\Python\lib\site-packages\sdl2\_internal.py:24
C:\Python\lib\site-packages\sdl2\_internal.py:24: UserWarning: Using SDL2 binaries from pysdl2-dll 2.28.4
warnings.warn(msg, warntype)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ===========================
FAILED tests/test_camera.py::test_transformation_roundtrip - assert False
+ where False = <bound method Vector.isclose of Vector(0.00021362518443240885, 0.0)>(Vector(0.0002136230468750004, 0.0), rel_tol=1e-05, rel_to=[Vector(0.0, 0.0)])
+ where <bound method Vector.isclose of Vector(0.00021362518443240885, 0.0)> = Vector(0.00021362518443240885, 0.0).isclose
Falsifying example: test_transformation_roundtrip(
vp_width=83916553,
vp_height=1, # or any other generated value
target_width=1.0,
cam_pos=Vector(0.0, 0.0),
point=Vector(0.0002136230468750004, 0.0),
)
frame: (-0.5, -5.958300026932708e-09) -> (0.5, 5.958300026932708e-09)
point: Vector(0.0002136230468750004, 0.0)
point->frame: Vector(41976203.00973511, 0.5)
point->frame->viewport: Vector(0.000213623046875, 0.0)
point->viewport: Vector(-0.4999999999974543, 5.958300026932708e-09)
point->viewport->frame: Vector(0.00021362518443240885, 0.0)
You can reproduce this example by temporarily adding @reproduce_failure('6.92.0', b'AXicY2TkYngnwIAMGBlwgQPnwRQzkhAAW8ICng==') as a decorator on your test case
============= 1 failed, 388 passed, 1 warning in 63.44s (0:01:03) =============
C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build>if 1 NEQ 0 exit /b 1
Loading