total: 31, pass: 4, fail: 27
draft new ragit-api implementation
It's a complete rewrite of the library, with more flexible model
management using a json file.
elapsed time: 1,392,888 ms
#####################
### path: command ###
/home/ubuntu/Documents/ci/ragit/crates/api: cargo test
### status_code ###
101
### stdout ###
### stderr ###
Updating crates.io index
Locking 342 packages to latest compatible versions
Adding aligned-vec v0.5.0 (latest: v0.6.1)
Adding async-channel v1.9.0 (latest: v2.3.1)
Adding bitflags v1.3.2 (latest: v2.8.0)
Adding cfg-expr v0.15.8 (latest: v0.17.2)
Adding chrono-tz v0.9.0 (latest: v0.10.1)
Adding chrono-tz-build v0.3.0 (latest: v0.4.0)
Adding core-foundation v0.9.4 (latest: v0.10.0)
Adding event-listener v2.5.3 (latest: v5.4.0)
Adding foreign-types v0.3.2 (latest: v0.5.0)
Adding foreign-types-shared v0.1.1 (latest: v0.3.1)
Adding generic-array v0.14.7 (latest: v1.2.0)
Adding getrandom v0.2.15 (latest: v0.3.1)
Adding itertools v0.12.1 (latest: v0.14.0)
Adding linux-raw-sys v0.4.15 (latest: v0.7.0)
Adding nom v7.1.3 (latest: v8.0.0)
Adding rand v0.8.5 (latest: v0.9.0)
Adding rand_chacha v0.3.1 (latest: v0.9.0)
Adding rand_core v0.6.4 (latest: v0.9.0)
Adding security-framework v2.11.1 (latest: v3.2.0)
Adding system-deps v6.2.2 (latest: v7.0.3)
Adding target-lexicon v0.12.16 (latest: v0.13.1)
Adding thiserror v1.0.69 (latest: v2.0.11)
Adding thiserror-impl v1.0.69 (latest: v2.0.11)
Adding tinystr v0.7.6 (latest: v0.8.0)
Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.14.0+wasi-0.2.3)
Adding wasi v0.13.3+wasi-0.2.2 (latest: v0.14.0+wasi-0.2.3)
Adding windows-core v0.52.0 (latest: v0.59.0)
Adding windows-registry v0.2.0 (latest: v0.4.0)
Adding windows-result v0.2.0 (latest: v0.3.0)
Adding windows-strings v0.1.0 (latest: v0.3.0)
Adding windows-sys 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)
Adding wit-bindgen-rt v0.33.0 (latest: v0.39.0)
Adding writeable v0.5.5 (latest: v0.6.0)
Adding zerocopy v0.7.35 (latest: v0.8.16)
Adding zerocopy-derive v0.7.35 (latest: v0.8.16)
Adding zerovec v0.10.4 (latest: v0.11.0)
Adding zerovec-derive v0.10.3 (latest: v0.11.0)
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.16
Compiling autocfg v1.4.0
Compiling cfg-if v1.0.0
Compiling memchr v2.7.4
Compiling quote v1.0.38
Compiling syn v2.0.98
Compiling libc v0.2.169
Compiling crossbeam-utils v0.8.21
Compiling pin-project-lite v0.2.16
Compiling once_cell v1.20.2
Compiling futures-core v0.3.31
Compiling smallvec v1.13.2
Compiling slab v0.4.9
Compiling futures-io v0.3.31
Compiling value-bag v1.10.0
Compiling log v0.4.25
Compiling num-traits v0.2.19
Compiling synstructure v0.13.1
Compiling bitflags v2.8.0
Compiling stable_deref_trait v1.2.0
Compiling crossbeam-epoch v0.9.18
Compiling lock_api v0.4.12
Compiling zerofrom-derive v0.1.5
Compiling yoke-derive v0.7.5
Compiling zerovec-derive v0.10.3
Compiling zerofrom v0.1.5
Compiling yoke v0.7.5
Compiling parking_lot_core v0.9.10
Compiling itoa v1.0.14
Compiling futures-sink v0.3.31
Compiling bytes v1.10.0
Compiling siphasher v1.0.1
Compiling zerovec v0.10.4
Compiling displaydoc v0.2.5
Compiling crossbeam-deque v0.8.6
Compiling shlex v1.3.0
Compiling scopeguard v1.2.0
Compiling cc v1.2.12
Compiling tracing-core v0.1.33
Compiling concurrent-queue v2.5.0
Compiling parking v2.2.1
Compiling pkg-config v0.3.31
Compiling pin-utils v0.1.0
Compiling vcpkg v0.2.15
Compiling tracing v0.1.41
Compiling parking_lot v0.12.3
Compiling openssl-sys v0.9.105
Compiling tinystr v0.7.6
Compiling phf_shared v0.11.3
Compiling futures-channel v0.3.31
Compiling futures-macro v0.3.31
Compiling tokio-macros v2.5.0
Compiling mio v1.0.3
Compiling socket2 v0.5.8
Compiling signal-hook-registry v1.4.2
Compiling rayon-core v1.12.1
Compiling simd-adler32 v0.3.7
Compiling rand_core v0.6.4
Compiling atomic-waker v1.1.2
Compiling regex-syntax v0.8.5
Compiling litemap v0.7.4
Compiling futures-task v0.3.31
Compiling writeable v0.5.5
Compiling icu_locid v1.5.0
Compiling regex-automata v0.4.9
Compiling futures-util v0.3.31
Compiling rand v0.8.5
Compiling tokio v1.43.0
Compiling icu_provider_macros v1.5.0
Compiling thiserror v2.0.11
Compiling fnv v1.0.7
Compiling http v1.2.0
Compiling icu_provider v1.5.0
Compiling phf_generator v0.11.3
Compiling regex v1.11.1
Compiling event-listener v5.4.0
Compiling thiserror-impl v2.0.11
Compiling num-integer v0.1.46
Compiling aho-corasick v1.1.3
Compiling anyhow v1.0.95
Compiling adler2 v2.0.0
Compiling icu_locid_transform_data v1.5.0
Compiling fastrand v2.3.0
Compiling either v1.13.0
Compiling serde v1.0.217
Compiling icu_locid_transform v1.5.0
Compiling miniz_oxide v0.8.3
Compiling num-bigint v0.4.6
Compiling event-listener-strategy v0.5.3
Compiling parse-zoneinfo v0.3.1
Compiling phf_codegen v0.11.3
Compiling phf v0.11.3
Compiling icu_collections v1.5.0
Compiling serde_derive v1.0.217
Compiling zerocopy-derive v0.7.35
Compiling openssl v0.10.70
Compiling ucd-trie v0.1.7
Compiling minimal-lexical v0.2.1
Compiling httparse v1.10.0
Compiling icu_properties_data v1.5.0
Compiling arrayvec v0.7.6
Compiling hashbrown v0.15.2
Compiling thiserror v1.0.69
Compiling rustix v0.38.44
Compiling foreign-types-shared v0.1.1
Compiling byteorder v1.5.0
Compiling percent-encoding v2.3.1
Compiling built v0.7.5
Compiling paste v1.0.15
Compiling equivalent v1.0.1
Compiling aligned-vec v0.5.0
Compiling rav1e v0.7.1
Compiling v_frame v0.3.8
Compiling indexmap v2.7.1
Compiling zerocopy v0.7.35
Compiling foreign-types v0.3.2
Compiling icu_properties v1.5.1
Compiling nom v7.1.3
Compiling pest v2.7.15
Compiling chrono-tz-build v0.3.0
Compiling num-rational v0.4.2
Compiling rayon v1.10.0
Compiling futures-lite v2.6.0
Compiling tokio-util v0.7.13
Compiling http-body v1.0.1
Compiling openssl-macros v0.1.1
Compiling profiling-procmacros v1.0.16
Compiling thiserror-impl v1.0.69
Compiling getrandom v0.2.15
Compiling bstr v1.11.3
Compiling crc32fast v1.4.2
Compiling iana-time-zone v0.1.61
Compiling utf16_iter v1.0.5
Compiling unic-char-range v0.9.0
Compiling utf8_iter v1.0.4
Compiling same-file v1.0.6
Compiling icu_normalizer_data v1.5.0
Compiling unic-common v0.9.0
Compiling write16 v1.0.0
Compiling linux-raw-sys v0.4.15
Compiling libm v0.2.11
Compiling try-lock v0.2.5
Compiling native-tls v0.2.13
Compiling ryu v1.0.19
Compiling want v0.3.1
Compiling unic-ucd-version v0.9.0
Compiling icu_normalizer v1.5.0
Compiling walkdir v2.5.0
Compiling unic-char-property v0.9.0
Compiling chrono v0.4.39
Compiling flate2 v1.0.35
Compiling globset v0.4.15
Compiling profiling v1.0.16
Compiling maybe-rayon v0.1.1
Compiling h2 v0.4.7
Compiling av1-grain v0.2.3
Compiling chrono-tz v0.9.0
Compiling pest_meta v2.7.15
Compiling ppv-lite86 v0.2.20
Compiling itertools v0.12.1
Compiling num-derive v0.4.2
Compiling arg_enum_proc_macro v0.3.4
Compiling simd_helpers v0.1.0
Compiling bitstream-io v2.6.0
Compiling openssl-probe v0.1.6
Compiling quick-error v2.0.1
Compiling async-task v4.7.1
Compiling serde_json v1.0.138
Compiling noop_proc_macro v0.3.0
Compiling imgref v1.11.0
Compiling utf8parse v0.2.2
Compiling new_debug_unreachable v1.0.6
Compiling tower-service v0.3.3
Compiling weezl v0.1.8
Compiling anstyle-parse v0.2.6
Compiling loop9 v0.1.5
Compiling rand_chacha v0.3.1
Compiling hyper v1.6.0
Compiling pest_generator v2.7.15
Compiling polling v3.7.4
Compiling ignore v0.4.23
Compiling unic-ucd-segment v0.9.0
Compiling idna_adapter v1.2.0
Compiling form_urlencoded v1.2.1
Compiling avif-serialize v0.8.2
Compiling async-lock v3.4.0
Compiling async-channel v2.3.1
Compiling piper v0.2.4
Compiling zune-inflate v0.2.54
Compiling fdeflate v0.3.7
Compiling half v2.4.1
Compiling byteorder-lite v0.1.0
Compiling rgb v0.8.50
Compiling color_quant v1.1.0
Compiling anstyle v1.0.10
Compiling is_terminal_polyfill v1.70.1
Compiling jpeg-decoder v0.3.1
Compiling bit_field v0.10.2
Compiling bitflags v1.3.2
Compiling zune-core v0.4.12
Compiling lebe v0.5.2
Compiling bytemuck v1.21.0
Compiling colorchoice v1.0.3
Compiling deunicode v1.6.0
Compiling anstyle-query v1.1.2
Compiling anstream v0.6.18
Compiling slug v0.1.6
Compiling qoi v0.4.1
Compiling exr v1.73.0
Compiling tiff v0.9.1
Compiling zune-jpeg v0.4.14
Compiling png v0.17.16
Compiling ravif v0.11.11
Compiling gif v0.13.1
Compiling image-webp v0.2.1
Compiling async-io v2.4.0
Compiling blocking v1.6.1
Compiling humansize v2.1.3
Compiling idna v1.0.3
Compiling globwalk v0.9.1
Compiling unic-segment v0.9.0
Compiling pest_derive v2.7.15
Compiling hyper-util v0.1.10
Compiling tokio-native-tls v0.3.1
Compiling async-executor v1.13.1
Compiling http-body-util v0.1.2
Compiling sync_wrapper v1.0.2
Compiling heck v0.5.0
Compiling base64 v0.22.1
Compiling strsim v0.11.1
Compiling clap_lex v0.7.4
Compiling event-listener v2.5.3
Compiling pathdiff v0.2.3
Compiling tower-layer v0.3.3
Compiling lazy_static v1.5.0
Compiling rustls-pki-types v1.11.0
Compiling tower v0.5.2
Compiling rustls-pemfile v2.2.0
Compiling tera v1.20.0
Compiling ragit-fs v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/fs)
Compiling async-channel v1.9.0
Compiling clap_builder v4.5.27
Compiling clap_derive v4.5.28
Compiling hyper-tls v0.6.0
Compiling async-global-executor v2.4.1
Compiling url v2.5.4
Compiling image v0.25.5
Compiling serde_urlencoded v0.7.1
Compiling futures-executor v0.3.31
Compiling kv-log-macro v1.0.7
Compiling encoding_rs v0.8.35
Compiling ipnet v2.11.0
Compiling mime v0.3.17
Compiling reqwest v0.12.12
Compiling ragit-pdl v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/pdl)
Compiling async-std v1.13.0
Compiling futures v0.3.31
Compiling clap v4.5.28
Compiling ragit-api v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/api)
warning: unused variable: `json_path`
--> src/lib.rs:18:20
|
18 | pub fn load_models(json_path: &str) -> Result<Vec<Model>, Error> {
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_path`
|
= note: `#[warn(unused_variables)]` on by default
warning: fields `id`, `model`, `role`, `stop_reason`, and `type` are never read
--> src/response/anthropic.rs:7:5
|
6 | pub struct AnthropicResponse {
| ----------------- fields in this struct
7 | id: String,
| ^^
8 | model: String,
| ^^^^^
9 | content: Vec<AnthropicContent>,
10 | role: String,
| ^^^^
11 | stop_reason: String,
| ^^^^^^^^^^^
12 | r#type: String,
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: field `type` is never read
--> src/response/anthropic.rs:19:5
|
17 | struct AnthropicContent {
| ---------------- field in this struct
18 | text: String,
19 | r#type: String,
| ^^^^^^
warning: fields `id` and `finish_reason` are never read
--> src/response/cohere.rs:7:5
|
6 | pub struct CohereResponse {
| -------------- fields in this struct
7 | id: String,
| ^^
8 | finish_reason: String,
| ^^^^^^^^^^^^^
warning: field `role` is never read
--> src/response/cohere.rs:15:5
|
14 | struct CohereMessage {
| ------------- field in this struct
15 | role: String,
| ^^^^
warning: field `billed_units` is never read
--> src/response/cohere.rs:21:5
|
20 | struct CohereUsage {
| ----------- field in this struct
21 | billed_units: CohereTokens,
| ^^^^^^^^^^^^
warning: field `type` is never read
--> src/response/cohere.rs:27:5
|
26 | struct CohereContent {
| ------------- field in this struct
27 | r#type: String,
| ^^^^^^
warning: fields `id`, `object`, `created`, and `model` are never read
--> src/response/openai.rs:7:5
|
6 | pub struct OpenAiResponse {
| -------------- fields in this struct
7 | id: String,
| ^^
8 | object: String,
| ^^^^^^
9 | created: i64,
| ^^^^^^^
10 | model: String,
| ^^^^^
warning: fields `index` and `finish_reason` are never read
--> src/response/openai.rs:17:5
|
16 | struct OpenAiChoice {
| ------------ fields in this struct
17 | index: usize,
| ^^^^^
18 | message: OpenAiMessage,
19 | finish_reason: String,
| ^^^^^^^^^^^^^
warning: fields `prompt_time`, `completion_time`, and `total_time` are never read
--> src/response/openai.rs:30:5
|
23 | struct OpenAiUsage {
| ----------- fields in this struct
...
30 | prompt_time: f32,
| ^^^^^^^^^^^
31 | #[serde(skip)]
32 | completion_time: f32,
| ^^^^^^^^^^^^^^^
33 | #[serde(skip)]
34 | total_time: f32,
| ^^^^^^^^^^
warning: field `role` is never read
--> src/response/openai.rs:39:5
|
38 | struct OpenAiMessage {
| ------------- field in this struct
39 | role: String,
| ^^^^
error[E0277]: the trait bound `Model: TryFrom<ModelRaw>` is not satisfied
--> src/lib.rs:76:45
|
76 | model: ModelRaw::llama70b().try_into().unwrap(),
| ^^^^^^^^ the trait `From<ModelRaw>` is not implemented for `Model`, which is required by `ModelRaw: TryInto<_>`
|
= note: required for `ModelRaw` to implement `Into<Model>`
= note: required for `Model` to implement `TryFrom<ModelRaw>`
= note: required for `ModelRaw` to implement `TryInto<Model>`
warning: `ragit-api` (lib) generated 11 warnings
For more information about this error, try `rustc --explain E0277`.
warning: `ragit-api` (lib test) generated 1 warning (1 duplicate)
error: could not compile `ragit-api` (lib test) due to 1 previous error; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
error[E0599]: no function or associated item named `from_str` found for struct `Model` in the current scope
--> src/main.rs:67:35
|
67 | let model = ragit_api::Model::from_str(&args.model).unwrap();
| ^^^^^^^^ function or associated item not found in `Model`
|
note: if you're trying to build a new `Model`, consider using `Model::dummy` which returns `Model`
--> /home/ubuntu/Documents/ci/ragit/crates/api/src/model.rs:22:5
|
22 | pub fn dummy() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function `from` with a similar name
|
67 | let model = ragit_api::Model::from(&args.model).unwrap();
| ~~~~
warning: unused import: `std::str::FromStr`
--> src/main.rs:3:5
|
3 | use std::str::FromStr;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0599`.
warning: `ragit-api` (bin "ragit-api" test) generated 1 warning
error: could not compile `ragit-api` (bin "ragit-api" test) due to 1 previous error; 1 warning emitted
#####################
### path: command ###
/home/ubuntu/Documents/ci/ragit/crates/api: cargo test --release
### status_code ###
101
### stdout ###
### stderr ###
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.16
Compiling autocfg v1.4.0
Compiling cfg-if v1.0.0
Compiling libc v0.2.169
Compiling quote v1.0.38
Compiling syn v2.0.98
Compiling crossbeam-utils v0.8.21
Compiling memchr v2.7.4
Compiling pin-project-lite v0.2.16
Compiling futures-core v0.3.31
Compiling smallvec v1.13.2
Compiling once_cell v1.20.2
Compiling synstructure v0.13.1
Compiling slab v0.4.9
Compiling value-bag v1.10.0
Compiling futures-io v0.3.31
Compiling log v0.4.25
Compiling num-traits v0.2.19
Compiling zerofrom-derive v0.1.5
Compiling yoke-derive v0.7.5
Compiling zerofrom v0.1.5
Compiling bitflags v2.8.0
Compiling stable_deref_trait v1.2.0
Compiling zerovec-derive v0.10.3
Compiling yoke v0.7.5
Compiling crossbeam-epoch v0.9.18
Compiling lock_api v0.4.12
Compiling parking_lot_core v0.9.10
Compiling futures-sink v0.3.31
Compiling itoa v1.0.14
Compiling bytes v1.10.0
Compiling zerovec v0.10.4
Compiling crossbeam-deque v0.8.6
Compiling displaydoc v0.2.5
Compiling thiserror v2.0.11
Compiling shlex v1.3.0
Compiling scopeguard v1.2.0
Compiling cc v1.2.12
Compiling tracing-core v0.1.33
Compiling concurrent-queue v2.5.0
Compiling pkg-config v0.3.31
Compiling siphasher v1.0.1
Compiling vcpkg v0.2.15
Compiling pin-utils v0.1.0
Compiling parking v2.2.1
Compiling phf_shared v0.11.3
Compiling tracing v0.1.41
Compiling openssl-sys v0.9.105
Compiling parking_lot v0.12.3
Compiling tinystr v0.7.6
Compiling futures-channel v0.3.31
Compiling futures-macro v0.3.31
Compiling tokio-macros v2.5.0
Compiling thiserror-impl v2.0.11
Compiling mio v1.0.3
Compiling signal-hook-registry v1.4.2
Compiling socket2 v0.5.8
Compiling rand_core v0.6.4
Compiling regex-syntax v0.8.5
Compiling simd-adler32 v0.3.7
Compiling atomic-waker v1.1.2
Compiling writeable v0.5.5
Compiling rayon-core v1.12.1
Compiling futures-task v0.3.31
Compiling litemap v0.7.4
Compiling icu_locid v1.5.0
Compiling futures-util v0.3.31
Compiling regex-automata v0.4.9
Compiling rand v0.8.5
Compiling tokio v1.43.0
Compiling icu_provider_macros v1.5.0
Compiling fnv v1.0.7
Compiling http v1.2.0
Compiling icu_provider v1.5.0
Compiling regex v1.11.1
Compiling phf_generator v0.11.3
Compiling event-listener v5.4.0
Compiling num-integer v0.1.46
Compiling aho-corasick v1.1.3
Compiling fastrand v2.3.0
Compiling anyhow v1.0.95
Compiling adler2 v2.0.0
Compiling serde v1.0.217
Compiling icu_locid_transform_data v1.5.0
Compiling either v1.13.0
Compiling icu_locid_transform v1.5.0
Compiling miniz_oxide v0.8.3
Compiling num-bigint v0.4.6
Compiling event-listener-strategy v0.5.3
Compiling phf_codegen v0.11.3
Compiling parse-zoneinfo v0.3.1
Compiling phf v0.11.3
Compiling icu_collections v1.5.0
Compiling serde_derive v1.0.217
Compiling zerocopy-derive v0.7.35
Compiling minimal-lexical v0.2.1
Compiling httparse v1.10.0
Compiling equivalent v1.0.1
Compiling percent-encoding v2.3.1
Compiling ucd-trie v0.1.7
Compiling arrayvec v0.7.6
Compiling byteorder v1.5.0
Compiling aligned-vec v0.5.0
Compiling rustix v0.38.44
Compiling icu_properties_data v1.5.0
Compiling foreign-types-shared v0.1.1
Compiling paste v1.0.15
Compiling openssl v0.10.70
Compiling hashbrown v0.15.2
Compiling thiserror v1.0.69
Compiling built v0.7.5
Compiling indexmap v2.7.1
Compiling rav1e v0.7.1
Compiling pest v2.7.15
Compiling foreign-types v0.3.2
Compiling icu_properties v1.5.1
Compiling v_frame v0.3.8
Compiling zerocopy v0.7.35
Compiling nom v7.1.3
Compiling chrono-tz-build v0.3.0
Compiling num-rational v0.4.2
Compiling rayon v1.10.0
Compiling futures-lite v2.6.0
Compiling tokio-util v0.7.13
Compiling http-body v1.0.1
Compiling profiling-procmacros v1.0.16
Compiling openssl-macros v0.1.1
Compiling thiserror-impl v1.0.69
Compiling bstr v1.11.3
Compiling getrandom v0.2.15
Compiling crc32fast v1.4.2
Compiling icu_normalizer_data v1.5.0
Compiling unic-common v0.9.0
Compiling utf16_iter v1.0.5
Compiling utf8_iter v1.0.4
Compiling ryu v1.0.19
Compiling native-tls v0.2.13
Compiling iana-time-zone v0.1.61
Compiling try-lock v0.2.5
Compiling write16 v1.0.0
Compiling linux-raw-sys v0.4.15
Compiling same-file v1.0.6
Compiling libm v0.2.11
Compiling unic-char-range v0.9.0
Compiling unic-char-property v0.9.0
Compiling walkdir v2.5.0
Compiling pest_meta v2.7.15
Compiling icu_normalizer v1.5.0
Compiling want v0.3.1
Compiling chrono v0.4.39
Compiling unic-ucd-version v0.9.0
Compiling flate2 v1.0.35
Compiling globset v0.4.15
Compiling profiling v1.0.16
Compiling maybe-rayon v0.1.1
Compiling h2 v0.4.7
Compiling av1-grain v0.2.3
Compiling chrono-tz v0.9.0
Compiling ppv-lite86 v0.2.20
Compiling itertools v0.12.1
Compiling num-derive v0.4.2
Compiling arg_enum_proc_macro v0.3.4
Compiling simd_helpers v0.1.0
Compiling new_debug_unreachable v1.0.6
Compiling tower-service v0.3.3
Compiling noop_proc_macro v0.3.0
Compiling imgref v1.11.0
Compiling async-task v4.7.1
Compiling openssl-probe v0.1.6
Compiling weezl v0.1.8
Compiling bitstream-io v2.6.0
Compiling serde_json v1.0.138
Compiling quick-error v2.0.1
Compiling utf8parse v0.2.2
Compiling anstyle-parse v0.2.6
Compiling loop9 v0.1.5
Compiling rand_chacha v0.3.1
Compiling hyper v1.6.0
Compiling ignore v0.4.23
Compiling unic-ucd-segment v0.9.0
Compiling polling v3.7.4
Compiling idna_adapter v1.2.0
Compiling pest_generator v2.7.15
Compiling avif-serialize v0.8.2
Compiling form_urlencoded v1.2.1
Compiling async-channel v2.3.1
Compiling async-lock v3.4.0
Compiling piper v0.2.4
Compiling fdeflate v0.3.7
Compiling zune-inflate v0.2.54
Compiling half v2.4.1
Compiling color_quant v1.1.0
Compiling jpeg-decoder v0.3.1
Compiling anstyle v1.0.10
Compiling bytemuck v1.21.0
Compiling is_terminal_polyfill v1.70.1
Compiling anstyle-query v1.1.2
Compiling deunicode v1.6.0
Compiling colorchoice v1.0.3
Compiling byteorder-lite v0.1.0
Compiling bitflags v1.3.2
Compiling bit_field v0.10.2
Compiling zune-core v0.4.12
Compiling rgb v0.8.50
Compiling lebe v0.5.2
Compiling exr v1.73.0
Compiling ravif v0.11.11
Compiling zune-jpeg v0.4.14
Compiling png v0.17.16
Compiling image-webp v0.2.1
Compiling anstream v0.6.18
Compiling slug v0.1.6
Compiling tiff v0.9.1
Compiling qoi v0.4.1
Compiling gif v0.13.1
Compiling async-io v2.4.0
Compiling blocking v1.6.1
Compiling humansize v2.1.3
Compiling pest_derive v2.7.15
Compiling idna v1.0.3
Compiling unic-segment v0.9.0
Compiling globwalk v0.9.1
Compiling hyper-util v0.1.10
Compiling tokio-native-tls v0.3.1
Compiling async-executor v1.13.1
Compiling http-body-util v0.1.2
Compiling sync_wrapper v1.0.2
Compiling strsim v0.11.1
Compiling tower-layer v0.3.3
Compiling lazy_static v1.5.0
Compiling event-listener v2.5.3
Compiling clap_lex v0.7.4
Compiling base64 v0.22.1
Compiling pathdiff v0.2.3
Compiling heck v0.5.0
Compiling rustls-pki-types v1.11.0
Compiling clap_derive v4.5.28
Compiling rustls-pemfile v2.2.0
Compiling ragit-fs v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/fs)
Compiling clap_builder v4.5.27
Compiling async-channel v1.9.0
Compiling tera v1.20.0
Compiling tower v0.5.2
Compiling hyper-tls v0.6.0
Compiling async-global-executor v2.4.1
Compiling url v2.5.4
Compiling image v0.25.5
Compiling serde_urlencoded v0.7.1
Compiling futures-executor v0.3.31
Compiling kv-log-macro v1.0.7
Compiling encoding_rs v0.8.35
Compiling mime v0.3.17
Compiling ipnet v2.11.0
Compiling reqwest v0.12.12
Compiling async-std v1.13.0
Compiling futures v0.3.31
Compiling ragit-pdl v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/pdl)
Compiling clap v4.5.28
Compiling ragit-api v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/api)
warning: unused variable: `json_path`
--> src/lib.rs:18:20
|
18 | pub fn load_models(json_path: &str) -> Result<Vec<Model>, Error> {
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_path`
|
= note: `#[warn(unused_variables)]` on by default
warning: fields `id`, `model`, `role`, `stop_reason`, and `type` are never read
--> src/response/anthropic.rs:7:5
|
6 | pub struct AnthropicResponse {
| ----------------- fields in this struct
7 | id: String,
| ^^
8 | model: String,
| ^^^^^
9 | content: Vec<AnthropicContent>,
10 | role: String,
| ^^^^
11 | stop_reason: String,
| ^^^^^^^^^^^
12 | r#type: String,
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: field `type` is never read
--> src/response/anthropic.rs:19:5
|
17 | struct AnthropicContent {
| ---------------- field in this struct
18 | text: String,
19 | r#type: String,
| ^^^^^^
warning: fields `id` and `finish_reason` are never read
--> src/response/cohere.rs:7:5
|
6 | pub struct CohereResponse {
| -------------- fields in this struct
7 | id: String,
| ^^
8 | finish_reason: String,
| ^^^^^^^^^^^^^
warning: field `role` is never read
--> src/response/cohere.rs:15:5
|
14 | struct CohereMessage {
| ------------- field in this struct
15 | role: String,
| ^^^^
warning: field `billed_units` is never read
--> src/response/cohere.rs:21:5
|
20 | struct CohereUsage {
| ----------- field in this struct
21 | billed_units: CohereTokens,
| ^^^^^^^^^^^^
warning: field `type` is never read
--> src/response/cohere.rs:27:5
|
26 | struct CohereContent {
| ------------- field in this struct
27 | r#type: String,
| ^^^^^^
warning: fields `id`, `object`, `created`, and `model` are never read
--> src/response/openai.rs:7:5
|
6 | pub struct OpenAiResponse {
| -------------- fields in this struct
7 | id: String,
| ^^
8 | object: String,
| ^^^^^^
9 | created: i64,
| ^^^^^^^
10 | model: String,
| ^^^^^
warning: fields `index` and `finish_reason` are never read
--> src/response/openai.rs:17:5
|
16 | struct OpenAiChoice {
| ------------ fields in this struct
17 | index: usize,
| ^^^^^
18 | message: OpenAiMessage,
19 | finish_reason: String,
| ^^^^^^^^^^^^^
warning: fields `prompt_time`, `completion_time`, and `total_time` are never read
--> src/response/openai.rs:30:5
|
23 | struct OpenAiUsage {
| ----------- fields in this struct
...
30 | prompt_time: f32,
| ^^^^^^^^^^^
31 | #[serde(skip)]
32 | completion_time: f32,
| ^^^^^^^^^^^^^^^
33 | #[serde(skip)]
34 | total_time: f32,
| ^^^^^^^^^^
warning: field `role` is never read
--> src/response/openai.rs:39:5
|
38 | struct OpenAiMessage {
| ------------- field in this struct
39 | role: String,
| ^^^^
warning: `ragit-api` (lib) generated 11 warnings
error[E0599]: no function or associated item named `from_str` found for struct `Model` in the current scope
--> src/main.rs:67:35
|
67 | let model = ragit_api::Model::from_str(&args.model).unwrap();
| ^^^^^^^^ function or associated item not found in `Model`
|
note: if you're trying to build a new `Model`, consider using `Model::dummy` which returns `Model`
--> /home/ubuntu/Documents/ci/ragit/crates/api/src/model.rs:22:5
|
22 | pub fn dummy() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function `from` with a similar name
|
67 | let model = ragit_api::Model::from(&args.model).unwrap();
| ~~~~
warning: unused import: `std::str::FromStr`
--> src/main.rs:3:5
|
3 | use std::str::FromStr;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0599`.
warning: `ragit-api` (bin "ragit-api" test) generated 1 warning
error: could not compile `ragit-api` (bin "ragit-api" test) due to 1 previous error; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
error[E0277]: the trait bound `Model: TryFrom<ModelRaw>` is not satisfied
--> src/lib.rs:76:45
|
76 | model: ModelRaw::llama70b().try_into().unwrap(),
| ^^^^^^^^ the trait `From<ModelRaw>` is not implemented for `Model`, which is required by `ModelRaw: TryInto<_>`
|
= note: required for `ModelRaw` to implement `Into<Model>`
= note: required for `Model` to implement `TryFrom<ModelRaw>`
= note: required for `ModelRaw` to implement `TryInto<Model>`
For more information about this error, try `rustc --explain E0277`.
warning: `ragit-api` (lib test) generated 1 warning (1 duplicate)
error: could not compile `ragit-api` (lib test) due to 1 previous error; 1 warning emitted
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/api: cargo test
### status_code ###
101
### stdout ###
### stderr ###
Updating crates.io index
Locking 342 packages to latest compatible versions
Adding aligned-vec v0.5.0 (latest: v0.6.1)
Adding async-channel v1.9.0 (latest: v2.3.1)
Adding bitflags v1.3.2 (latest: v2.8.0)
Adding cfg-expr v0.15.8 (latest: v0.17.2)
Adding chrono-tz v0.9.0 (latest: v0.10.1)
Adding chrono-tz-build v0.3.0 (latest: v0.4.0)
Adding core-foundation v0.9.4 (latest: v0.10.0)
Adding event-listener v2.5.3 (latest: v5.4.0)
Adding foreign-types v0.3.2 (latest: v0.5.0)
Adding foreign-types-shared v0.1.1 (latest: v0.3.1)
Adding generic-array v0.14.7 (latest: v1.2.0)
Adding getrandom v0.2.15 (latest: v0.3.1)
Adding itertools v0.12.1 (latest: v0.14.0)
Adding linux-raw-sys v0.4.15 (latest: v0.7.0)
Adding nom v7.1.3 (latest: v8.0.0)
Adding rand v0.8.5 (latest: v0.9.0)
Adding rand_chacha v0.3.1 (latest: v0.9.0)
Adding rand_core v0.6.4 (latest: v0.9.0)
Adding security-framework v2.11.1 (latest: v3.2.0)
Adding system-deps v6.2.2 (latest: v7.0.3)
Adding target-lexicon v0.12.16 (latest: v0.13.1)
Adding thiserror v1.0.69 (latest: v2.0.11)
Adding thiserror-impl v1.0.69 (latest: v2.0.11)
Adding tinystr v0.7.6 (latest: v0.8.0)
Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.14.0+wasi-0.2.3)
Adding wasi v0.13.3+wasi-0.2.2 (latest: v0.14.0+wasi-0.2.3)
Adding windows-core v0.52.0 (latest: v0.59.0)
Adding windows-registry v0.2.0 (latest: v0.4.0)
Adding windows-result v0.2.0 (latest: v0.3.0)
Adding windows-strings v0.1.0 (latest: v0.3.0)
Adding windows-sys 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)
Adding wit-bindgen-rt v0.33.0 (latest: v0.39.0)
Adding writeable v0.5.5 (latest: v0.6.0)
Adding zerocopy v0.7.35 (latest: v0.8.16)
Adding zerocopy-derive v0.7.35 (latest: v0.8.16)
Adding zerovec v0.10.4 (latest: v0.11.0)
Adding zerovec-derive v0.10.3 (latest: v0.11.0)
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.16
Compiling autocfg v1.4.0
Compiling cfg-if v1.0.0
Compiling memchr v2.7.4
Compiling quote v1.0.38
Compiling syn v2.0.98
Compiling libc v0.2.169
Compiling crossbeam-utils v0.8.21
Compiling pin-project-lite v0.2.16
Compiling once_cell v1.20.2
Compiling futures-core v0.3.31
Compiling smallvec v1.13.2
Compiling slab v0.4.9
Compiling futures-io v0.3.31
Compiling value-bag v1.10.0
Compiling log v0.4.25
Compiling num-traits v0.2.19
Compiling synstructure v0.13.1
Compiling bitflags v2.8.0
Compiling stable_deref_trait v1.2.0
Compiling crossbeam-epoch v0.9.18
Compiling lock_api v0.4.12
Compiling zerofrom-derive v0.1.5
Compiling yoke-derive v0.7.5
Compiling zerovec-derive v0.10.3
Compiling zerofrom v0.1.5
Compiling yoke v0.7.5
Compiling parking_lot_core v0.9.10
Compiling itoa v1.0.14
Compiling futures-sink v0.3.31
Compiling bytes v1.10.0
Compiling siphasher v1.0.1
Compiling zerovec v0.10.4
Compiling displaydoc v0.2.5
Compiling crossbeam-deque v0.8.6
Compiling shlex v1.3.0
Compiling scopeguard v1.2.0
Compiling cc v1.2.12
Compiling tracing-core v0.1.33
Compiling concurrent-queue v2.5.0
Compiling parking v2.2.1
Compiling pkg-config v0.3.31
Compiling pin-utils v0.1.0
Compiling vcpkg v0.2.15
Compiling tracing v0.1.41
Compiling parking_lot v0.12.3
Compiling openssl-sys v0.9.105
Compiling tinystr v0.7.6
Compiling phf_shared v0.11.3
Compiling futures-channel v0.3.31
Compiling futures-macro v0.3.31
Compiling tokio-macros v2.5.0
Compiling mio v1.0.3
Compiling socket2 v0.5.8
Compiling signal-hook-registry v1.4.2
Compiling rayon-core v1.12.1
Compiling simd-adler32 v0.3.7
Compiling rand_core v0.6.4
Compiling atomic-waker v1.1.2
Compiling regex-syntax v0.8.5
Compiling litemap v0.7.4
Compiling futures-task v0.3.31
Compiling writeable v0.5.5
Compiling icu_locid v1.5.0
Compiling regex-automata v0.4.9
Compiling futures-util v0.3.31
Compiling rand v0.8.5
Compiling tokio v1.43.0
Compiling icu_provider_macros v1.5.0
Compiling thiserror v2.0.11
Compiling fnv v1.0.7
Compiling http v1.2.0
Compiling icu_provider v1.5.0
Compiling phf_generator v0.11.3
Compiling regex v1.11.1
Compiling event-listener v5.4.0
Compiling thiserror-impl v2.0.11
Compiling num-integer v0.1.46
Compiling aho-corasick v1.1.3
Compiling anyhow v1.0.95
Compiling adler2 v2.0.0
Compiling icu_locid_transform_data v1.5.0
Compiling fastrand v2.3.0
Compiling either v1.13.0
Compiling serde v1.0.217
Compiling icu_locid_transform v1.5.0
Compiling miniz_oxide v0.8.3
Compiling num-bigint v0.4.6
Compiling event-listener-strategy v0.5.3
Compiling parse-zoneinfo v0.3.1
Compiling phf_codegen v0.11.3
Compiling phf v0.11.3
Compiling icu_collections v1.5.0
Compiling serde_derive v1.0.217
Compiling zerocopy-derive v0.7.35
Compiling openssl v0.10.70
Compiling ucd-trie v0.1.7
Compiling minimal-lexical v0.2.1
Compiling httparse v1.10.0
Compiling icu_properties_data v1.5.0
Compiling arrayvec v0.7.6
Compiling hashbrown v0.15.2
Compiling thiserror v1.0.69
Compiling rustix v0.38.44
Compiling foreign-types-shared v0.1.1
Compiling byteorder v1.5.0
Compiling percent-encoding v2.3.1
Compiling built v0.7.5
Compiling paste v1.0.15
Compiling equivalent v1.0.1
Compiling aligned-vec v0.5.0
Compiling rav1e v0.7.1
Compiling v_frame v0.3.8
Compiling indexmap v2.7.1
Compiling zerocopy v0.7.35
Compiling foreign-types v0.3.2
Compiling icu_properties v1.5.1
Compiling nom v7.1.3
Compiling pest v2.7.15
Compiling chrono-tz-build v0.3.0
Compiling num-rational v0.4.2
Compiling rayon v1.10.0
Compiling futures-lite v2.6.0
Compiling tokio-util v0.7.13
Compiling http-body v1.0.1
Compiling openssl-macros v0.1.1
Compiling profiling-procmacros v1.0.16
Compiling thiserror-impl v1.0.69
Compiling getrandom v0.2.15
Compiling bstr v1.11.3
Compiling crc32fast v1.4.2
Compiling iana-time-zone v0.1.61
Compiling utf16_iter v1.0.5
Compiling unic-char-range v0.9.0
Compiling utf8_iter v1.0.4
Compiling same-file v1.0.6
Compiling icu_normalizer_data v1.5.0
Compiling unic-common v0.9.0
Compiling write16 v1.0.0
Compiling linux-raw-sys v0.4.15
Compiling libm v0.2.11
Compiling try-lock v0.2.5
Compiling native-tls v0.2.13
Compiling ryu v1.0.19
Compiling want v0.3.1
Compiling unic-ucd-version v0.9.0
Compiling icu_normalizer v1.5.0
Compiling walkdir v2.5.0
Compiling unic-char-property v0.9.0
Compiling chrono v0.4.39
Compiling flate2 v1.0.35
Compiling globset v0.4.15
Compiling profiling v1.0.16
Compiling maybe-rayon v0.1.1
Compiling h2 v0.4.7
Compiling av1-grain v0.2.3
Compiling chrono-tz v0.9.0
Compiling pest_meta v2.7.15
Compiling ppv-lite86 v0.2.20
Compiling itertools v0.12.1
Compiling num-derive v0.4.2
Compiling arg_enum_proc_macro v0.3.4
Compiling simd_helpers v0.1.0
Compiling bitstream-io v2.6.0
Compiling openssl-probe v0.1.6
Compiling quick-error v2.0.1
Compiling async-task v4.7.1
Compiling serde_json v1.0.138
Compiling noop_proc_macro v0.3.0
Compiling imgref v1.11.0
Compiling utf8parse v0.2.2
Compiling new_debug_unreachable v1.0.6
Compiling tower-service v0.3.3
Compiling weezl v0.1.8
Compiling anstyle-parse v0.2.6
Compiling loop9 v0.1.5
Compiling rand_chacha v0.3.1
Compiling hyper v1.6.0
Compiling pest_generator v2.7.15
Compiling polling v3.7.4
Compiling ignore v0.4.23
Compiling unic-ucd-segment v0.9.0
Compiling idna_adapter v1.2.0
Compiling form_urlencoded v1.2.1
Compiling avif-serialize v0.8.2
Compiling async-lock v3.4.0
Compiling async-channel v2.3.1
Compiling piper v0.2.4
Compiling zune-inflate v0.2.54
Compiling fdeflate v0.3.7
Compiling half v2.4.1
Compiling byteorder-lite v0.1.0
Compiling rgb v0.8.50
Compiling color_quant v1.1.0
Compiling anstyle v1.0.10
Compiling is_terminal_polyfill v1.70.1
Compiling jpeg-decoder v0.3.1
Compiling bit_field v0.10.2
Compiling bitflags v1.3.2
Compiling zune-core v0.4.12
Compiling lebe v0.5.2
Compiling bytemuck v1.21.0
Compiling colorchoice v1.0.3
Compiling deunicode v1.6.0
Compiling anstyle-query v1.1.2
Compiling anstream v0.6.18
Compiling slug v0.1.6
Compiling qoi v0.4.1
Compiling exr v1.73.0
Compiling tiff v0.9.1
Compiling zune-jpeg v0.4.14
Compiling png v0.17.16
Compiling ravif v0.11.11
Compiling gif v0.13.1
Compiling image-webp v0.2.1
Compiling async-io v2.4.0
Compiling blocking v1.6.1
Compiling humansize v2.1.3
Compiling idna v1.0.3
Compiling globwalk v0.9.1
Compiling unic-segment v0.9.0
Compiling pest_derive v2.7.15
Compiling hyper-util v0.1.10
Compiling tokio-native-tls v0.3.1
Compiling async-executor v1.13.1
Compiling http-body-util v0.1.2
Compiling sync_wrapper v1.0.2
Compiling heck v0.5.0
Compiling base64 v0.22.1
Compiling strsim v0.11.1
Compiling clap_lex v0.7.4
Compiling event-listener v2.5.3
Compiling pathdiff v0.2.3
Compiling tower-layer v0.3.3
Compiling lazy_static v1.5.0
Compiling rustls-pki-types v1.11.0
Compiling tower v0.5.2
Compiling rustls-pemfile v2.2.0
Compiling tera v1.20.0
Compiling ragit-fs v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/fs)
Compiling async-channel v1.9.0
Compiling clap_builder v4.5.27
Compiling clap_derive v4.5.28
Compiling hyper-tls v0.6.0
Compiling async-global-executor v2.4.1
Compiling url v2.5.4
Compiling image v0.25.5
Compiling serde_urlencoded v0.7.1
Compiling futures-executor v0.3.31
Compiling kv-log-macro v1.0.7
Compiling encoding_rs v0.8.35
Compiling ipnet v2.11.0
Compiling mime v0.3.17
Compiling reqwest v0.12.12
Compiling ragit-pdl v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/pdl)
Compiling async-std v1.13.0
Compiling futures v0.3.31
Compiling clap v4.5.28
Compiling ragit-api v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/api)
warning: unused variable: `json_path`
--> src/lib.rs:18:20
|
18 | pub fn load_models(json_path: &str) -> Result<Vec<Model>, Error> {
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_path`
|
= note: `#[warn(unused_variables)]` on by default
warning: fields `id`, `model`, `role`, `stop_reason`, and `type` are never read
--> src/response/anthropic.rs:7:5
|
6 | pub struct AnthropicResponse {
| ----------------- fields in this struct
7 | id: String,
| ^^
8 | model: String,
| ^^^^^
9 | content: Vec<AnthropicContent>,
10 | role: String,
| ^^^^
11 | stop_reason: String,
| ^^^^^^^^^^^
12 | r#type: String,
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: field `type` is never read
--> src/response/anthropic.rs:19:5
|
17 | struct AnthropicContent {
| ---------------- field in this struct
18 | text: String,
19 | r#type: String,
| ^^^^^^
warning: fields `id` and `finish_reason` are never read
--> src/response/cohere.rs:7:5
|
6 | pub struct CohereResponse {
| -------------- fields in this struct
7 | id: String,
| ^^
8 | finish_reason: String,
| ^^^^^^^^^^^^^
warning: field `role` is never read
--> src/response/cohere.rs:15:5
|
14 | struct CohereMessage {
| ------------- field in this struct
15 | role: String,
| ^^^^
warning: field `billed_units` is never read
--> src/response/cohere.rs:21:5
|
20 | struct CohereUsage {
| ----------- field in this struct
21 | billed_units: CohereTokens,
| ^^^^^^^^^^^^
warning: field `type` is never read
--> src/response/cohere.rs:27:5
|
26 | struct CohereContent {
| ------------- field in this struct
27 | r#type: String,
| ^^^^^^
warning: fields `id`, `object`, `created`, and `model` are never read
--> src/response/openai.rs:7:5
|
6 | pub struct OpenAiResponse {
| -------------- fields in this struct
7 | id: String,
| ^^
8 | object: String,
| ^^^^^^
9 | created: i64,
| ^^^^^^^
10 | model: String,
| ^^^^^
warning: fields `index` and `finish_reason` are never read
--> src/response/openai.rs:17:5
|
16 | struct OpenAiChoice {
| ------------ fields in this struct
17 | index: usize,
| ^^^^^
18 | message: OpenAiMessage,
19 | finish_reason: String,
| ^^^^^^^^^^^^^
warning: fields `prompt_time`, `completion_time`, and `total_time` are never read
--> src/response/openai.rs:30:5
|
23 | struct OpenAiUsage {
| ----------- fields in this struct
...
30 | prompt_time: f32,
| ^^^^^^^^^^^
31 | #[serde(skip)]
32 | completion_time: f32,
| ^^^^^^^^^^^^^^^
33 | #[serde(skip)]
34 | total_time: f32,
| ^^^^^^^^^^
warning: field `role` is never read
--> src/response/openai.rs:39:5
|
38 | struct OpenAiMessage {
| ------------- field in this struct
39 | role: String,
| ^^^^
error[E0277]: the trait bound `Model: TryFrom<ModelRaw>` is not satisfied
--> src/lib.rs:76:45
|
76 | model: ModelRaw::llama70b().try_into().unwrap(),
| ^^^^^^^^ the trait `From<ModelRaw>` is not implemented for `Model`, which is required by `ModelRaw: TryInto<_>`
|
= note: required for `ModelRaw` to implement `Into<Model>`
= note: required for `Model` to implement `TryFrom<ModelRaw>`
= note: required for `ModelRaw` to implement `TryInto<Model>`
warning: `ragit-api` (lib) generated 11 warnings
For more information about this error, try `rustc --explain E0277`.
warning: `ragit-api` (lib test) generated 1 warning (1 duplicate)
error: could not compile `ragit-api` (lib test) due to 1 previous error; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
error[E0599]: no function or associated item named `from_str` found for struct `Model` in the current scope
--> src/main.rs:67:35
|
67 | let model = ragit_api::Model::from_str(&args.model).unwrap();
| ^^^^^^^^ function or associated item not found in `Model`
|
note: if you're trying to build a new `Model`, consider using `Model::dummy` which returns `Model`
--> /home/ubuntu/Documents/ci/ragit/crates/api/src/model.rs:22:5
|
22 | pub fn dummy() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function `from` with a similar name
|
67 | let model = ragit_api::Model::from(&args.model).unwrap();
| ~~~~
warning: unused import: `std::str::FromStr`
--> src/main.rs:3:5
|
3 | use std::str::FromStr;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0599`.
warning: `ragit-api` (bin "ragit-api" test) generated 1 warning
error: could not compile `ragit-api` (bin "ragit-api" test) due to 1 previous error; 1 warning emitted
#####################
### path: command ###
/home/ubuntu/Documents/ci/ragit/crates/api: cargo test --release
### status_code ###
101
### stdout ###
### stderr ###
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.16
Compiling autocfg v1.4.0
Compiling cfg-if v1.0.0
Compiling libc v0.2.169
Compiling quote v1.0.38
Compiling syn v2.0.98
Compiling crossbeam-utils v0.8.21
Compiling memchr v2.7.4
Compiling pin-project-lite v0.2.16
Compiling futures-core v0.3.31
Compiling smallvec v1.13.2
Compiling once_cell v1.20.2
Compiling synstructure v0.13.1
Compiling slab v0.4.9
Compiling value-bag v1.10.0
Compiling futures-io v0.3.31
Compiling log v0.4.25
Compiling num-traits v0.2.19
Compiling zerofrom-derive v0.1.5
Compiling yoke-derive v0.7.5
Compiling zerofrom v0.1.5
Compiling bitflags v2.8.0
Compiling stable_deref_trait v1.2.0
Compiling zerovec-derive v0.10.3
Compiling yoke v0.7.5
Compiling crossbeam-epoch v0.9.18
Compiling lock_api v0.4.12
Compiling parking_lot_core v0.9.10
Compiling futures-sink v0.3.31
Compiling itoa v1.0.14
Compiling bytes v1.10.0
Compiling zerovec v0.10.4
Compiling crossbeam-deque v0.8.6
Compiling displaydoc v0.2.5
Compiling thiserror v2.0.11
Compiling shlex v1.3.0
Compiling scopeguard v1.2.0
Compiling cc v1.2.12
Compiling tracing-core v0.1.33
Compiling concurrent-queue v2.5.0
Compiling pkg-config v0.3.31
Compiling siphasher v1.0.1
Compiling vcpkg v0.2.15
Compiling pin-utils v0.1.0
Compiling parking v2.2.1
Compiling phf_shared v0.11.3
Compiling tracing v0.1.41
Compiling openssl-sys v0.9.105
Compiling parking_lot v0.12.3
Compiling tinystr v0.7.6
Compiling futures-channel v0.3.31
Compiling futures-macro v0.3.31
Compiling tokio-macros v2.5.0
Compiling thiserror-impl v2.0.11
Compiling mio v1.0.3
Compiling signal-hook-registry v1.4.2
Compiling socket2 v0.5.8
Compiling rand_core v0.6.4
Compiling regex-syntax v0.8.5
Compiling simd-adler32 v0.3.7
Compiling atomic-waker v1.1.2
Compiling writeable v0.5.5
Compiling rayon-core v1.12.1
Compiling futures-task v0.3.31
Compiling litemap v0.7.4
Compiling icu_locid v1.5.0
Compiling futures-util v0.3.31
Compiling regex-automata v0.4.9
Compiling rand v0.8.5
Compiling tokio v1.43.0
Compiling icu_provider_macros v1.5.0
Compiling fnv v1.0.7
Compiling http v1.2.0
Compiling icu_provider v1.5.0
Compiling regex v1.11.1
Compiling phf_generator v0.11.3
Compiling event-listener v5.4.0
Compiling num-integer v0.1.46
Compiling aho-corasick v1.1.3
Compiling fastrand v2.3.0
Compiling anyhow v1.0.95
Compiling adler2 v2.0.0
Compiling serde v1.0.217
Compiling icu_locid_transform_data v1.5.0
Compiling either v1.13.0
Compiling icu_locid_transform v1.5.0
Compiling miniz_oxide v0.8.3
Compiling num-bigint v0.4.6
Compiling event-listener-strategy v0.5.3
Compiling phf_codegen v0.11.3
Compiling parse-zoneinfo v0.3.1
Compiling phf v0.11.3
Compiling icu_collections v1.5.0
Compiling serde_derive v1.0.217
Compiling zerocopy-derive v0.7.35
Compiling minimal-lexical v0.2.1
Compiling httparse v1.10.0
Compiling equivalent v1.0.1
Compiling percent-encoding v2.3.1
Compiling ucd-trie v0.1.7
Compiling arrayvec v0.7.6
Compiling byteorder v1.5.0
Compiling aligned-vec v0.5.0
Compiling rustix v0.38.44
Compiling icu_properties_data v1.5.0
Compiling foreign-types-shared v0.1.1
Compiling paste v1.0.15
Compiling openssl v0.10.70
Compiling hashbrown v0.15.2
Compiling thiserror v1.0.69
Compiling built v0.7.5
Compiling indexmap v2.7.1
Compiling rav1e v0.7.1
Compiling pest v2.7.15
Compiling foreign-types v0.3.2
Compiling icu_properties v1.5.1
Compiling v_frame v0.3.8
Compiling zerocopy v0.7.35
Compiling nom v7.1.3
Compiling chrono-tz-build v0.3.0
Compiling num-rational v0.4.2
Compiling rayon v1.10.0
Compiling futures-lite v2.6.0
Compiling tokio-util v0.7.13
Compiling http-body v1.0.1
Compiling profiling-procmacros v1.0.16
Compiling openssl-macros v0.1.1
Compiling thiserror-impl v1.0.69
Compiling bstr v1.11.3
Compiling getrandom v0.2.15
Compiling crc32fast v1.4.2
Compiling icu_normalizer_data v1.5.0
Compiling unic-common v0.9.0
Compiling utf16_iter v1.0.5
Compiling utf8_iter v1.0.4
Compiling ryu v1.0.19
Compiling native-tls v0.2.13
Compiling iana-time-zone v0.1.61
Compiling try-lock v0.2.5
Compiling write16 v1.0.0
Compiling linux-raw-sys v0.4.15
Compiling same-file v1.0.6
Compiling libm v0.2.11
Compiling unic-char-range v0.9.0
Compiling unic-char-property v0.9.0
Compiling walkdir v2.5.0
Compiling pest_meta v2.7.15
Compiling icu_normalizer v1.5.0
Compiling want v0.3.1
Compiling chrono v0.4.39
Compiling unic-ucd-version v0.9.0
Compiling flate2 v1.0.35
Compiling globset v0.4.15
Compiling profiling v1.0.16
Compiling maybe-rayon v0.1.1
Compiling h2 v0.4.7
Compiling av1-grain v0.2.3
Compiling chrono-tz v0.9.0
Compiling ppv-lite86 v0.2.20
Compiling itertools v0.12.1
Compiling num-derive v0.4.2
Compiling arg_enum_proc_macro v0.3.4
Compiling simd_helpers v0.1.0
Compiling new_debug_unreachable v1.0.6
Compiling tower-service v0.3.3
Compiling noop_proc_macro v0.3.0
Compiling imgref v1.11.0
Compiling async-task v4.7.1
Compiling openssl-probe v0.1.6
Compiling weezl v0.1.8
Compiling bitstream-io v2.6.0
Compiling serde_json v1.0.138
Compiling quick-error v2.0.1
Compiling utf8parse v0.2.2
Compiling anstyle-parse v0.2.6
Compiling loop9 v0.1.5
Compiling rand_chacha v0.3.1
Compiling hyper v1.6.0
Compiling ignore v0.4.23
Compiling unic-ucd-segment v0.9.0
Compiling polling v3.7.4
Compiling idna_adapter v1.2.0
Compiling pest_generator v2.7.15
Compiling avif-serialize v0.8.2
Compiling form_urlencoded v1.2.1
Compiling async-channel v2.3.1
Compiling async-lock v3.4.0
Compiling piper v0.2.4
Compiling fdeflate v0.3.7
Compiling zune-inflate v0.2.54
Compiling half v2.4.1
Compiling color_quant v1.1.0
Compiling jpeg-decoder v0.3.1
Compiling anstyle v1.0.10
Compiling bytemuck v1.21.0
Compiling is_terminal_polyfill v1.70.1
Compiling anstyle-query v1.1.2
Compiling deunicode v1.6.0
Compiling colorchoice v1.0.3
Compiling byteorder-lite v0.1.0
Compiling bitflags v1.3.2
Compiling bit_field v0.10.2
Compiling zune-core v0.4.12
Compiling rgb v0.8.50
Compiling lebe v0.5.2
Compiling exr v1.73.0
Compiling ravif v0.11.11
Compiling zune-jpeg v0.4.14
Compiling png v0.17.16
Compiling image-webp v0.2.1
Compiling anstream v0.6.18
Compiling slug v0.1.6
Compiling tiff v0.9.1
Compiling qoi v0.4.1
Compiling gif v0.13.1
Compiling async-io v2.4.0
Compiling blocking v1.6.1
Compiling humansize v2.1.3
Compiling pest_derive v2.7.15
Compiling idna v1.0.3
Compiling unic-segment v0.9.0
Compiling globwalk v0.9.1
Compiling hyper-util v0.1.10
Compiling tokio-native-tls v0.3.1
Compiling async-executor v1.13.1
Compiling http-body-util v0.1.2
Compiling sync_wrapper v1.0.2
Compiling strsim v0.11.1
Compiling tower-layer v0.3.3
Compiling lazy_static v1.5.0
Compiling event-listener v2.5.3
Compiling clap_lex v0.7.4
Compiling base64 v0.22.1
Compiling pathdiff v0.2.3
Compiling heck v0.5.0
Compiling rustls-pki-types v1.11.0
Compiling clap_derive v4.5.28
Compiling rustls-pemfile v2.2.0
Compiling ragit-fs v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/fs)
Compiling clap_builder v4.5.27
Compiling async-channel v1.9.0
Compiling tera v1.20.0
Compiling tower v0.5.2
Compiling hyper-tls v0.6.0
Compiling async-global-executor v2.4.1
Compiling url v2.5.4
Compiling image v0.25.5
Compiling serde_urlencoded v0.7.1
Compiling futures-executor v0.3.31
Compiling kv-log-macro v1.0.7
Compiling encoding_rs v0.8.35
Compiling mime v0.3.17
Compiling ipnet v2.11.0
Compiling reqwest v0.12.12
Compiling async-std v1.13.0
Compiling futures v0.3.31
Compiling ragit-pdl v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/pdl)
Compiling clap v4.5.28
Compiling ragit-api v0.3.0 (/home/ubuntu/Documents/ci/ragit/crates/api)
warning: unused variable: `json_path`
--> src/lib.rs:18:20
|
18 | pub fn load_models(json_path: &str) -> Result<Vec<Model>, Error> {
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_path`
|
= note: `#[warn(unused_variables)]` on by default
warning: fields `id`, `model`, `role`, `stop_reason`, and `type` are never read
--> src/response/anthropic.rs:7:5
|
6 | pub struct AnthropicResponse {
| ----------------- fields in this struct
7 | id: String,
| ^^
8 | model: String,
| ^^^^^
9 | content: Vec<AnthropicContent>,
10 | role: String,
| ^^^^
11 | stop_reason: String,
| ^^^^^^^^^^^
12 | r#type: String,
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: field `type` is never read
--> src/response/anthropic.rs:19:5
|
17 | struct AnthropicContent {
| ---------------- field in this struct
18 | text: String,
19 | r#type: String,
| ^^^^^^
warning: fields `id` and `finish_reason` are never read
--> src/response/cohere.rs:7:5
|
6 | pub struct CohereResponse {
| -------------- fields in this struct
7 | id: String,
| ^^
8 | finish_reason: String,
| ^^^^^^^^^^^^^
warning: field `role` is never read
--> src/response/cohere.rs:15:5
|
14 | struct CohereMessage {
| ------------- field in this struct
15 | role: String,
| ^^^^
warning: field `billed_units` is never read
--> src/response/cohere.rs:21:5
|
20 | struct CohereUsage {
| ----------- field in this struct
21 | billed_units: CohereTokens,
| ^^^^^^^^^^^^
warning: field `type` is never read
--> src/response/cohere.rs:27:5
|
26 | struct CohereContent {
| ------------- field in this struct
27 | r#type: String,
| ^^^^^^
warning: fields `id`, `object`, `created`, and `model` are never read
--> src/response/openai.rs:7:5
|
6 | pub struct OpenAiResponse {
| -------------- fields in this struct
7 | id: String,
| ^^
8 | object: String,
| ^^^^^^
9 | created: i64,
| ^^^^^^^
10 | model: String,
| ^^^^^
warning: fields `index` and `finish_reason` are never read
--> src/response/openai.rs:17:5
|
16 | struct OpenAiChoice {
| ------------ fields in this struct
17 | index: usize,
| ^^^^^
18 | message: OpenAiMessage,
19 | finish_reason: String,
| ^^^^^^^^^^^^^
warning: fields `prompt_time`, `completion_time`, and `total_time` are never read
--> src/response/openai.rs:30:5
|
23 | struct OpenAiUsage {
| ----------- fields in this struct
...
30 | prompt_time: f32,
| ^^^^^^^^^^^
31 | #[serde(skip)]
32 | completion_time: f32,
| ^^^^^^^^^^^^^^^
33 | #[serde(skip)]
34 | total_time: f32,
| ^^^^^^^^^^
warning: field `role` is never read
--> src/response/openai.rs:39:5
|
38 | struct OpenAiMessage {
| ------------- field in this struct
39 | role: String,
| ^^^^
warning: `ragit-api` (lib) generated 11 warnings
error[E0599]: no function or associated item named `from_str` found for struct `Model` in the current scope
--> src/main.rs:67:35
|
67 | let model = ragit_api::Model::from_str(&args.model).unwrap();
| ^^^^^^^^ function or associated item not found in `Model`
|
note: if you're trying to build a new `Model`, consider using `Model::dummy` which returns `Model`
--> /home/ubuntu/Documents/ci/ragit/crates/api/src/model.rs:22:5
|
22 | pub fn dummy() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function `from` with a similar name
|
67 | let model = ragit_api::Model::from(&args.model).unwrap();
| ~~~~
warning: unused import: `std::str::FromStr`
--> src/main.rs:3:5
|
3 | use std::str::FromStr;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0599`.
warning: `ragit-api` (bin "ragit-api" test) generated 1 warning
error: could not compile `ragit-api` (bin "ragit-api" test) due to 1 previous error; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
error[E0277]: the trait bound `Model: TryFrom<ModelRaw>` is not satisfied
--> src/lib.rs:76:45
|
76 | model: ModelRaw::llama70b().try_into().unwrap(),
| ^^^^^^^^ the trait `From<ModelRaw>` is not implemented for `Model`, which is required by `ModelRaw: TryInto<_>`
|
= note: required for `ModelRaw` to implement `Into<Model>`
= note: required for `Model` to implement `TryFrom<ModelRaw>`
= note: required for `ModelRaw` to implement `TryInto<Model>`
For more information about this error, try `rustc --explain E0277`.
warning: `ragit-api` (lib test) generated 1 warning (1 duplicate)
error: could not compile `ragit-api` (lib test) due to 1 previous error; 1 warning emitted
elapsed time: 2,649 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/add_and_rm.py", line 79, in add_and_rm
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 2,812 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/recover.py", line 27, in recover
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 1,719 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/clone.py", line 26, in clone
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 388,006 ms
elapsed time: 7,352 ms
elapsed time: 6,614 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/many_chunks.py", line 41, in many_chunks
cargo_run(["build"], timeout=5.0)
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 5,106 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/ls.py", line 58, in ls
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 5,350 ms
elapsed time: 2,795 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/ii.py", line 34, in ii
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 8,385 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/cat_file.py", line 36, in cat_file
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 2,943 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/images.py", line 56, in images
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 2,167 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/markdown_reader.py", line 99, in markdown_reader
cargo_run(["build"], timeout=20.0)
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 1,798 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/csv_reader.py", line 32, in csv_reader
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 1,479 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/subdir.py", line 20, in subdir
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 2,131 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/tfidf.py", line 20, in tfidf
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 3,872 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/merge.py", line 34, in merge
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 8,088 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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/external_bases.py", line 46, in external_bases
cargo_run(["build"], timeout=1.0)
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 1,442 ms
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 22, in end_to_end
assert cargo_run(["config", "--set", "model", "invalid-model-name"], check=False) != 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
elapsed time: 1,386 ms
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 289, in <lambda>
("end_to_end gpt-4o-mini", lambda: end_to_end(test_model="gpt-4o-mini")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/end_to_end.py", line 22, in end_to_end
assert cargo_run(["config", "--set", "model", "invalid-model-name"], check=False) != 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
elapsed time: 3,173 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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 290, in <lambda>
("prompts dummy", lambda: prompts(test_model="dummy")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/prompts.py", line 34, in prompts
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 3,148 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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 291, in <lambda>
("prompts gpt-4o-mini", lambda: prompts(test_model="gpt-4o-mini")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/prompts.py", line 34, in prompts
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 3,134 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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 292, in <lambda>
("prompts claude-3.5-sonnet", lambda: prompts(test_model="claude-3.5-sonnet")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/prompts.py", line 34, in prompts
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 1,493 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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 293, in <lambda>
("empty dummy", lambda: empty(test_model="dummy")),
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/empty.py", line 10, in empty
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 1,495 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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 294, in <lambda>
("empty gpt-4o-mini", lambda: empty(test_model="gpt-4o-mini")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/empty.py", line 10, in empty
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 2,491 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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 295, in <lambda>
("images2 gpt-4o-mini", lambda: images2(test_model="gpt-4o-mini")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/images2.py", line 30, in images2
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 2,496 ms
Command '['cargo', 'run', '--release', '--', 'build']' 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 298, in <lambda>
("images2 claude-3.5-sonnet", lambda: images2(test_model="claude-3.5-sonnet")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/Documents/ci/ragit/tests/images2.py", line 30, in images2
cargo_run(["build"])
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', '--', 'build']' returned non-zero exit status 101.
elapsed time: 1,972 ms
Command '['cargo', 'run', '--release', '--', '--model', 'llama3.2-11b-groq', '--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 301, in <lambda>
("ragit_api llama3.2-11b-groq", lambda: ragit_api(test_model="llama3.2-11b-groq")),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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', 'llama3.2-11b-groq', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
elapsed time: 539 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: 539 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: 497,524 ms