restore_working_copy__sDthpiu

Status: Failed
Started: 3/19 16:10
Execution: 4m 46.6s
Test: 12.6s
2026-03-19 08:17:59.177	DEBUG	native:1	Pochi	pochi v0.6.1
2026-03-19 08:17:59.181	DEBUG	native:7	PochiConfigManager	add workspace config: /root/.pochi/config.jsonc
2026-03-19 08:17:59.356	DEBUG	/$bunfs/pochi:503183	loadAgents	Loaded 5 custom agents (5 valid, 0 invalid)
2026-03-19 08:17:59.357	DEBUG	/$bunfs/pochi:503184	loadSkills	Loaded 2 skills (2 valid, 0 invalid)
2026-03-19 08:17:59.381	DEBUG	/$bunfs/pochi:439420	PochiVendor	JWT is expiring or missing, fetching a new one
2026-03-19 08:18:00.951	DEBUG	/$bunfs/pochi:415701	MCPHub	MCP servers configuration changed via signal:
2026-03-19 08:18:00.952	DEBUG	/$bunfs/pochi:415813	MCPHub	Build MCPHub Status
2026-03-19 08:18:01.052	DEBUG	/$bunfs/pochi:502609	TaskRunner	Starting TaskRunner...
2026-03-19 08:18:01.154	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:18:01.266	DEBUG	/$bunfs/pochi:496641	generateTaskTitle	Generating task title, old: null, new: You are a support engineer working in a `jj` (Jujutsu) repository located at `/home/user/project`.
2026-03-19 08:18:49.844	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:18:59.966	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:19:11.736	DEBUG		generateTaskTitle	Generating task title, old: You are a support engineer working in a `jj` (Jujutsu) repository located at `/home/user/project`., new: Restore parser.py to parent revision in jj repository
2026-03-19 08:19:12.679	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:19:35.272	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:20:02.866	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:20:10.444	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:20:14.255	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:20:19.558	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:20:24.497	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:22:43.183	DEBUG		TaskRunner	Failed:

 TypeError  undefined is not an object (evaluating 'getErrorTrace(error40).map'), 417706, 47, 417706, 47, /$bunfs/root/pochi
error stack:
  • pochi	prettyFormatErrorObj
	/$bunfs/pochi:417706
  • pochi	<anonymous>
	/$bunfs/pochi:417701
  • native	reduce
	native:1
  • pochi	log
	/$bunfs/pochi:417840
  • pochi	onError
	/$bunfs/pochi:500813
  • pochi	makeRequest
	/$bunfs/pochi:432009
  • 	
	
  • 	
	
  • 	
	
  • 	
	
  • native	processTicksAndRejections
	native:7
undefined is not an object (evaluating 'getErrorTrace(error40).map')
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.81.0-1ubuntu1.23).
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
downloading uv 0.9.5 x86_64-unknown-linux-gnu
no checksums to verify
installing to /root/.local/bin
  uv
  uvx
everything's installed!

To add $HOME/.local/bin to your PATH, either restart your shell or run:

    source $HOME/.local/bin/env (sh, bash, zsh)
    source $HOME/.local/bin/env.fish (fish)
Downloading cpython-3.12.12-linux-x86_64-gnu (download) (31.1MiB)
 Downloading cpython-3.12.12-linux-x86_64-gnu (download)
Downloading pygments (1.2MiB)
 Downloading pygments
Installed 5 packages in 25ms
============================= test session starts ==============================
platform linux -- Python 3.12.12, pytest-8.4.1, pluggy-1.6.0 -- /root/.cache/uv/archive-v0/JiX7bOsfMFMqDO2nwrSxU/bin/python
cachedir: .pytest_cache
rootdir: /tests
collecting ... collected 6 items

../../tests/test_final_state.py::test_parser_py_restored_to_strip FAILED [ 16%]
../../tests/test_final_state.py::test_config_toml_unchanged PASSED       [ 33%]
../../tests/test_final_state.py::test_status_log_exists FAILED           [ 50%]
../../tests/test_final_state.py::test_working_copy_description_unchanged PASSED [ 66%]
../../tests/test_final_state.py::test_all_three_commits_still_present PASSED [ 83%]
../../tests/test_final_state.py::test_working_copy_not_abandoned PASSED  [100%]

=================================== FAILURES ===================================
_______________________ test_parser_py_restored_to_strip _______________________

    def test_parser_py_restored_to_strip():
        parser_path = os.path.join(REPO_DIR, "parser.py")
        assert os.path.isfile(parser_path), f"parser.py not found at {parser_path}."
        content = open(parser_path).read()
>       assert "return text.strip()" in content, (
            f"parser.py should contain 'return text.strip()' after restore, got:\n{content}"
        )
E       AssertionError: parser.py should contain 'return text.strip()' after restore, got:
E         # parser module
E         def parse(text):
E             return text.upper()
E         
E       assert 'return text.strip()' in '# parser module\ndef parse(text):\n    return text.upper()\n'

/tests/test_final_state.py:16: AssertionError
____________________________ test_status_log_exists ____________________________

    def test_status_log_exists():
        log_path = os.path.join(REPO_DIR, "status.log")
>       assert os.path.isfile(log_path), f"status.log not found at {log_path}."
E       AssertionError: status.log not found at /home/user/project/status.log.
E       assert False
E        +  where False = <function isfile at 0x783c88510b80>('/home/user/project/status.log')
E        +    where <function isfile at 0x783c88510b80> = <module 'posixpath' (frozen)>.isfile
E        +      where <module 'posixpath' (frozen)> = os.path

/tests/test_final_state.py:34: AssertionError
=========================== short test summary info ============================
FAILED ../../tests/test_final_state.py::test_parser_py_restored_to_strip - As...
FAILED ../../tests/test_final_state.py::test_status_log_exists - AssertionErr...
========================= 2 failed, 4 passed in 0.10s ==========================