Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security 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 15ms
============================= 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 7 items
../tests/test_outputs.py FF...FF [100%]
=================================== FAILURES ===================================
__________________________ test_status_report_exists ___________________________
def test_status_report_exists():
> assert os.path.isfile(REPORT), \
"status_report.txt must exist at /home/user/status_report.txt"
E AssertionError: status_report.txt must exist at /home/user/status_report.txt
E assert False
E + where False = <function isfile at 0x75c6b14dc220>('/home/user/status_report.txt')
E + where <function isfile at 0x75c6b14dc220> = <module 'posixpath' (frozen)>.isfile
E + where <module 'posixpath' (frozen)> = os.path
/tests/test_outputs.py:20: AssertionError
________________________ test_upstream_commits_fetched _________________________
def test_upstream_commits_fetched():
"""After fetch, local should have upstream-3 and upstream-4."""
result = run_jj(["log", "--no-graph", "-r", "all()",
"-T", 'description ++ "\n"'])
assert result.returncode == 0
> assert "upstream-3" in result.stdout or "security config" in result.stdout, \
"upstream-3 should be fetched"
E AssertionError: upstream-3 should be fetched
E assert ('upstream-3' in 'local-3: add order service\n\nlocal-2: add product service\n\nlocal-1: add user service\n\n\nupstream-2: add features list\n\nupstream-1: initial project\n\n\n' or 'security config' in 'local-3: add order service\n\nlocal-2: add product service\n\nlocal-1: add user service\n\n\nupstream-2: add features list\n\nupstream-1: initial project\n\n\n')
E + where 'local-3: add order service\n\nlocal-2: add product service\n\nlocal-1: add user service\n\n\nupstream-2: add features list\n\nupstream-1: initial project\n\n\n' = CompletedProcess(args=['jj', 'log', '--no-graph', '-r', 'all()', '-T', 'description ++ "\n"'], returncode=0, stdout='l...rvice\n\nlocal-1: add user service\n\n\nupstream-2: add features list\n\nupstream-1: initial project\n\n\n', stderr='').stdout
E + and 'local-3: add order service\n\nlocal-2: add product service\n\nlocal-1: add user service\n\n\nupstream-2: add features list\n\nupstream-1: initial project\n\n\n' = CompletedProcess(args=['jj', 'log', '--no-graph', '-r', 'all()', '-T', 'description ++ "\n"'], returncode=0, stdout='l...rvice\n\nlocal-1: add user service\n\n\nupstream-2: add features list\n\nupstream-1: initial project\n\n\n', stderr='').stdout
/tests/test_outputs.py:29: AssertionError
________________________ test_main_on_new_upstream_head ________________________
def test_main_on_new_upstream_head():
"""main bookmark should point to upstream-4 (the new upstream HEAD)."""
result = run_jj(["file", "show", "features.txt", "-r", "main"])
assert result.returncode == 0
> assert "security=strict" in result.stdout, \
"main should now include the security config from upstream-3"
E AssertionError: main should now include the security config from upstream-3
E assert 'security=strict' in 'feature=auth\n'
E + where 'feature=auth\n' = CompletedProcess(args=['jj', 'file', 'show', 'features.txt', '-r', 'main'], returncode=0, stdout='feature=auth\n', stderr='').stdout
/tests/test_outputs.py:68: AssertionError
__________________________ test_status_report_content __________________________
def test_status_report_content():
"""The status report should document the rebase operation."""
> with open(REPORT) as f:
^^^^^^^^^^^^
E FileNotFoundError: [Errno 2] No such file or directory: '/home/user/status_report.txt'
/tests/test_outputs.py:74: FileNotFoundError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../tests/test_outputs.py::test_local_commits_rebased_onto_new_upstream
PASSED ../tests/test_outputs.py::test_all_local_commits_present
PASSED ../tests/test_outputs.py::test_no_conflicts
FAILED ../tests/test_outputs.py::test_status_report_exists - AssertionError: ...
FAILED ../tests/test_outputs.py::test_upstream_commits_fetched - AssertionErr...
FAILED ../tests/test_outputs.py::test_main_on_new_upstream_head - AssertionEr...
FAILED ../tests/test_outputs.py::test_status_report_content - FileNotFoundErr...
========================= 4 failed, 3 passed in 0.16s ==========================