total: 57, pass: 50, fail: 7
fix `uid_add_sub` test
elapsed time: 278,575 ms
elapsed time: 35,595 ms
elapsed time: 11,889 ms
elapsed time: 3,179 ms
elapsed time: 3,088 ms
elapsed time: 142,646 ms
elapsed time: 4,967 ms
elapsed time: 8,887 ms
elapsed time: 4,886 ms
{'ragit_version': '0.4.0-dev', 'chunk_count': 0, 'staged_files': [], 'processed_files': {}, 'curr_processing_file': None, 'repo_url': None, 'ii_status': {'type': 'None'}, 'uid': None} != {'ragit_version': '0.4.0-dev', 'chunk_count': 0, 'staged_files': [], 'processed_files': {}, 'curr_processing_file': None, 'repo_url': None, 'ii_status': {'type': 'None'}, 'uid': {'high': 226965926617079404232257257017206136310, 'low': 98353210059702837338669213515912314881}}
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 630, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/server.py", line 51, in server
assert_eq_json("index.json", index_json)
File "/home/baehyunsol/Documents/ragit/tests/server.py", line 266, in assert_eq_json
raise ValueError(f"{file.__repr__()} != {value.__repr__()}")
ValueError: {'ragit_version': '0.4.0-dev', 'chunk_count': 0, 'staged_files': [], 'processed_files': {}, 'curr_processing_file': None, 'repo_url': None, 'ii_status': {'type': 'None'}, 'uid': None} != {'ragit_version': '0.4.0-dev', 'chunk_count': 0, 'staged_files': [], 'processed_files': {}, 'curr_processing_file': None, 'repo_url': None, 'ii_status': {'type': 'None'}, 'uid': {'high': 226965926617079404232257257017206136310, 'low': 98353210059702837338669213515912314881}}
elapsed time: 1,609 ms
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 630, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/server_permission.py", line 23, in server_permission
create_user(id="test-user-2", email="sample2@email.com", password="abcdefgh")
File "/home/baehyunsol/Documents/ragit/tests/server.py", line 186, in create_user
assert response.status_code == 200
AssertionError
elapsed time: 5,617 ms
elapsed time: 196,571 ms
elapsed time: 509,265 ms
elapsed time: 169,233 ms
elapsed time: 64,140 ms
elapsed time: 1,714 ms
elapsed time: 3,081 ms
elapsed time: 173,800 ms
tfidf result on term 'search gpg annot select correspond' is not close enough. error: `approximation[2] not in answer`, answer: ['3e0d93ece16c10490435c08b7b755db9a57e53b818a9e62c0000000100000fa3', 'c5719c769542cb0cde49558784948082703f2da9618c29d80000000100000fb3', '6d1b2eeef26e5ce9672e62a7ca43412c66b86ad0e48d27620000000100000fa0', '606389435f969a017ad1cf63a7a30eba0d1a08c743efea9f0000000100000318', 'f386d96798aad5baf548b6985b367932bdc89483b756b515000000010000081f', 'c66345d5ab119b4cf05a6899472b54a4fd0041ee2b83b9f80000000100000fa2', 'bf8735875031f53ccd50e48e6674d9ac64c90f68bb0c7edb0000000100000fa0', '509b4b369f9f9729365a6947ce43335209d934562feeb7220000000100000fa2', '82ad9747a31109a3ef965e4168a0968cb56a448390416e290000000100000bf5', 'b632241f25a98c9320097079669e1acd10afd534e67ec2600000000100000fa2'], approximation: ['3e0d93ece16c10490435c08b7b755db9a57e53b818a9e62c0000000100000fa3', 'b632241f25a98c9320097079669e1acd10afd534e67ec2600000000100000fa2', '90a25e1efdafffab6369490140eecabb90ab0649108feeff0000000100000cd4', 'bf8735875031f53ccd50e48e6674d9ac64c90f68bb0c7edb0000000100000fa0', '5cdbfe828a4a84a4129bda3cc32bb8376914275561fa6a1a0000000100000da8', 'c5719c769542cb0cde49558784948082703f2da9618c29d80000000100000fb3', '0833e100c47da17ca6a2d202310483ed3c08f75ec2cfbf4a0000000100000c67', '1ff3d753fa4b857385f748c5d02a7371332241a8579211f9000000010000075c', '6f305111c4ab2bb2243ce34889afb4f72dff498303da56890000000100000c1e', '6d1b2eeef26e5ce9672e62a7ca43412c66b86ad0e48d27620000000100000fa0']
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/ii.py", line 103, in ii_worker
raise AssertionError(f"approximation[{i}] not in answer")
AssertionError: approximation[2] not in answer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 630, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/ii.py", line 49, in ii
ii_worker()
File "/home/baehyunsol/Documents/ragit/tests/ii.py", line 116, in ii_worker
raise AssertionError(f"tfidf result on term '{term}' is not close enough. error: `{e}`, answer: {answer}, approximation: {approximation}")
AssertionError: tfidf result on term 'search gpg annot select correspond' is not close enough. error: `approximation[2] not in answer`, answer: ['3e0d93ece16c10490435c08b7b755db9a57e53b818a9e62c0000000100000fa3', 'c5719c769542cb0cde49558784948082703f2da9618c29d80000000100000fb3', '6d1b2eeef26e5ce9672e62a7ca43412c66b86ad0e48d27620000000100000fa0', '606389435f969a017ad1cf63a7a30eba0d1a08c743efea9f0000000100000318', 'f386d96798aad5baf548b6985b367932bdc89483b756b515000000010000081f', 'c66345d5ab119b4cf05a6899472b54a4fd0041ee2b83b9f80000000100000fa2', 'bf8735875031f53ccd50e48e6674d9ac64c90f68bb0c7edb0000000100000fa0', '509b4b369f9f9729365a6947ce43335209d934562feeb7220000000100000fa2', '82ad9747a31109a3ef965e4168a0968cb56a448390416e290000000100000bf5', 'b632241f25a98c9320097079669e1acd10afd534e67ec2600000000100000fa2'], approximation: ['3e0d93ece16c10490435c08b7b755db9a57e53b818a9e62c0000000100000fa3', 'b632241f25a98c9320097079669e1acd10afd534e67ec2600000000100000fa2', '90a25e1efdafffab6369490140eecabb90ab0649108feeff0000000100000cd4', 'bf8735875031f53ccd50e48e6674d9ac64c90f68bb0c7edb0000000100000fa0', '5cdbfe828a4a84a4129bda3cc32bb8376914275561fa6a1a0000000100000da8', 'c5719c769542cb0cde49558784948082703f2da9618c29d80000000100000fb3', '0833e100c47da17ca6a2d202310483ed3c08f75ec2cfbf4a0000000100000c67', '1ff3d753fa4b857385f748c5d02a7371332241a8579211f9000000010000075c', '6f305111c4ab2bb2243ce34889afb4f72dff498303da56890000000100000c1e', '6d1b2eeef26e5ce9672e62a7ca43412c66b86ad0e48d27620000000100000fa0']
elapsed time: 15,496 ms
elapsed time: 52,898 ms
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 630, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/generous_file_reader.py", line 61, in generous_file_reader
assert count_files() == (len(files), 0, len(files)) # (total, staged, processed)
AssertionError
elapsed time: 4,394 ms
elapsed time: 5,322 ms
elapsed time: 2,654 ms
elapsed time: 750,110 ms
Command '['cargo', 'run', '--release', '--', 'build']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 630, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/real_repos.py", line 63, in real_repos
cargo_run(["build"])
File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 70, in cargo_run
result = subprocess.run(args, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', 'build']' returned non-zero exit status 1.
elapsed time: 8,986 ms
elapsed time: 10,419 ms
elapsed time: 14,362 ms
elapsed time: 67,359 ms
elapsed time: 43,243 ms
elapsed time: 58,369 ms
elapsed time: 5,575 ms
elapsed time: 3,857 ms
elapsed time: 4,462 ms
elapsed time: 44,970 ms
elapsed time: 68,796 ms
elapsed time: 2,810 ms
elapsed time: 3,747 ms
elapsed time: 8,607 ms
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/baehyunsol/.local/lib/python3.10/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 630, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 578, in <lambda>
("server_chat llama3.3-70b", lambda: server_chat(test_model="llama3.3-70b")),
File "/home/baehyunsol/Documents/ragit/tests/server_chat.py", line 67, in server_chat
responses2.append(requests.post(f"http://127.0.0.1:41127/test-user/sample2/chat/{chat_id2}", files={"query": "How does the rust compiler implement type system?"}).json())
File "/home/baehyunsol/.local/lib/python3.10/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
elapsed time: 7,839 ms
elapsed time: 25,609 ms
elapsed time: 4,780 ms
elapsed time: 127,599 ms
elapsed time: 8,579 ms
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 630, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 583, in <lambda>
("svg gpt-4o-mini", lambda: svg(test_model="gpt-4o-mini")),
File "/home/baehyunsol/Documents/ragit/tests/svg.py", line 123, in svg
assert "ragit" in cargo_run(["pdl", "test1.pdl"], stdout=True).lower()
AssertionError
elapsed time: 65,851 ms
elapsed time: 9,143 ms
elapsed time: 1,633 ms
elapsed time: 7,660 ms
elapsed time: 101,682 ms
elapsed time: 89,106 ms
elapsed time: 1,170 ms
elapsed time: 5,313 ms
elapsed time: 1,681 ms
elapsed time: 290 ms
elapsed time: 134 ms
elapsed time: 151,199 ms
elapsed time: 39,628 ms
elapsed time: 24,967 ms