Files
SkillFactory/performance_v042/cpu-first.log
T
chenlin c528dd268f feat: checkpoint Go2 FL simulation performance v0.4.2
Include callable skill and live-GUI prerequisites, epoch sensor reads, packed snapshots, sampled bit-exact kinematics, and verified-tick rendering without changing the physical/control schedule.

Record bounded analytic S1 GUI/headless qualification, original failures and CPU evidence (1557 passed, 6 skipped). Preserve accepted_skill=false and sub-real-time limitations. Exclude native authorities, caches, large media and local delivery copies; retain sealed artifact digest.
2026-10-16 15:46:01 +08:00

50 lines
3.2 KiB
Plaintext

.......FF................................... [100%]
=================================== FAILURES ===================================
____ test_substep_two_keeps_offending_packed_frame_all_causes_and_no_render ____
make_env = <function make_env.<locals>.make at 0x76bc60275120>
def test_substep_two_keeps_offending_packed_frame_all_causes_and_no_render(make_env):
frames = [];pack = copy_function();renders = []
def evidence(event, s):
if event.kind != 'tick':return ()
f = pack({'value': torch.tensor([float('nan') if event.clock.global_tick == 2 else 1.])}, group_cpu=True)
frames.append(f)
return ('fault_one', 'fault_two') if not bool(torch.isfinite(f['value']).all()) else ()
env, hooks, _ = make_env(evidence=evidence)
env.cfg.sim.render_interval = 2;env.sim.is_rendering = True
env.sim.render = lambda **_: renders.append(True)
result = env.step(torch.zeros(1, 3))
assert result.stop.causes == ('fault_one', 'fault_two')
> assert env.sim.calls == hooks.rollout_steps == 2 and len(frames) == 2 and not renders
E assert (4 == 2)
E + where 4 = <test_contact_cycle_sim_evaluation_runtime.runtime.<locals>.Sim object at 0x76bc6026d7d0>.calls
E + where <test_contact_cycle_sim_evaluation_runtime.runtime.<locals>.Sim object at 0x76bc6026d7d0> = <SkillFactory.tasks.manager_based.contact_cycle_sim.evaluation_env.EvaluationContactCycleEnv object at 0x76bc6026ff90>.sim
E + and 2 = <SkillFactory.tasks.manager_based.contact_cycle_sim.evaluation_env.RuntimeHooks object at 0x76bc6036b450>.rollout_steps
tests/test_contact_cycle_performance_v042.py:140: AssertionError
_______________ test_transfer_exception_stops_before_third_step ________________
make_env = <function make_env.<locals>.make at 0x76bc60144540>
def test_transfer_exception_stops_before_third_step(make_env):
pack = copy_function();events = []
def evidence(event, s):
if event.kind == 'tick':
events.append(event.clock.global_tick)
if event.clock.global_tick == 2:pack({'bad': 1})
return ()
env, hooks, _ = make_env(evidence=evidence)
result = env.step(torch.zeros(1, 3))
> assert env.sim.calls == hooks.rollout_steps == 2 and events == [1, 2]
E assert (4 == 2)
E + where 4 = <test_contact_cycle_sim_evaluation_runtime.runtime.<locals>.Sim object at 0x76bc608743d0>.calls
E + where <test_contact_cycle_sim_evaluation_runtime.runtime.<locals>.Sim object at 0x76bc608743d0> = <SkillFactory.tasks.manager_based.contact_cycle_sim.evaluation_env.EvaluationContactCycleEnv object at 0x76bc60152110>.sim
E + and 2 = <SkillFactory.tasks.manager_based.contact_cycle_sim.evaluation_env.RuntimeHooks object at 0x76bc60808ad0>.rollout_steps
tests/test_contact_cycle_performance_v042.py:153: AssertionError
=========================== short test summary info ============================
FAILED tests/test_contact_cycle_performance_v042.py::test_substep_two_keeps_offending_packed_frame_all_causes_and_no_render
FAILED tests/test_contact_cycle_performance_v042.py::test_transfer_exception_stops_before_third_step
2 failed, 42 passed in 8.69s