Home Explore Blog CI



3aa665352-linux

result.json

total: 63, pass: 43, fail: 20

update `tests/server_permission.py`

The test script is (almost) complete, but I found some issues in
push/clone implementation. They're supposed to use api keys to
authenticate, but they aren't.

TOC

  1. ignore  
  2. recover  
  3. clone  
  4. pull  
  5. server  
  6. cli  
  7. outside  
  8. archive  
  9. ls  
  10. meta  
  11. symlink  
  12. ii  
  13. images  
  14. subdir  
  15. tfidf  
  16. merge  
  17. migrate  
  18. config  

Cases

cargo_tests
 

elapsed time: 282,318 ms

history

add_and_rm
 

elapsed time: 34,662 ms

history

add_and_rm2
 

elapsed time: 11,572 ms

history

ignore
 

elapsed time: 3,211 ms

history

recover
 

elapsed time: 3,100 ms

history

clone
 

elapsed time: 48,215 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/clone.py", line 43, in clone
    create_user(id="test-user", password="password")
  File "/home/baehyunsol/Documents/ragit/tests/server.py", line 192, in create_user
    assert response.status_code == expected_status_code
AssertionError

history

clone_empty
 

elapsed time: 1,238 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/clone_empty.py", line 20, in clone_empty
    create_user(id="test-user", password="87654321")
  File "/home/baehyunsol/Documents/ragit/tests/server.py", line 192, in create_user
    assert response.status_code == expected_status_code
AssertionError

history

pull
 

elapsed time: 1,331 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/pull.py", line 47, in pull
    create_user(id="test-user", password="password")
  File "/home/baehyunsol/Documents/ragit/tests/server.py", line 192, in create_user
    assert response.status_code == expected_status_code
AssertionError

history

server
 

elapsed time: 3,228 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/server.py", line 38, in server
    create_user(id="test-user", password="12345678")
  File "/home/baehyunsol/Documents/ragit/tests/server.py", line 192, in create_user
    assert response.status_code == expected_status_code
AssertionError

history

server_permission
 

elapsed time: 1,188 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/server_permission.py", line 27, in server_permission
    create_user(id="admin", email="i.am@admin.com", password="strong-password")
  File "/home/baehyunsol/Documents/ragit/tests/server.py", line 192, in create_user
    assert response.status_code == expected_status_code
AssertionError

history

cli
 

elapsed time: 5,653 ms

history

outside
 

elapsed time: 3,013 ms

history

archive
 

elapsed time: 198,702 ms

history

many_chunks
 

elapsed time: 560,287 ms

history

many_jobs
 

elapsed time: 158,774 ms

history

ls
 

elapsed time: 73,539 ms

history

meta
 

elapsed time: 1,728 ms

history

symlink
 

elapsed time: 3,087 ms

history

gh_issue_20
 

elapsed time: 2,731 ms

history

ii
 

elapsed time: 170,254 ms

Error

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 670, 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']

history

cat_file
 

elapsed time: 14,741 ms

history

generous_file_reader
 

elapsed time: 348,621 ms

history

clean_up_erroneous_chunk
 

elapsed time: 1,425 ms

history

images
 

elapsed time: 4,409 ms

history

markdown_reader
 

elapsed time: 5,222 ms

history

csv_reader
 

elapsed time: 2,813 ms

history

real_repos
 

elapsed time: 2,304,237 ms

history

real_repos_regression
 

elapsed time: 2,527 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/real_repos_regression.py", line 157, in real_repos_regression
    assert count_files() == (len(reproductions), 1, len(reproductions) - 1)  # (total, staged, processed)
AssertionError

history

subdir
 

elapsed time: 9,216 ms

history

tfidf
 

elapsed time: 10,369 ms

history

merge
 

elapsed time: 14,407 ms

history

external_bases
 

elapsed time: 78,276 ms

history

end_to_end dummy
 

elapsed time: 35,250 ms

