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 14ms
============================= 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 13 items
../../../tests/test_outputs.py FFFF.FFFFFF.. [100%]
=================================== FAILURES ===================================
_____________________________ test_log_file_exists _____________________________
def test_log_file_exists():
> assert os.path.isfile(LOG_FILE), f"Log file {LOG_FILE} does not exist"
E AssertionError: Log file /home/user/criss_cross_log.txt does not exist
E assert False
E + where False = <function isfile at 0x79fd02238220>('/home/user/criss_cross_log.txt')
E + where <function isfile at 0x79fd02238220> = <module 'posixpath' (frozen)>.isfile
E + where <module 'posixpath' (frozen)> = os.path
/tests/test_outputs.py:24: AssertionError
_____________________________ test_log_file_format _____________________________
def test_log_file_format():
> assert os.path.isfile(LOG_FILE), "Log file missing"
E AssertionError: Log file missing
E assert False
E + where False = <function isfile at 0x79fd02238220>('/home/user/criss_cross_log.txt')
E + where <function isfile at 0x79fd02238220> = <module 'posixpath' (frozen)>.isfile
E + where <module 'posixpath' (frozen)> = os.path
/tests/test_outputs.py:28: AssertionError
______________________ test_log_file_change_ids_nonempty _______________________
def test_log_file_change_ids_nonempty():
> assert os.path.isfile(LOG_FILE), "Log file missing"
E AssertionError: Log file missing
E assert False
E + where False = <function isfile at 0x79fd02238220>('/home/user/criss_cross_log.txt')
E + where <function isfile at 0x79fd02238220> = <module 'posixpath' (frozen)>.isfile
E + where <module 'posixpath' (frozen)> = os.path
/tests/test_outputs.py:38: AssertionError
_______________________ test_integration_bookmark_exists _______________________
def test_integration_bookmark_exists():
result = run_jj(["bookmark", "list"])
> assert "integration" in result.stdout, "integration bookmark not found"
E AssertionError: integration bookmark not found
E assert 'integration' in 'branch-a: spxuwsoo ddc58ea7 (empty) merge: branch-b into branch-a (criss)\nbranch-b: ouwwqolk f4b8567a (empty) merge: branch-a into branch-b (cross)\nmain-v1: nlptrwor 2766713b (empty) chore: main-v1 base\n'
E + where 'branch-a: spxuwsoo ddc58ea7 (empty) merge: branch-b into branch-a (criss)\nbranch-b: ouwwqolk f4b8567a (empty) merge: branch-a into branch-b (cross)\nmain-v1: nlptrwor 2766713b (empty) chore: main-v1 base\n' = CompletedProcess(args=['jj', 'bookmark', 'list'], returncode=0, stdout='branch-a: spxuwsoo ddc58ea7 (empty) merge: bra...7a (empty) merge: branch-a into branch-b (cross)\nmain-v1: nlptrwor 2766713b (empty) chore: main-v1 base\n', stderr='').stdout
/tests/test_outputs.py:48: AssertionError
_________________________ test_core_py_has_initialize __________________________
def test_core_py_has_initialize():
r = subprocess.run(
["jj", "file", "show", "-r", "integration", "src/core.py"],
cwd=REPO_DIR, capture_output=True, text=True
)
> assert "def initialize(" in r.stdout, "initialize() function missing from src/core.py"
E AssertionError: initialize() function missing from src/core.py
E assert 'def initialize(' in ''
E + where '' = CompletedProcess(args=['jj', 'file', 'show', '-r', 'integration', 'src/core.py'], returncode=1, stdout='', stderr="Error: Revision `integration` doesn't exist\n").stdout
/tests/test_outputs.py:63: AssertionError
__________________________ test_core_py_has_shutdown ___________________________
def test_core_py_has_shutdown():
r = subprocess.run(
["jj", "file", "show", "-r", "integration", "src/core.py"],
cwd=REPO_DIR, capture_output=True, text=True
)
> assert "def shutdown(" in r.stdout, "shutdown() function missing from src/core.py"
E AssertionError: shutdown() function missing from src/core.py
E assert 'def shutdown(' in ''
E + where '' = CompletedProcess(args=['jj', 'file', 'show', '-r', 'integration', 'src/core.py'], returncode=1, stdout='', stderr="Error: Revision `integration` doesn't exist\n").stdout
/tests/test_outputs.py:71: AssertionError
_______________________ test_utils_py_has_format_output ________________________
def test_utils_py_has_format_output():
r = subprocess.run(
["jj", "file", "show", "-r", "integration", "src/utils.py"],
cwd=REPO_DIR, capture_output=True, text=True
)
> assert "def format_output(" in r.stdout, "format_output() function missing from src/utils.py"
E AssertionError: format_output() function missing from src/utils.py
E assert 'def format_output(' in ''
E + where '' = CompletedProcess(args=['jj', 'file', 'show', '-r', 'integration', 'src/utils.py'], returncode=1, stdout='', stderr="Error: Revision `integration` doesn't exist\n").stdout
/tests/test_outputs.py:79: AssertionError
________________________ test_utils_py_has_parse_input _________________________
def test_utils_py_has_parse_input():
r = subprocess.run(
["jj", "file", "show", "-r", "integration", "src/utils.py"],
cwd=REPO_DIR, capture_output=True, text=True
)
> assert "def parse_input(" in r.stdout, "parse_input() function missing from src/utils.py"
E AssertionError: parse_input() function missing from src/utils.py
E assert 'def parse_input(' in ''
E + where '' = CompletedProcess(args=['jj', 'file', 'show', '-r', 'integration', 'src/utils.py'], returncode=1, stdout='', stderr="Error: Revision `integration` doesn't exist\n").stdout
/tests/test_outputs.py:87: AssertionError
_____________________ test_feature_a_exists_in_integration _____________________
def test_feature_a_exists_in_integration():
r = subprocess.run(
["jj", "file", "show", "-r", "integration", "src/feature_a.py"],
cwd=REPO_DIR, capture_output=True, text=True
)
> assert r.returncode == 0 and len(r.stdout.strip()) > 0, \
"src/feature_a.py missing from integration commit"
E AssertionError: src/feature_a.py missing from integration commit
E assert (1 == 0)
E + where 1 = CompletedProcess(args=['jj', 'file', 'show', '-r', 'integration', 'src/feature_a.py'], returncode=1, stdout='', stderr="Error: Revision `integration` doesn't exist\n").returncode
/tests/test_outputs.py:95: AssertionError
_____________________ test_feature_b_exists_in_integration _____________________
def test_feature_b_exists_in_integration():
r = subprocess.run(
["jj", "file", "show", "-r", "integration", "src/feature_b.py"],
cwd=REPO_DIR, capture_output=True, text=True
)
> assert r.returncode == 0 and len(r.stdout.strip()) > 0, \
"src/feature_b.py missing from integration commit"
E AssertionError: src/feature_b.py missing from integration commit
E assert (1 == 0)
E + where 1 = CompletedProcess(args=['jj', 'file', 'show', '-r', 'integration', 'src/feature_b.py'], returncode=1, stdout='', stderr="Error: Revision `integration` doesn't exist\n").returncode
/tests/test_outputs.py:104: AssertionError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../../../tests/test_outputs.py::test_integration_has_no_conflicts
PASSED ../../../tests/test_outputs.py::test_no_conflict_markers_in_core_py
PASSED ../../../tests/test_outputs.py::test_no_conflict_markers_in_utils_py
FAILED ../../../tests/test_outputs.py::test_log_file_exists - AssertionError:...
FAILED ../../../tests/test_outputs.py::test_log_file_format - AssertionError:...
FAILED ../../../tests/test_outputs.py::test_log_file_change_ids_nonempty - As...
FAILED ../../../tests/test_outputs.py::test_integration_bookmark_exists - Ass...
FAILED ../../../tests/test_outputs.py::test_core_py_has_initialize - Assertio...
FAILED ../../../tests/test_outputs.py::test_core_py_has_shutdown - AssertionE...
FAILED ../../../tests/test_outputs.py::test_utils_py_has_format_output - Asse...
FAILED ../../../tests/test_outputs.py::test_utils_py_has_parse_input - Assert...
FAILED ../../../tests/test_outputs.py::test_feature_a_exists_in_integration
FAILED ../../../tests/test_outputs.py::test_feature_b_exists_in_integration
========================= 10 failed, 3 passed in 0.24s =========================