Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy 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 16ms
============================= test session starts ==============================
platform linux -- Python 3.12.12, pytest-8.4.1, pluggy-1.6.0 -- /root/.cache/uv/archive-v0/fLP-Q_bl04LjSlptv9oBS/bin/python
cachedir: .pytest_cache
rootdir: /tests
collecting ... collected 5 items
../../tests/test_final_state.py::test_working_copy_description PASSED [ 20%]
../../tests/test_final_state.py::test_parent_is_project_setup FAILED [ 40%]
../../tests/test_final_state.py::test_two_commits_above_root FAILED [ 60%]
../../tests/test_final_state.py::test_both_files_exist FAILED [ 80%]
../../tests/test_final_state.py::test_rebase_log_exists FAILED [100%]
=================================== FAILURES ===================================
_________________________ test_parent_is_project_setup _________________________
def test_parent_is_project_setup():
result = run_jj(["log", "--no-graph", "-r", "@-", "-T", "description"])
assert result.returncode == 0, f"jj log failed: {result.stderr}"
> assert "chore: project setup" in result.stdout, (
f"Parent of @ should be 'chore: project setup', got: {result.stdout.strip()}"
)
E AssertionError: Parent of @ should be 'chore: project setup', got:
E assert 'chore: project setup' in ''
E + where '' = CompletedProcess(args=['jj', 'log', '--no-graph', '-r', '@-', '-T', 'description'], returncode=0, stdout='', stderr='').stdout
/tests/test_final_state.py:23: AssertionError
_________________________ test_two_commits_above_root __________________________
def test_two_commits_above_root():
result = run_jj(["log", "--no-graph", "-r", "root()..@", "-T", 'description ++ "\\n"'])
assert result.returncode == 0, f"jj log failed: {result.stderr}"
descs = [l.strip() for l in result.stdout.splitlines() if l.strip()]
> assert len(descs) == 2, (
f"Expected 2 commits above root after rebase, found {len(descs)}: {descs}"
)
E AssertionError: Expected 2 commits above root after rebase, found 1: ['feat: add helper']
E assert 1 == 2
E + where 1 = len(['feat: add helper'])
/tests/test_final_state.py:32: AssertionError
____________________________ test_both_files_exist _____________________________
def test_both_files_exist():
> assert os.path.isfile(os.path.join(REPO_DIR, "main.py")), "main.py not found after rebase."
E AssertionError: main.py not found after rebase.
E assert False
E + where False = <function isfile at 0x7bbc89a3cb80>('/home/user/project/main.py')
E + where <function isfile at 0x7bbc89a3cb80> = <module 'posixpath' (frozen)>.isfile
E + where <module 'posixpath' (frozen)> = os.path
E + and '/home/user/project/main.py' = <function join at 0x7bbc89a3d580>('/home/user/project', 'main.py')
E + where <function join at 0x7bbc89a3d580> = <module 'posixpath' (frozen)>.join
E + where <module 'posixpath' (frozen)> = os.path
/tests/test_final_state.py:38: AssertionError
____________________________ test_rebase_log_exists ____________________________
def test_rebase_log_exists():
log_path = os.path.join(REPO_DIR, "rebase.log")
> assert os.path.isfile(log_path), f"rebase.log not found at {log_path}."
E AssertionError: rebase.log not found at /home/user/project/rebase.log.
E assert False
E + where False = <function isfile at 0x7bbc89a3cb80>('/home/user/project/rebase.log')
E + where <function isfile at 0x7bbc89a3cb80> = <module 'posixpath' (frozen)>.isfile
E + where <module 'posixpath' (frozen)> = os.path
/tests/test_final_state.py:44: AssertionError
=========================== short test summary info ============================
FAILED ../../tests/test_final_state.py::test_parent_is_project_setup - Assert...
FAILED ../../tests/test_final_state.py::test_two_commits_above_root - Asserti...
FAILED ../../tests/test_final_state.py::test_both_files_exist - AssertionErro...
FAILED ../../tests/test_final_state.py::test_rebase_log_exists - AssertionErr...
========================= 4 failed, 1 passed in 0.08s ==========================