commit_metadata_enforcement__xJGjhRw

Status: Failed
Started: 3/19 15:29
Execution: 2m 3.3s
Test: 9.8s
2026-03-19 07:31:13.645	DEBUG	native:1	Pochi	pochi v0.6.1
2026-03-19 07:31:13.649	DEBUG	native:7	PochiConfigManager	add workspace config: /root/.pochi/config.jsonc
2026-03-19 07:31:13.963	DEBUG	/$bunfs/pochi:503183	loadAgents	Loaded 5 custom agents (5 valid, 0 invalid)
2026-03-19 07:31:13.963	DEBUG	/$bunfs/pochi:503184	loadSkills	Loaded 2 skills (2 valid, 0 invalid)
2026-03-19 07:31:13.980	DEBUG	/$bunfs/pochi:439420	PochiVendor	JWT is expiring or missing, fetching a new one
2026-03-19 07:31:15.442	DEBUG	/$bunfs/pochi:415701	MCPHub	MCP servers configuration changed via signal:
2026-03-19 07:31:15.442	DEBUG	/$bunfs/pochi:415813	MCPHub	Build MCPHub Status
2026-03-19 07:31:15.561	DEBUG	/$bunfs/pochi:502609	TaskRunner	Starting TaskRunner...
2026-03-19 07:31:15.573	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:31:15.636	DEBUG	/$bunfs/pochi:496641	generateTaskTitle	Generating task title, old: null, new: You are a repo maintainer enforcing a commit metadata policy. You have a repository at `/home/user/repo` which is already initialized with `jj`. Your task is to:
2026-03-19 07:31:34.159	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:31:39.916	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:31:44.360	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:31:50.204	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:31:51.217	DEBUG	/$bunfs/pochi:496641	generateTaskTitle	Generating task title, old: You are a repo maintainer enforcing a commit metadata policy. You have a repository at `/home/user/repo` which is already initialized with `jj`. Your task is to:, new: Configure custom jj log template and save commit metadata
2026-03-19 07:31:55.706	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:32:07.520	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:32:12.534	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:32:21.324	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:32:32.939	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:33:14.098	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
  • pochi	async <anonymous>
	/$bunfs/pochi:431766
  • pochi	async step
	/$bunfs/pochi:502738
  • pochi	async run
	/$bunfs/pochi:502615
  • 	
	
  • native	processTicksAndRejections
	native:7
undefined is not an object (evaluating 'getErrorTrace(error40).map')
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (8.5.0-2ubuntu10.8).
0 upgraded, 0 newly installed, 0 to remove and 13 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 pygments (1.2MiB)
 Downloading pygments
Installed 5 packages in 14ms
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.1, pluggy-1.6.0 -- /root/.cache/uv/archive-v0/AGku8LAe9-0DePYfygZPc/bin/python
cachedir: .pytest_cache
rootdir: /tests
collecting ... collected 1 item

../../tests/test_final_state.py::test_final_state FAILED                 [100%]

=================================== FAILURES ===================================
_______________________________ test_final_state _______________________________

    def test_final_state():
        home_dir = os.environ.get("BOOTSTRAP_HOME", "/home/user")
        repo_dir = os.path.join(home_dir, "repo")
        log_output_file = os.path.join(home_dir, "log_output.txt")
    
        # 1. Check config
        res = run_cmd("jj config get templates.log", cwd=repo_dir)
        assert res.returncode == 0, "Error: templates.log is not configured."
    
        template_val = res.stdout.strip()
        assert 'commit_id.short()' in template_val, "templates.log does not contain commit_id.short()"
        assert 'author.email()' in template_val, "templates.log does not contain author.email()"
        assert 'description.first_line()' in template_val, "templates.log does not contain description.first_line()"
    
        # 2. Check commit description
        res = run_cmd("jj log -r @ -T 'description'", cwd=repo_dir)
>       assert "Update metadata policy" in res.stdout, "Current commit does not have the description 'Update metadata policy'."
E       AssertionError: Current commit does not have the description 'Update metadata policy'.
E       assert 'Update metadata policy' in '@  Initial commit\n│\n~\n'
E        +  where '@  Initial commit\n│\n~\n' = CompletedProcess(args="jj log -r @ -T 'description'", returncode=0, stdout='@  Initial commit\n│\n~\n', stderr='').stdout

/tests/test_final_state.py:25: AssertionError
=========================== short test summary info ============================
FAILED ../../tests/test_final_state.py::test_final_state - AssertionError: Cu...
============================== 1 failed in 0.05s ===============================