total: 31, pass: 27, fail: 4
fix `ls-chunks`
It used to mix the query results from files and chunks. If a chunk and a
file it belongs to have the same uid prefix, the chunk could appear
twice.
Now it only shows chunks if the results contain both chunks and files.
elapsed time: 1,434,978 ms
elapsed time: 69,977 ms
elapsed time: 8,569 ms
elapsed time: 13,743 ms
Command '['cargo', 'run', '--release', '--', 'clone', 'http://127.0.0.1/test-user/repo1']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/ubuntu/Documents/ci/ragit/tests/tests.py", line 332, in <module>
test()
File "/home/ubuntu/Documents/ci/ragit/tests/clone.py", line 50, in clone
cargo_run(["clone", "http://127.0.0.1/test-user/repo1"])
File "/home/ubuntu/Documents/ci/ragit/tests/utils.py", line 61, in cargo_run
result = subprocess.run(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', 'clone', 'http://127.0.0.1/test-user/repo1']' returned non-zero exit status 1.
elapsed time: 380,160 ms
elapsed time: 7,404 ms
elapsed time: 278,415 ms
elapsed time: 182,152 ms
elapsed time: 5,470 ms
elapsed time: 45,964 ms
elapsed time: 18,246 ms
elapsed time: 6,152 ms
elapsed time: 11,039 ms
elapsed time: 6,010 ms
elapsed time: 16,965 ms
elapsed time: 19,970 ms
elapsed time: 35,932 ms
elapsed time: 69,467 ms
elapsed time: 23,447 ms
The build should have timed out
Traceback (most recent call last):
File "/home/ubuntu/Documents/ci/ragit/tests/tests.py", line 332, in <module>
test()
File "/home/ubuntu/Documents/ci/ragit/tests/tests.py", line 288, in <lambda>
("end_to_end dummy", lambda: end_to_end(test_model="dummy")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/end_to_end.py", line 78, in end_to_end
raise Exception("The build should have timed out")
Exception: The build should have timed out
elapsed time: 84,162 ms
elapsed time: 9,315 ms
elapsed time: 81,185 ms
elapsed time: 98,420 ms
elapsed time: 4,333 ms
elapsed time: 5,633 ms
elapsed time: 15,566 ms
elapsed time: 13,148 ms
elapsed time: 8,944 ms
elapsed time: 432 ms
Command '['cargo', 'run', '--release', '--', '--model', 'command-r', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
Traceback (most recent call last):
File "/home/ubuntu/Documents/ci/ragit/tests/tests.py", line 332, in <module>
test()
File "/home/ubuntu/Documents/ci/ragit/tests/tests.py", line 302, in <lambda>
("ragit_api command-r", lambda: ragit_api(test_model="command-r")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/ragit_api.py", line 9, in ragit_api
subprocess.run(["cargo", "run", "--release", '--', '--model', test_model, '--input', 'hello_world.pdl'], check=True)
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', '--model', 'command-r', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
elapsed time: 326 ms
Command '['cargo', 'run', '--release', '--', '--model', 'phi-3-14b-ollama', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
Traceback (most recent call last):
File "/home/ubuntu/Documents/ci/ragit/tests/tests.py", line 332, in <module>
test()
File "/home/ubuntu/Documents/ci/ragit/tests/tests.py", line 303, in <lambda>
("ragit_api phi-3-14b-ollama", lambda: ragit_api(test_model="phi-3-14b-ollama")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/ragit_api.py", line 9, in ragit_api
subprocess.run(["cargo", "run", "--release", '--', '--model', test_model, '--input', 'hello_world.pdl'], check=True)
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', '--model', 'phi-3-14b-ollama', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
elapsed time: 500,696 ms