history

end_to_end llama3.3-70b
 

elapsed time: 1,046,879 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 608, in <lambda>
    ("end_to_end llama3.3-70b", lambda: end_to_end(test_model="llama3.3-70b")),
  File "/home/baehyunsol/Documents/ragit/tests/end_to_end.py", line 137, in end_to_end
    assert chunk_count_prev == chunk_count
AssertionError

history

audit llama3.3-70b
 

elapsed time: 95,491 ms

Error

Command '['cargo', 'run', '--release', '--', 'query', 'Why is the sky blue?']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 609, in <lambda>
    ("audit llama3.3-70b", lambda: audit(test_model="llama3.3-70b")),
  File "/home/baehyunsol/Documents/ragit/tests/audit.py", line 35, in audit
    cargo_run(["query", "Why is the sky blue?"])
  File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 77, 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', '--', 'query', 'Why is the sky blue?']' returned non-zero exit status 1.

history

logs llama3.3-70b
 

elapsed time: 3,834 ms

history

prompts dummy
 

elapsed time: 4,684 ms

history

prompts gpt-4o-mini
 

elapsed time: 94,332 ms

Error

Expected 12~15 chunks, got 1.
Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 612, in <lambda>
    ("prompts gpt-4o-mini", lambda: prompts(test_model="gpt-4o-mini")),
  File "/home/baehyunsol/Documents/ragit/tests/prompts.py", line 40, in prompts
    raise Exception(f"Expected 12~15 chunks, got {chunks}.")
Exception: Expected 12~15 chunks, got 1.

history

prompts gemini-2.0-flash
 

elapsed time: 28,589 ms

history

prompts claude-3.5-sonnet
 

elapsed time: 96,848 ms

Error

Expected 12~15 chunks, got 1.
Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 614, in <lambda>
    ("prompts claude-3.5-sonnet", lambda: prompts(test_model="claude-3.5-sonnet")),
  File "/home/baehyunsol/Documents/ragit/tests/prompts.py", line 40, in prompts
    raise Exception(f"Expected 12~15 chunks, got {chunks}.")
Exception: Expected 12~15 chunks, got 1.

history

empty dummy
 

elapsed time: 2,706 ms

history

empty llama3.3-70b
 

elapsed time: 93,618 ms

Error

Command '['cargo', 'run', '--release', '--', 'query', "what's your name?"]' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 616, in <lambda>
    ("empty llama3.3-70b", lambda: empty(test_model="llama3.3-70b")),
  File "/home/baehyunsol/Documents/ragit/tests/empty.py", line 23, in empty
    cargo_run(["query", "what's your name?"])
  File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 77, 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', '--', 'query', "what's your name?"]' returned non-zero exit status 1.

history

server_chat llama3.3-70b
 

elapsed time: 2,412 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 617, 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 32, in server_chat
    create_user(id="test-user", password="secure-password")
  File "/home/baehyunsol/Documents/ragit/tests/server.py", line 192, in create_user
    assert response.status_code == expected_status_code
AssertionError

history

server_chat gemini-2.0-flash
 

elapsed time: 2,382 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 618, in <lambda>
    ("server_chat gemini-2.0-flash", lambda: server_chat(test_model="gemini-2.0-flash")),
  File "/home/baehyunsol/Documents/ragit/tests/server_chat.py", line 32, in server_chat
    create_user(id="test-user", password="secure-password")
  File "/home/baehyunsol/Documents/ragit/tests/server.py", line 192, in create_user
    assert response.status_code == expected_status_code
AssertionError

history

images2 gpt-4o-mini
 

elapsed time: 10,071 ms

history

images3 gpt-4o-mini
 

elapsed time: 22,506 ms

history

pdl gpt-4o-mini
 

elapsed time: 3,893 ms

history

pdf gpt-4o-mini
 

elapsed time: 119,910 ms

Error

