rebase_branch_and_track_bookmark__e7y6Ap9

Status: Failed
Started: 3/19 16:10
Execution: 1m 32.8s
Test: 9.7s
2026-03-19 08:15:57.994	DEBUG	native:1	Pochi	pochi v0.6.1
2026-03-19 08:15:58.094	DEBUG	/$bunfs/root/pochi:503183	loadAgents	Loaded 5 custom agents (5 valid, 0 invalid)
2026-03-19 08:15:58.097	DEBUG	/$bunfs/root/pochi:503184	loadSkills	Loaded 2 skills (2 valid, 0 invalid)
2026-03-19 08:15:58.184	DEBUG	/$bunfs/root/pochi:439420	PochiVendor	JWT is expiring or missing, fetching a new one
2026-03-19 08:15:59.429	DEBUG	/$bunfs/root/pochi:415701	MCPHub	MCP servers configuration changed via signal:
2026-03-19 08:15:59.429	DEBUG	/$bunfs/root/pochi:415813	MCPHub	Build MCPHub Status
2026-03-19 08:15:59.529	DEBUG	/$bunfs/root/pochi:502609	TaskRunner	Starting TaskRunner...
2026-03-19 08:15:59.581	DEBUG	/$bunfs/root/pochi:454339	listFiles	Listing workspace files from /home/user with maxItems 500
2026-03-19 08:15:59.616	DEBUG	/$bunfs/root/pochi:496641	generateTaskTitle	Generating task title, old: null, new: # Rebase a Feature Branch and Track the Rebased Bookmark
2026-03-19 08:16:26.773	DEBUG	/$bunfs/root/pochi:454339	listFiles	Listing workspace files from /home/user with maxItems 500
2026-03-19 08:16:31.106	DEBUG	/$bunfs/root/pochi:454339	listFiles	Listing workspace files from /home/user with maxItems 500
2026-03-19 08:16:44.191	DEBUG	/$bunfs/root/pochi:454339	listFiles	Listing workspace files from /home/user with maxItems 500
2026-03-19 08:16:57.666	DEBUG		generateTaskTitle	Generating task title, old: # Rebase a Feature Branch and Track the Rebased Bookmark, new: Rebase feature add metrics onto main branch
2026-03-19 08:17:27.701	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/root/pochi:417706
  • pochi	<anonymous>
	/$bunfs/root/pochi:417701
  • native	reduce
	native:1
  • pochi	log
	/$bunfs/root/pochi:417840
  • pochi	onError
	/$bunfs/root/pochi:500813
  • pochi	makeRequest
	/$bunfs/root/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://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security 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 8 not upgraded.
downloading uv 0.9.7 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 9 packages in 17ms
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.4.1, pluggy-1.6.0
rootdir: /tests
plugins: json-ctrf-0.3.5
collected 8 items

../../tests/test_final_state.py ..FFF...                                 [100%]

=================================== FAILURES ===================================
__________________ test_feature_bookmark_grandparent_is_main ___________________

    def test_feature_bookmark_grandparent_is_main():
        """The grandparent of feature/add-metrics tip must be the commit at main."""
        # Get the commit ID of main
        result_main = subprocess.run(
            ["jj", "log", "-r", "main", "--no-graph", "-T", 'commit_id ++ "\\n"'],
            capture_output=True,
            text=True,
            cwd=REPO_DIR,
        )
        assert result_main.returncode == 0, f"jj log main failed: {result_main.stderr}"
        main_commit_id = result_main.stdout.strip()
    
        # Get the commit ID of grandparent of feature/add-metrics
        result_gp = subprocess.run(
            ["jj", "log", "-r", "feature/add-metrics--", "--no-graph", "-T", 'commit_id ++ "\\n"'],
            capture_output=True,
            text=True,
            cwd=REPO_DIR,
        )
        assert result_gp.returncode == 0, f"jj log grandparent failed: {result_gp.stderr}"
        grandparent_commit_id = result_gp.stdout.strip()
    
>       assert main_commit_id == grandparent_commit_id, (
            f"Grandparent of feature/add-metrics ({grandparent_commit_id}) should equal main ({main_commit_id}). "
            "The feature branch may not have been rebased onto main."
        )
