Home Explore Blog CI



ed30e8e33-linux

result.json

total: 31, pass: 26, fail: 5

refactor cli

1. cli error shows span
2. a crate is separated for cli: `ragit-cli`
3. `rag build` accepts a flag `--jobs <n>`

TOC

  1. recover  
  2. clone  
  3. clone2  
  4. cli  
  5. ls  
  6. meta  
  7. ii  
  8. images  
  9. subdir  
  10. tfidf  
  11. merge  
  12. migrate  

Cases

cargo_tests
 

elapsed time: 1,412,476 ms

Error


#####################
### path: command ###
/home/ubuntu/Documents/ci/ragit/crates/ignore: cargo test

### status_code ###
101

### stdout ###

running 1 test
test tests::ignore_test ... FAILED

failures:

---- tests::ignore_test stdout ----
thread 'tests::ignore_test' panicked at src/tests.rs:90:9:
(pattern: "ab*" -> IgnorePattern { r: Regex("^([^/]+/)*ab*$") }, path: "a/abc") has to match, but but doesn't
(pattern: "ab*" -> IgnorePattern { r: Regex("^([^/]+/)*ab*$") }, path: "abc") has to match, but but doesn't
(pattern: "*.json" -> IgnorePattern { r: Regex("^([^/]+/)**\\.json$") }, path: "a.json") has to match, but but doesn't
(pattern: "*.json" -> IgnorePattern { r: Regex("^([^/]+/)**\\.json$") }, path: "res/a.json") has to match, but but doesn't
(pattern: "/*.json" -> IgnorePattern { r: Regex("^/*\\.json$") }, path: "a.json") has to match, but but doesn't
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    tests::ignore_test

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s



### stderr ###
    Updating crates.io index
     Locking 44 packages to latest compatible versions
      Adding windows-core v0.52.0 (latest: v0.59.0)
      Adding windows-targets v0.52.6 (latest: v0.53.0)
      Adding windows_aarch64_gnullvm v0.52.6 (latest: v0.53.0)
      Adding windows_aarch64_msvc v0.52.6 (latest: v0.53.0)
      Adding windows_i686_gnu v0.52.6 (latest: v0.53.0)
      Adding windows_i686_gnullvm v0.52.6 (latest: v0.53.0)
      Adding windows_i686_msvc v0.52.6 (latest: v0.53.0)
      Adding windows_x86_64_gnu v0.52.6 (latest: v0.53.0)
      Adding windows_x86_64_gnullvm v0.52.6 (latest: v0.53.0)
      Adding windows_x86_64_msvc v0.52.6 (latest: v0.53.0)
   Compiling autocfg v1.4.0
   Compiling memchr v2.7.4
   Compiling num-traits v0.2.19
   Compiling aho-corasick v1.1.3
   Compiling regex-syntax v0.8.5
   Compiling iana-time-zone v0.1.61
   Compiling chrono v0.4.39
   Compiling regex-automata v0.4.9
   Compiling pathdiff v0.2.3
   Compiling ragit-fs v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/fs)
   Compiling regex v1.11.1
   Compiling ragit-ignore v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/ignore)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 12.20s
     Running unittests src/lib.rs (target/debug/deps/ragit_ignore-6a5412b4405563e3)
error: test failed, to rerun pass `--lib`




#####################
### path: command ###
/home/ubuntu/Documents/ci/ragit/crates/ignore: cargo test --release

### status_code ###
101

### stdout ###

running 1 test
test tests::ignore_test ... FAILED

failures:

---- tests::ignore_test stdout ----
thread 'tests::ignore_test' panicked at src/tests.rs:90:9:
(pattern: "ab*" -> IgnorePattern { r: Regex("^([^/]+/)*ab*$") }, path: "a/abc") has to match, but but doesn't
(pattern: "ab*" -> IgnorePattern { r: Regex("^([^/]+/)*ab*$") }, path: "abc") has to match, but but doesn't
(pattern: "*.json" -> IgnorePattern { r: Regex("^([^/]+/)**\\.json$") }, path: "a.json") has to match, but but doesn't
(pattern: "*.json" -> IgnorePattern { r: Regex("^([^/]+/)**\\.json$") }, path: "res/a.json") has to match, but but doesn't
(pattern: "/*.json" -> IgnorePattern { r: Regex("^/*\\.json$") }, path: "a.json") has to match, but but doesn't
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    tests::ignore_test

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s