Command '['cargo', 'run', '--release', '--', 'ls-chunks', 'landscape.pdf', '--json']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 622, in <lambda>
    ("pdf gpt-4o-mini", lambda: pdf(test_model="gpt-4o-mini")),
  File "/home/baehyunsol/Documents/ragit/tests/pdf.py", line 41, in pdf
    chunks = json.loads(cargo_run(["ls-chunks", pdf["name"], "--json"], stdout=True))
  File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 77, 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', '--', 'ls-chunks', 'landscape.pdf', '--json']' returned non-zero exit status 1.

history

svg gpt-4o-mini
 

elapsed time: 7,508 ms

Error


Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 623, 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

history

web_images gpt-4o-mini
 

elapsed time: 113,116 ms

Error

Command '['cargo', 'run', '--release', '--', 'ls-images', 'double.md']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 624, in <lambda>
    ("web_images gpt-4o-mini", lambda: web_images(test_model="gpt-4o-mini")),
  File "/home/baehyunsol/Documents/ragit/tests/web_images.py", line 25, in web_images
    assert count_images(["double.md"]) == 1
  File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 136, in count_images
    images = cargo_run(["ls-images"] + (args or []), stdout=True)
  File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 77, 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', '--', 'ls-images', 'double.md']' returned non-zero exit status 1.

history

images2 claude-3.5-sonnet
 

elapsed time: 10,155 ms

history

extract_keywords dummy
 

elapsed time: 1,643 ms

history

extract_keywords gpt-4o-mini
 

elapsed time: 92,061 ms

Error

Command '['cargo', 'run', '--release', '--', 'extract-keywords', 'How does ragit store chunks?']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 630, in <lambda>
    ("extract_keywords gpt-4o-mini", lambda: extract_keywords(test_model="gpt-4o-mini")),
  File "/home/baehyunsol/Documents/ragit/tests/extract_keywords.py", line 13, in extract_keywords
    result = cargo_run(["extract-keywords", "How does ragit store chunks?"], stdout=True)
  File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 77, 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', '--', 'extract-keywords', 'How does ragit store chunks?']' returned non-zero exit status 1.

history

orphan_process llama3.3-70b
 

elapsed time: 99,689 ms

history

write_lock llama3.3-70b
 

elapsed time: 144,788 ms

Error

Command '['cargo', 'run', '--release', '--', 'query', 'How do I see a history of a file in git?']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 632, in <lambda>
    ("write_lock llama3.3-70b", lambda: write_lock(test_model="llama3.3-70b")),
  File "/home/baehyunsol/Documents/ragit/tests/write_lock.py", line 69, in write_lock
    cargo_run(["query", "How do I see a history of a file in git?"])
  File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 77, 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', '--', 'query', 'How do I see a history of a file in git?']' returned non-zero exit status 1.

history

ragit_api command-r
 

elapsed time: 1,098 ms

history

query_options llama3.3-70b
 

elapsed time: 92,386 ms

Error

Command '['cargo', 'run', '--release', '--', 'query', 'In which city did Baehyunsol live?']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 670, in <module>
    test()
  File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 634, in <lambda>
    ("query_options llama3.3-70b", lambda: query_options(test_model="llama3.3-70b")),
  File "/home/baehyunsol/Documents/ragit/tests/query_options.py", line 17, in query_options
    assert "ragit" in cargo_run(["query", "In which city did Baehyunsol live?"], stdout=True).lower()
  File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 77, 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', '--', 'query', 'In which city did Baehyunsol live?']' returned non-zero exit status 1.

history

query_with_schema llama3.3-70b
 

elapsed time: 2,073 ms

history

models_init
 

elapsed time: 289 ms

history

test_home_config_override
 

elapsed time: 134 ms

history

migrate
 

elapsed time: 152,785 ms

history

migrate2
 

elapsed time: 46,942 ms

history

config
 

elapsed time: 24,291 ms

history


<< 92df3569e-linux
16a6c7ac3-linux >>