Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://security.ubuntu.com/ubuntu noble-security 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.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 pygments (1.2MiB)
Downloading pygments
Installed 5 packages in 23ms
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.1, pluggy-1.6.0 -- /root/.cache/uv/archive-v0/gdSvGVnVgd_q0QeDWZHr3/bin/python
cachedir: .pytest_cache
rootdir: /tests
collecting ... collected 4 items
../../tests/test_final_state.py::test_recovered_bookmark_exists FAILED [ 25%]
../../tests/test_final_state.py::test_recovered_commit_contents FAILED [ 50%]
../../tests/test_final_state.py::test_recovered_commit_parent_is_main FAILED [ 75%]
../../tests/test_final_state.py::test_recovered_commit_id_file FAILED [100%]
=================================== FAILURES ===================================
________________________ test_recovered_bookmark_exists ________________________
def test_recovered_bookmark_exists():
result = run_jj(["bookmark", "list"])
assert result.returncode == 0, f"jj bookmark list failed: {result.stderr}"
> assert "recovered-login" in result.stdout, "Bookmark 'recovered-login' does not exist."
E AssertionError: Bookmark 'recovered-login' does not exist.
E assert 'recovered-login' in 'main: pxkklxrn 9fb8d23b Initial commit\n'
E + where 'main: pxkklxrn 9fb8d23b Initial commit\n' = CompletedProcess(args=['jj', 'bookmark', 'list'], returncode=0, stdout='main: pxkklxrn 9fb8d23b Initial commit\n', stderr='').stdout
/tests/test_final_state.py:14: AssertionError
________________________ test_recovered_commit_contents ________________________
def test_recovered_commit_contents():
# Check that the recovered-login bookmark points to a commit containing login.py
result = run_jj(["file", "show", "login.py", "-r", "recovered-login"])
> assert result.returncode == 0, f"Failed to show login.py at recovered-login: {result.stderr}"
E AssertionError: Failed to show login.py at recovered-login: Error: Revision `recovered-login` doesn't exist
E
E assert 1 == 0
E + where 1 = CompletedProcess(args=['jj', 'file', 'show', 'login.py', '-r', 'recovered-login'], returncode=1, stdout='', stderr="Error: Revision `recovered-login` doesn't exist\n").returncode
/tests/test_final_state.py:19: AssertionError
_____________________ test_recovered_commit_parent_is_main _____________________
def test_recovered_commit_parent_is_main():
# The parent of recovered-login should be main
result = run_jj(["log", "--no-graph", "-r", "recovered-login-", "-T", 'bookmarks'])
> assert result.returncode == 0, f"jj log failed: {result.stderr}"
E AssertionError: jj log failed: Error: Revision `recovered-login` doesn't exist
E
E assert 1 == 0
E + where 1 = CompletedProcess(args=['jj', 'log', '--no-graph', '-r', 'recovered-login-', '-T', 'bookmarks'], returncode=1, stdout='', stderr="Error: Revision `recovered-login` doesn't exist\n").returncode
/tests/test_final_state.py:25: AssertionError
________________________ test_recovered_commit_id_file _________________________
def test_recovered_commit_id_file():
> assert os.path.isfile(COMMIT_ID_FILE), f"File {COMMIT_ID_FILE} does not exist."
E AssertionError: File /home/user/workspace/auth-service/recovered_commit_id.txt does not exist.
E assert False
E + where False = <function isfile at 0x7d2eaa200220>('/home/user/workspace/auth-service/recovered_commit_id.txt')
E + where <function isfile at 0x7d2eaa200220> = <module 'posixpath' (frozen)>.isfile
E + where <module 'posixpath' (frozen)> = os.path
/tests/test_final_state.py:29: AssertionError
=========================== short test summary info ============================
FAILED ../../tests/test_final_state.py::test_recovered_bookmark_exists - Asse...
FAILED ../../tests/test_final_state.py::test_recovered_commit_contents - Asse...
FAILED ../../tests/test_final_state.py::test_recovered_commit_parent_is_main
FAILED ../../tests/test_final_state.py::test_recovered_commit_id_file - Asser...
============================== 4 failed in 0.12s ===============================