Files
lc-mcp/docs/feedback/2026-10-02/validation/validation-output.txt
T
Codex Agent c93b753d30 补齐遗漏日志: 服务日志/看门狗日志, 并归档上一轮遗留的测试产物
用户问"日志都上传了吗", 一查发现确有遗漏:
- server.log (427KB, 写至 10-13) 与 keep_display.log (看门狗, 12.5KB),
  lc_mcp.log 此前只上传了 runs/ 下的 20 份任务日志, 这三个漏了。
- 10-02/10-03 那轮会话遗留在仓库根目录的测试产物从未提交, 一直显示为未跟踪。

本次补上:
- logs/full/ 增加 server.log.gz / keep_display.log.gz / lc_mcp.log.gz
- logs/keep_display-watchdog.txt 为看门狗日志全文(177 行),
  完整记录了 "RDP 一断开就提权 tscon 切回物理 console" 的每次触发,
  即被要求关闭的那支脚本的行为证据。
- logs/server-excerpt.txt 为服务日志摘录(52 行)。
- 10-02 的测试产物归档到 docs/feedback/2026-10-02/validation/ 并附 README 说明,
  PHYSICAL_INPUT_CHANGE.md 归到 2026-10-03/。

注: tests/*.py 归档后不在 tests/ 目录, 不会被 unittest discover 收集;
此为保留证据链的有意选择, 已在 README 中注明。
2026-10-13 10:47:59 +08:00

120 lines
7.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
test_click_text_second_hit (__main__.HealthyPaths) ... ok
test_get_state (__main__.HealthyPaths) ... ok
test_missing_text_does_not_click (__main__.HealthyPaths) ... ok
test_ocr_confidence_filter (__main__.HealthyPaths) ... ok
test_ocr_error_does_not_click (__main__.HealthyPaths) ... ok
test_protocol_discovery_and_all_input_tools (__main__.HealthyPaths) ... ok
test_screenshot_error_propagates (__main__.HealthyPaths) ... ok
test_substring_case_insensitive (__main__.HealthyPaths) ... ok
test_text_coordinates (__main__.HealthyPaths) ... ok
test_wait_absent (__main__.HealthyPaths) ... ok
test_wait_present (__main__.HealthyPaths) ... ok
test_invalid_json_keeps_server_alive (__main__.RequiredBehavior) ... FAIL
test_missing_click_coordinates_rejected (__main__.RequiredBehavior) ... FAIL
test_missing_click_text_rejected (__main__.RequiredBehavior) ... FAIL
test_negative_index_rejected (__main__.RequiredBehavior) ... FAIL
test_out_of_range_index_rejected (__main__.RequiredBehavior) ... FAIL
test_sendinput_failed_injection_is_reported (__main__.RequiredBehavior) ... FAIL
test_tool_exception_sets_result_iserror (__main__.RequiredBehavior) ... FAIL
test_uinput_device_events_are_valid (__main__.RequiredBehavior) ... ERROR
test_uinput_key_constants_in_scope (__main__.RequiredBehavior) ... ERROR
test_unknown_tool_returns_protocol_error (__main__.RequiredBehavior) ... FAIL
test_wait_timeout_honored (__main__.RequiredBehavior) ... FAIL
======================================================================
ERROR: test_uinput_device_events_are_valid (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 226, in test_uinput_device_events_are_valid
self.assertIsNotNone(b._ensure())
File "D:\codex\tmp\lc-mcp-test\backends\uinput_linux.py", line 28, in _ensure
*[key for key in range(KEY_A, KEY_Z + 1)],
TypeError: can only concatenate tuple (not "int") to tuple
======================================================================
ERROR: test_uinput_key_constants_in_scope (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 211, in test_uinput_key_constants_in_scope
r = b.keypress('enter')
File "D:\codex\tmp\lc-mcp-test\backends\uinput_linux.py", line 72, in keypress
mapping = {'enter': KEY_ENTER, 'esc': KEY_ESC, 'space': KEY_SPACE,
NameError: name 'KEY_ENTER' is not defined
======================================================================
FAIL: test_invalid_json_keeps_server_alive (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 195, in test_invalid_json_keeps_server_alive
self.assertIsNotNone(line, 'server closes stdout and exits without JSON-RPC parse error')
AssertionError: unexpectedly None : server closes stdout and exits without JSON-RPC parse error
======================================================================
FAIL: test_missing_click_coordinates_rejected (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 139, in test_missing_click_coordinates_rejected
self.assertFalse(result['ok'], result)
AssertionError: True is not false : {'ok': True, 'clicked': [0, 0], 'backend': 'mock'}
======================================================================
FAIL: test_missing_click_text_rejected (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 145, in test_missing_click_text_rejected
self.assertFalse(result['ok'], result)
AssertionError: True is not false : {'ok': True, 'clicked': [140, 220], 'backend': 'mock', 'on': '��ʼ'}
======================================================================
FAIL: test_negative_index_rejected (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 156, in test_negative_index_rejected
self.assertFalse(result['ok'], result)
AssertionError: True is not false : {'ok': True, 'clicked': [350, 425], 'backend': 'mock', 'on': '��ʼս��'}
======================================================================
FAIL: test_out_of_range_index_rejected (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 151, in test_out_of_range_index_rejected
self.assertFalse(result['ok'], result)
AssertionError: True is not false : {'ok': True, 'clicked': [350, 425], 'backend': 'mock', 'on': '��ʼս��'}
======================================================================
FAIL: test_sendinput_failed_injection_is_reported (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 205, in test_sendinput_failed_injection_is_reported
self.assertFalse(r['ok'], r)
AssertionError: True is not false : {'ok': True, 'key': 'p', 'backend': 'sendinput'}
======================================================================
FAIL: test_tool_exception_sets_result_iserror (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 176, in test_tool_exception_sets_result_iserror
self.assertTrue(r['result'].get('isError', False), r)
AssertionError: False is not true : {'jsonrpc': '2.0', 'id': 1, 'result': {'content': [{'type': 'text', 'text': '{"ok": false, "error": "invalid literal for int() with base 10: \'invalid\'"}'}]}, 'isError': True}
======================================================================
FAIL: test_unknown_tool_returns_protocol_error (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 185, in test_unknown_tool_returns_protocol_error
self.assertIn('error', r, r)
AssertionError: 'error' not found in {'jsonrpc': '2.0', 'id': 1, 'result': {'content': [{'type': 'text', 'text': '{"ok": false, "error": "unknown tool unknown"}'}]}} : {'jsonrpc': '2.0', 'id': 1, 'result': {'content': [{'type': 'text', 'text': '{"ok": false, "error": "unknown tool unknown"}'}]}}
======================================================================
FAIL: test_wait_timeout_honored (__main__.RequiredBehavior)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests\test_validation.py", line 169, in test_wait_timeout_honored
self.assertLessEqual(clock[0], 1.1, 'one-second deadline took %.1f seconds' % clock[0])
AssertionError: 31.2 not less than or equal to 1.1 : one-second deadline took 31.2 seconds
----------------------------------------------------------------------
Ran 22 tests in 0.886s
FAILED (failures=9, errors=2)