### stderr ###
   Compiling autocfg v1.4.0
   Compiling memchr v2.7.4
   Compiling num-traits v0.2.19
   Compiling aho-corasick v1.1.3
   Compiling iana-time-zone v0.1.61
   Compiling regex-syntax v0.8.5
   Compiling regex-automata v0.4.9
   Compiling chrono v0.4.39
   Compiling pathdiff v0.2.3
   Compiling ragit-fs v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/fs)
   Compiling regex v1.11.1
   Compiling ragit-ignore v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/ignore)
    Finished `release` profile [optimized] target(s) in 24.61s
     Running unittests src/lib.rs (target/release/deps/ragit_ignore-ec76309b863e2fbc)
error: test failed, to rerun pass `--lib`


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/cargo_tests.py", line 45, in cargo_tests
    raise Exception("\n\n".join(errors))
Exception: 
#####################
### path: command ###
/home/ubuntu/Documents/ci/ragit/crates/ignore: cargo test

### status_code ###
101

### stdout ###

running 1 test
test tests::ignore_test ... FAILED

failures:

---- tests::ignore_test stdout ----
thread 'tests::ignore_test' panicked at src/tests.rs:90:9:
(pattern: "ab*" -> IgnorePattern { r: Regex("^([^/]+/)*ab*$") }, path: "a/abc") has to match, but but doesn't
(pattern: "ab*" -> IgnorePattern { r: Regex("^([^/]+/)*ab*$") }, path: "abc") has to match, but but doesn't
(pattern: "*.json" -> IgnorePattern { r: Regex("^([^/]+/)**\\.json$") }, path: "a.json") has to match, but but doesn't
(pattern: "*.json" -> IgnorePattern { r: Regex("^([^/]+/)**\\.json$") }, path: "res/a.json") has to match, but but doesn't
(pattern: "/*.json" -> IgnorePattern { r: Regex("^/*\\.json$") }, path: "a.json") has to match, but but doesn't
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    tests::ignore_test

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s



### stderr ###
    Updating crates.io index
     Locking 44 packages to latest compatible versions
      Adding windows-core v0.52.0 (latest: v0.59.0)
      Adding windows-targets v0.52.6 (latest: v0.53.0)
      Adding windows_aarch64_gnullvm v0.52.6 (latest: v0.53.0)
      Adding windows_aarch64_msvc v0.52.6 (latest: v0.53.0)
      Adding windows_i686_gnu v0.52.6 (latest: v0.53.0)
      Adding windows_i686_gnullvm v0.52.6 (latest: v0.53.0)
      Adding windows_i686_msvc v0.52.6 (latest: v0.53.0)
      Adding windows_x86_64_gnu v0.52.6 (latest: v0.53.0)
      Adding windows_x86_64_gnullvm v0.52.6 (latest: v0.53.0)
      Adding windows_x86_64_msvc v0.52.6 (latest: v0.53.0)
   Compiling autocfg v1.4.0
   Compiling memchr v2.7.4
   Compiling num-traits v0.2.19
   Compiling aho-corasick v1.1.3
   Compiling regex-syntax v0.8.5
   Compiling iana-time-zone v0.1.61
   Compiling chrono v0.4.39
   Compiling regex-automata v0.4.9
   Compiling pathdiff v0.2.3
   Compiling ragit-fs v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/fs)
   Compiling regex v1.11.1
   Compiling ragit-ignore v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/ignore)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 12.20s
     Running unittests src/lib.rs (target/debug/deps/ragit_ignore-6a5412b4405563e3)
