secure_config_isolation__oXkNZ8K

Status: Failed
Started: 3/19 16:10
Execution: 4m 15.9s
Test: 10.0s
2026-03-19 08:18:40.533	DEBUG	native:1	Pochi	pochi v0.6.1
2026-03-19 08:18:40.538	DEBUG	native:7	PochiConfigManager	add workspace config: /root/.pochi/config.jsonc
2026-03-19 08:18:40.625	DEBUG	/$bunfs/pochi:503183	loadAgents	Loaded 5 custom agents (5 valid, 0 invalid)
2026-03-19 08:18:40.626	DEBUG	/$bunfs/pochi:503184	loadSkills	Loaded 2 skills (2 valid, 0 invalid)
2026-03-19 08:18:40.644	DEBUG	/$bunfs/pochi:439420	PochiVendor	JWT is expiring or missing, fetching a new one
2026-03-19 08:18:42.031	DEBUG	/$bunfs/pochi:415701	MCPHub	MCP servers configuration changed via signal:
2026-03-19 08:18:42.032	DEBUG	/$bunfs/pochi:415813	MCPHub	Build MCPHub Status
2026-03-19 08:18:42.133	DEBUG	/$bunfs/pochi:502609	TaskRunner	Starting TaskRunner...
2026-03-19 08:18:42.145	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:18:42.240	DEBUG	/$bunfs/pochi:496641	generateTaskTitle	Generating task title, old: null, new: You are a repo maintainer enforcing secure configuration for your team's jj repository.
2026-03-19 08:19:05.501	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:19:13.335	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:19:19.879	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:19:23.262	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:19:27.073	DEBUG		generateTaskTitle	Generating task title, old: You are a repo maintainer enforcing secure configuration for your team's jj repository., new: Initialize secure jj repository with signing configuration
2026-03-19 08:19:35.574	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:19:53.643	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:20:08.899	DEBUG	/$bunfs/pochi:454315	listFiles	handling listFile with dirPath /home/user/secure_repo and recursive undefined
2026-03-19 08:20:08.901	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:20:13.068	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:20:23.857	DEBUG	/$bunfs/pochi:454339	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 08:22:53.448	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 noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security 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 8 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 15ms
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.1, pluggy-1.6.0 -- /root/.cache/uv/archive-v0/if8c-bbzWP7oq4YlpxyUr/bin/python
cachedir: .pytest_cache
rootdir: /tests
collecting ... collected 4 items

../../tests/test_final_state.py::test_repo_exists FAILED                 [ 25%]
../../tests/test_final_state.py::test_config_toml_contents FAILED        [ 50%]
../../tests/test_final_state.py::test_audit_log_exists FAILED            [ 75%]
../../tests/test_final_state.py::test_audit_log_in_commit FAILED         [100%]

=================================== FAILURES ===================================
_______________________________ test_repo_exists _______________________________

    def test_repo_exists():
        assert os.path.exists(REPO_DIR), f"Repository directory {REPO_DIR} does not exist."
>       assert os.path.isdir(os.path.join(REPO_DIR, ".jj")), f"{REPO_DIR} is not a valid jj repository."
E       AssertionError: /home/user/secure_repo is not a valid jj repository.
E       assert False
E        +  where False = <function isdir at 0x78ee52a102c0>('/home/user/secure_repo/.jj')
E        +    where <function isdir at 0x78ee52a102c0> = <module 'posixpath' (frozen)>.isdir
E        +      where <module 'posixpath' (frozen)> = os.path
E        +    and   '/home/user/secure_repo/.jj' = <function join at 0x78ee52a10c20>('/home/user/secure_repo', '.jj')
E        +      where <function join at 0x78ee52a10c20> = <module 'posixpath' (frozen)>.join
E        +        where <module 'posixpath' (frozen)> = os.path

/tests/test_final_state.py:9: AssertionError
__________________________ test_config_toml_contents ___________________________

    def test_config_toml_contents():
        config_path = os.path.join(REPO_DIR, ".jj/repo/config.toml")
>       assert os.path.exists(config_path), f"Config file {config_path} does not exist."
E       AssertionError: Config file /home/user/secure_repo/.jj/repo/config.toml does not exist.
E       assert False
E        +  where False = <function exists at 0x78ee52c53560>('/home/user/secure_repo/.jj/repo/config.toml')
E        +    where <function exists at 0x78ee52c53560> = <module 'posixpath' (frozen)>.exists
E        +      where <module 'posixpath' (frozen)> = os.path

/tests/test_final_state.py:13: AssertionError
____________________________ test_audit_log_exists _____________________________

    def test_audit_log_exists():
        audit_file = os.path.join(REPO_DIR, "audit.log")
>       assert os.path.exists(audit_file), f"audit.log does not exist in the working copy."
E       AssertionError: audit.log does not exist in the working copy.
E       assert False
E        +  where False = <function exists at 0x78ee52c53560>('/home/user/secure_repo/audit.log')
E        +    where <function exists at 0x78ee52c53560> = <module 'posixpath' (frozen)>.exists
E        +      where <module 'posixpath' (frozen)> = os.path

/tests/test_final_state.py:25: AssertionError
___________________________ test_audit_log_in_commit ___________________________

    def test_audit_log_in_commit():
        result = subprocess.run(["jj", "log", "-T", "description"], cwd=REPO_DIR, capture_output=True, text=True)
>       assert result.returncode == 0, f"jj log failed: {result.stderr}"
E       AssertionError: jj log failed: Error: There is no jj repo in "."
E         
E       assert 1 == 0
E        +  where 1 = CompletedProcess(args=['jj', 'log', '-T', 'description'], returncode=1, stdout='', stderr='Error: There is no jj repo in "."\n').returncode

/tests/test_final_state.py:29: AssertionError
=========================== short test summary info ============================
FAILED ../../tests/test_final_state.py::test_repo_exists - AssertionError: /h...
FAILED ../../tests/test_final_state.py::test_config_toml_contents - Assertion...
FAILED ../../tests/test_final_state.py::test_audit_log_exists - AssertionErro...
FAILED ../../tests/test_final_state.py::test_audit_log_in_commit - AssertionE...
============================== 4 failed in 0.04s ===============================