E       AssertionError: Grandparent of feature/add-metrics (963f9278f660143e839f5809bc7973e7c92cb47a) should equal main (20692b82e2bc84f0ae0bab3835fdbaed3bf1d542). The feature branch may not have been rebased onto main.
E       assert '20692b82e2bc...dbaed3bf1d542' == '963f9278f660...973e7c92cb47a'
E         
E         - 963f9278f660143e839f5809bc7973e7c92cb47a
E         + 20692b82e2bc84f0ae0bab3835fdbaed3bf1d542

/tests/test_final_state.py:58: AssertionError
_______________ test_grandparent_description_is_deploy_sh_commit _______________

    def test_grandparent_description_is_deploy_sh_commit():
        """The grandparent of feature/add-metrics tip must have description 'chore: add deploy.sh for CI pipeline'."""
        result = subprocess.run(
            ["jj", "log", "-r", "feature/add-metrics--", "--no-graph", "-T", 'description ++ "\\n"'],
            capture_output=True,
            text=True,
            cwd=REPO_DIR,
        )
        assert result.returncode == 0, f"jj log grandparent failed: {result.stderr}"
>       assert "chore: add deploy.sh for CI pipeline" in result.stdout, (
            f"Expected grandparent description 'chore: add deploy.sh for CI pipeline', got: {result.stdout}"
        )
E       AssertionError: Expected grandparent description 'chore: add deploy.sh for CI pipeline', got: chore: initial project scaffold
E         
E         
E       assert 'chore: add deploy.sh for CI pipeline' in 'chore: initial project scaffold\n\n'
E        +  where 'chore: initial project scaffold\n\n' = CompletedProcess(args=['jj', 'log', '-r', 'feature/add-metrics--', '--no-graph', '-T', 'description ++ "\\n"'], returncode=0, stdout='chore: initial project scaffold\n\n', stderr='').stdout

/tests/test_final_state.py:73: AssertionError
_______________________ test_deploy_sh_in_feature_branch _______________________

    def test_deploy_sh_in_feature_branch():
        """deploy.sh must be present in feature/add-metrics after rebase."""
        result = subprocess.run(
            ["jj", "file", "list", "-r", "feature/add-metrics"],
            capture_output=True,
            text=True,
            cwd=REPO_DIR,
        )
        assert result.returncode == 0, f"jj file list failed: {result.stderr}"
>       assert "deploy.sh" in result.stdout, (
            f"deploy.sh should be in feature/add-metrics after rebase onto main. Got files: {result.stdout}"
        )
E       AssertionError: deploy.sh should be in feature/add-metrics after rebase onto main. Got files: metrics/dashboard.py
E         metrics/module.py
E         scaffold.sh
E         
E       assert 'deploy.sh' in 'metrics/dashboard.py\nmetrics/module.py\nscaffold.sh\n'
E        +  where 'metrics/dashboard.py\nmetrics/module.py\nscaffold.sh\n' = CompletedProcess(args=['jj', 'file', 'list', '-r', 'feature/add-metrics'], returncode=0, stdout='metrics/dashboard.py\nmetrics/module.py\nscaffold.sh\n', stderr='').stdout

/tests/test_final_state.py:87: AssertionError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../../tests/test_final_state.py::test_feature_bookmark_tip_description
PASSED ../../tests/test_final_state.py::test_feature_bookmark_parent_description
PASSED ../../tests/test_final_state.py::test_metrics_module_in_feature_branch
PASSED ../../tests/test_final_state.py::test_metrics_dashboard_in_feature_branch
PASSED ../../tests/test_final_state.py::test_scaffold_sh_in_feature_branch
FAILED ../../tests/test_final_state.py::test_feature_bookmark_grandparent_is_main
FAILED ../../tests/test_final_state.py::test_grandparent_description_is_deploy_sh_commit
FAILED ../../tests/test_final_state.py::test_deploy_sh_in_feature_branch - As...
========================= 3 failed, 5 passed in 0.19s ==========================