error: test failed, to rerun pass `--lib`




#####################
### path: command ###
/home/ubuntu/Documents/ci/ragit/crates/ignore: cargo test --release

### status_code ###
101

### stdout ###

running 1 test
test tests::ignore_test ... FAILED

failures:

---- tests::ignore_test stdout ----
thread 'tests::ignore_test' panicked at src/tests.rs:90:9:
(pattern: "ab*" -> IgnorePattern { r: Regex("^([^/]+/)*ab*$") }, path: "a/abc") has to match, but but doesn't
(pattern: "ab*" -> IgnorePattern { r: Regex("^([^/]+/)*ab*$") }, path: "abc") has to match, but but doesn't
(pattern: "*.json" -> IgnorePattern { r: Regex("^([^/]+/)**\\.json$") }, path: "a.json") has to match, but but doesn't
(pattern: "*.json" -> IgnorePattern { r: Regex("^([^/]+/)**\\.json$") }, path: "res/a.json") has to match, but but doesn't
(pattern: "/*.json" -> IgnorePattern { r: Regex("^/*\\.json$") }, path: "a.json") has to match, but but doesn't
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    tests::ignore_test

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s



### stderr ###
   Compiling autocfg v1.4.0
   Compiling memchr v2.7.4
   Compiling num-traits v0.2.19
   Compiling aho-corasick v1.1.3
   Compiling iana-time-zone v0.1.61
   Compiling regex-syntax v0.8.5
   Compiling regex-automata v0.4.9
   Compiling chrono v0.4.39
   Compiling pathdiff v0.2.3
   Compiling ragit-fs v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/fs)
   Compiling regex v1.11.1
   Compiling ragit-ignore v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/ignore)
    Finished `release` profile [optimized] target(s) in 24.61s
     Running unittests src/lib.rs (target/release/deps/ragit_ignore-ec76309b863e2fbc)
error: test failed, to rerun pass `--lib`


history

add_and_rm
 

elapsed time: 69,348 ms

history

recover
 

elapsed time: 8,493 ms

history

clone
 

elapsed time: 13,723 ms

Error

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.

history

clone2
 

elapsed time: 379,013 ms

history

cli
 

elapsed time: 7,324 ms

history

many_chunks
 

elapsed time: 276,550 ms

history

ls
 

elapsed time: 179,747 ms

history

meta
 

elapsed time: 5,418 ms

history

ii
 

elapsed time: 45,019 ms

history

cat_file
 

elapsed time: 18,199 ms

history

images
 

elapsed time: 6,074 ms

history

markdown_reader
 

elapsed time: 10,956 ms

history

csv_reader
 

elapsed time: 6,035 ms

history

subdir
 

elapsed time: 16,808 ms

history

tfidf
 

elapsed time: 19,909 ms

history

merge
 

elapsed time: 35,343 ms

history

external_bases
 

elapsed time: 68,368 ms

history

end_to_end dummy
 

elapsed time: 23,329 ms

Error

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

history

end_to_end gpt-4o-mini
 

elapsed time: 80,489 ms

history

prompts dummy
 

elapsed time: 9,168 ms

history

prompts gpt-4o-mini
 

elapsed time: 76,422 ms

history

prompts claude-3.5-sonnet
 

elapsed time: 83,897 ms

history

empty dummy
 

elapsed time: 4,267 ms

history

empty gpt-4o-mini
 

elapsed time: 5,590 ms

history

images2 gpt-4o-mini
 

elapsed time: 12,678 ms

history

images2 claude-3.5-sonnet
 

elapsed time: 12,792 ms

history

ragit_api llama3.2-11b-groq
 

elapsed time: 8,859 ms

history

ragit_api command-r
 

elapsed time: 404 ms

Error

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.

history

ragit_api phi-3-14b-ollama
 

elapsed time: 321 ms

Error

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.

history

migrate
 

elapsed time: 495,213 ms

history


<< 9bbffcadd-linux
ea4dd6340-linux >>