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 25ms
============================= 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 5 items
../tests/test_final_state.py FFF.F [100%]
=================================== FAILURES ===================================
___________________________ test_cache_bin_restored ____________________________
def test_cache_bin_restored():
> assert os.path.exists(os.path.join(REPO_DIR, "data/cache.bin")), "data/cache.bin was not restored"
E AssertionError: data/cache.bin was not restored
E assert False
E + where False = <function exists at 0x7e540dcef560>('/home/user/repo/data/cache.bin')
E + where <function exists at 0x7e540dcef560> = <module 'posixpath' (frozen)>.exists
E + where <module 'posixpath' (frozen)> = os.path
E + and '/home/user/repo/data/cache.bin' = <function join at 0x7e540dab0c20>('/home/user/repo', 'data/cache.bin')
E + where <function join at 0x7e540dab0c20> = <module 'posixpath' (frozen)>.join
E + where <module 'posixpath' (frozen)> = os.path
/tests/test_final_state.py:12: AssertionError
__________________________ test_deploy_sh_unmodified ___________________________
def test_deploy_sh_unmodified():
# Should not be in diff (no local modifications from parent)
result = run_jj(["diff", "-r", "@", "--stat"])
assert result.returncode == 0
> assert "scripts/deploy.sh" not in result.stdout, "scripts/deploy.sh should not have modifications"
E AssertionError: scripts/deploy.sh should not have modifications
E assert 'scripts/deploy.sh' not in 'config/sett...letions(-)\n'
E
E 'scripts/deploy.sh' is contained here:
E | 1 -
E scripts/deploy.sh | 2 +-
E 3 files changed, 2 insertions(+), 3 deletions(-)
/tests/test_final_state.py:18: AssertionError
___________________________ test_commit_description ____________________________
def test_commit_description():
result = run_jj(["log", "--no-graph", "-r", "@", "-T", 'description'])
assert result.returncode == 0
> assert "chore: update settings for incident recovery" in result.stdout, "Expected commit description not found"
E AssertionError: Expected commit description not found
E assert 'chore: update settings for incident recovery' in 'wip: working on settings and deploy\n'
E + where 'wip: working on settings and deploy\n' = CompletedProcess(args=['jj', 'log', '--no-graph', '-r', '@', '-T', 'description'], returncode=0, stdout='wip: working on settings and deploy\n', stderr='').stdout
/tests/test_final_state.py:29: AssertionError
__________________________ test_recovery_status_file ___________________________
def test_recovery_status_file():
> assert os.path.exists(STATUS_FILE), f"{STATUS_FILE} does not exist"
E AssertionError: /home/user/recovery_status.txt does not exist
E assert False
E + where False = <function exists at 0x7e540dcef560>('/home/user/recovery_status.txt')
E + where <function exists at 0x7e540dcef560> = <module 'posixpath' (frozen)>.exists
E + where <module 'posixpath' (frozen)> = os.path
/tests/test_final_state.py:38: AssertionError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../tests/test_final_state.py::test_settings_yaml_in_commit
FAILED ../tests/test_final_state.py::test_cache_bin_restored - AssertionError...
FAILED ../tests/test_final_state.py::test_deploy_sh_unmodified - AssertionErr...
FAILED ../tests/test_final_state.py::test_commit_description - AssertionError...
FAILED ../tests/test_final_state.py::test_recovery_status_file - AssertionErr...
========================= 4 failed, 1 passed in 0.11s ==========================