undo_mistaken_rebase__qqXA5vw

Status: Failed
Started: 3/19 15:20
Execution: 16.7s
Test: 9.0s
2026-03-19 07:23:27.345	DEBUG	native:1	Pochi	pochi v0.6.0
2026-03-19 07:23:27.349	DEBUG	native:7	PochiConfigManager	add workspace config: /root/.pochi/config.jsonc
2026-03-19 07:23:27.402	DEBUG	/$bunfs/pochi:503027	loadAgents	Loaded 4 custom agents (4 valid, 0 invalid)
2026-03-19 07:23:27.403	DEBUG	/$bunfs/pochi:503028	loadSkills	Loaded 2 skills (2 valid, 0 invalid)
2026-03-19 07:23:27.418	DEBUG	/$bunfs/pochi:439288	PochiVendor	JWT is expiring or missing, fetching a new one
2026-03-19 07:23:28.697	DEBUG	/$bunfs/pochi:415701	MCPHub	MCP servers configuration changed via signal:
2026-03-19 07:23:28.698	DEBUG	/$bunfs/pochi:415813	MCPHub	Build MCPHub Status
2026-03-19 07:23:28.792	DEBUG	/$bunfs/pochi:502453	TaskRunner	Starting TaskRunner...
2026-03-19 07:23:28.806	DEBUG	/$bunfs/pochi:454195	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:23:28.901	DEBUG	/$bunfs/pochi:496495	generateTaskTitle	Generating task title, old: null, new: You are a developer migrating from Git. You accidentally rebased the `feature` bookmark onto the wrong commit (`dev` instead of `main`).
2026-03-19 07:23:39.059	DEBUG	/$bunfs/pochi:454195	listFiles	Listing workspace files from /root with maxItems 500
2026-03-19 07:23:40.815	WARN		GitStatus	readGitStatus timed out after 12000ms, returning undefined
2026-03-19 07:23:41.634	DEBUG	/$bunfs/pochi:503113	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:500661
  • pochi	makeRequest
	/$bunfs/pochi:432009
  • pochi	async <anonymous>
	/$bunfs/pochi:431766
  • pochi	async step
	/$bunfs/pochi:502582
  • pochi	async run
	/$bunfs/pochi:502459
  • pochi	async <anonymous>
	/$bunfs/pochi:503113
  • 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.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 6 packages in 28ms
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.1, pluggy-1.6.0
rootdir: /tests
plugins: json-ctrf-0.3.5
collected 3 items

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

=================================== FAILURES ===================================
_____________________ test_feature_is_direct_child_of_main _____________________

    def test_feature_is_direct_child_of_main():
        result = run_jj(["log", "-r", "main..feature", "--no-graph", "-T", "bookmarks"])
        assert result.returncode == 0, f"jj log failed: {result.stderr}"
        # If feature is a direct child of main, `main..feature` should contain exactly one commit (the feature commit)
        # Wait, the task says "direct child", but it was originally off main's parent.
        # Actually, the truth just says "The `feature` bookmark is a direct child of the `main` bookmark."
        # We can check if `main` is the parent of `feature`.
        result_parents = run_jj(["log", "-r", "feature-", "--no-graph", "-T", "bookmarks"])
        assert result_parents.returncode == 0, f"jj log failed: {result_parents.stderr}"
>       assert "main" in result_parents.stdout, f"Expected 'main' to be the parent of 'feature', but got: {result_parents.stdout}"
E       AssertionError: Expected 'main' to be the parent of 'feature', but got: 
E       assert 'main' in ''
E        +  where '' = CompletedProcess(args=['jj', 'log', '-r', 'feature-', '--no-graph', '-T', 'bookmarks'], returncode=0, stdout='', stderr='').stdout

/tests/test_final_state.py:20: AssertionError
_______________________ test_feature_is_not_child_of_dev _______________________

    def test_feature_is_not_child_of_dev():
        result = run_jj(["log", "-r", "dev..feature", "--no-graph", "-T", "bookmarks"])
        assert result.returncode == 0, f"jj log failed: {result.stderr}"
        # If feature is not a descendant of dev, dev..feature might be empty or just feature,
        # but the simplest way to check is to ensure dev is NOT an ancestor of feature.
        result_ancestors = run_jj(["log", "-r", "::feature", "--no-graph", "-T", "bookmarks"])
        assert result_ancestors.returncode == 0, f"jj log failed: {result_ancestors.stderr}"
>       assert "dev" not in result_ancestors.stdout, "Expected 'feature' to NOT be a child/descendant of 'dev', but 'dev' was found in its ancestors."
E       AssertionError: Expected 'feature' to NOT be a child/descendant of 'dev', but 'dev' was found in its ancestors.
E       assert 'dev' not in 'featuredevmain'
E         
E         'dev' is contained here:
E           featuredevmain
E         ?        +++

/tests/test_final_state.py:29: AssertionError
_______________ test_rebase_verification_log_exists_and_correct ________________

    def test_rebase_verification_log_exists_and_correct():
>       assert os.path.exists(LOG_FILE), f"Verification log {LOG_FILE} does not exist."
E       AssertionError: Verification log /home/user/rebase_verification.log does not exist.
E       assert False
E        +  where False = <function exists at 0x73965c773560>('/home/user/rebase_verification.log')
E        +    where <function exists at 0x73965c773560> = <module 'posixpath' (frozen)>.exists
E        +      where <module 'posixpath' (frozen)> = os.path

/tests/test_final_state.py:32: AssertionError
=========================== short test summary info ============================
FAILED ../tests/test_final_state.py::test_feature_is_direct_child_of_main - A...
FAILED ../tests/test_final_state.py::test_feature_is_not_child_of_dev - Asser...
FAILED ../tests/test_final_state.py::test_rebase_verification_log_exists_and_correct
============================== 3 failed in 0.09s ===============================