mirror of
https://github.com/storytold/craft-ai-integrations.git
synced 2026-11-22 04:10:43 +01:00
fix(ai-comfy-env): refuse a node pack archive with folders that differ only in case (#3)
The archive reader refused two file names that differ only in case but not two folder names, so an archive holding Dir/a.py and dir/b.py made two folders on a case-sensitive disk and one on Windows and default macOS. Names are now tracked as a path tree: a folder spelt two ways, a file and a folder that differ only in case (either order) and a directory entry spelt differently from an earlier folder are all refused with the same reason as the file rule. Using one spelling of a folder again is still fine. Five new cases in hostile_archives_are_refused_for_the_right_reason, each asserting the exact reason; the U4 mutant for the old check is updated and two more are added (folders accepted, folders compared by lower-case path), all caught. Closes #3
This commit is contained in:
1 parent
ed8447e5cc
commit
1ba49dc08b
48 files changed
+1343
-10
No files matched your search
@@ -6,7 +6,7 @@
|
||||
//! past the limits (counted as the data is read, so a small download cannot expand without bound).
|
||||
//! Files are created new, never over something; nothing is made executable; nothing is run.
|
||||
|
||||
use std::collections::BTreeSet;
|
||||
use std::collections::{BTreeMap, btree_map::Entry};
|
||||
use std::io::Read;
|
||||
use std::path::Path;
|
||||
|
||||
@@ -47,7 +47,7 @@ pub(in crate::source) fn unpack(
|
||||
std::fs::create_dir_all(&root_dir).map_err(|_| io_failed())?;
|
||||
|
||||
let mut top: Option<String> = None;
|
||||
let mut seen: BTreeSet<String> = BTreeSet::new();
|
||||
let mut names = Names::default();
|
||||
let (mut files, mut entries, mut bytes) = (0u32, 0u32, 0u64);
|
||||
let mut top_files = Vec::new();
|
||||
let mut pending_path: Option<String> = None;
|
||||
@@ -109,6 +109,7 @@ pub(in crate::source) fn unpack(
|
||||
if is_dir {
|
||||
read_data(&mut input, size, 0)?;
|
||||
if !rest.is_empty() {
|
||||
names.folders(rest, rest.len())?;
|
||||
std::fs::create_dir_all(&target)
|
||||
.map_err(|_| unsafe_archive("two names conflict"))?;
|
||||
}
|
||||
@@ -120,9 +121,8 @@ pub(in crate::source) fn unpack(
|
||||
if size > limits.max_file || bytes.saturating_add(size) > limits.max_expanded {
|
||||
return Err(PackError::Refused(PackRefusal::TooLarge));
|
||||
}
|
||||
if !seen.insert(rest.join("/").to_lowercase()) {
|
||||
return Err(unsafe_archive("two names differ only in case"));
|
||||
}
|
||||
names.folders(rest, rest.len() - 1)?;
|
||||
names.file(&rest.join("/"))?;
|
||||
if let Some(parent) = target.parent() {
|
||||
std::fs::create_dir_all(parent).map_err(|_| unsafe_archive("two names conflict"))?;
|
||||
}
|
||||
@@ -149,6 +149,47 @@ pub(in crate::source) fn unpack(
|
||||
})
|
||||
}
|
||||
|
||||
/// Every name used so far, by lower-case path, with the spelling first seen and whether it is a
|
||||
/// folder. Two spellings of one name (`Dir` and `dir`) are two folders on a case-sensitive disk
|
||||
/// and one on Windows and default macOS, so the same archive would unpack differently on each.
|
||||
#[derive(Default)]
|
||||
struct Names(BTreeMap<String, (String, bool)>);
|
||||
|
||||
impl Names {
|
||||
/// The first `count` folders on the way down `parts`. Using one spelling again is fine.
|
||||
fn folders(&mut self, parts: &[String], count: usize) -> Result<(), PackError> {
|
||||
for end in 1..=count {
|
||||
let path = parts[..end].join("/");
|
||||
match self.0.entry(path.to_lowercase()) {
|
||||
Entry::Vacant(slot) => {
|
||||
slot.insert((path, true));
|
||||
}
|
||||
Entry::Occupied(slot) if slot.get().0 == path => {}
|
||||
Entry::Occupied(_) => return Err(same_in_any_case()),
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// A file name must be new in any spelling.
|
||||
fn file(&mut self, path: &str) -> Result<(), PackError> {
|
||||
match self.0.entry(path.to_lowercase()) {
|
||||
Entry::Vacant(slot) => {
|
||||
slot.insert((path.to_owned(), false));
|
||||
Ok(())
|
||||
}
|
||||
Entry::Occupied(slot) if slot.get().1 && slot.get().0 == path => {
|
||||
Err(unsafe_archive("two names conflict"))
|
||||
}
|
||||
Entry::Occupied(_) => Err(same_in_any_case()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn same_in_any_case() -> PackError {
|
||||
unsafe_archive("two names differ only in case")
|
||||
}
|
||||
|
||||
fn io_failed() -> PackError {
|
||||
PackError::Failed(craft_ai_model::AiError::new(
|
||||
craft_ai_model::ErrorKind::Internal,
|
||||
|
||||
@@ -55,6 +55,35 @@ fn hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind()
|
||||
archive_of(&[&format!("{r}/A.py"), &format!("{r}/a.py")]),
|
||||
"two names differ only in case",
|
||||
),
|
||||
(
|
||||
// A case-sensitive disk would make two folders, Windows and default macOS one.
|
||||
"folder by case",
|
||||
archive_of(&[&format!("{r}/Dir/a.py"), &format!("{r}/dir/b.py")]),
|
||||
"two names differ only in case",
|
||||
),
|
||||
(
|
||||
"folder by case, deeper down",
|
||||
archive_of(&[&format!("{r}/x/Dir/a.py"), &format!("{r}/x/dir/b.py")]),
|
||||
"two names differ only in case",
|
||||
),
|
||||
(
|
||||
"folder entry by case",
|
||||
gz(&finish(vec![
|
||||
file(&format!("{r}/Dir/a.py"), b"x"),
|
||||
entry(&format!("{r}/dir/"), b'5', b"", ""),
|
||||
])),
|
||||
"two names differ only in case",
|
||||
),
|
||||
(
|
||||
"file then folder by case",
|
||||
archive_of(&[&format!("{r}/A"), &format!("{r}/a/b.py")]),
|
||||
"two names differ only in case",
|
||||
),
|
||||
(
|
||||
"folder then file by case",
|
||||
archive_of(&[&format!("{r}/a/b.py"), &format!("{r}/A")]),
|
||||
"two names differ only in case",
|
||||
),
|
||||
("empty", gz(&finish(vec![])), "the archive holds no files"),
|
||||
(
|
||||
"not gzip",
|
||||
|
||||
@@ -198,7 +198,9 @@ U4 = [
|
||||
('archive-drive-letter-accepted', PACK_ARCHIVE, r'"\\:<>\"|?*".contains(c)', r'"\\<>\"|?*".contains(c)', E, 'nodepack_archive', 'hostile_archives'),
|
||||
('archive-device-names-accepted', PACK_ARCHIVE, '!RESERVED.contains(&stem.as_str())', 'true', E, 'nodepack_archive', 'hostile_archives'),
|
||||
('archive-trailing-dot-accepted', PACK_ARCHIVE, "if part.ends_with('.') || part.ends_with(' ') {", 'if false {', E, 'nodepack_archive', 'hostile_archives'),
|
||||
('archive-case-duplicates-accepted', PACK_ARCHIVE, 'if !seen.insert(rest.join("/").to_lowercase()) {', 'if !seen.insert(rest.join("/")) {', E, 'nodepack_archive', 'hostile_archives'),
|
||||
('archive-case-duplicates-accepted', PACK_ARCHIVE, 'Entry::Occupied(_) => Err(same_in_any_case()),', 'Entry::Occupied(_) => Ok(()),', E, 'nodepack_archive', 'hostile_archives'),
|
||||
('archive-case-folders-accepted', PACK_ARCHIVE, 'Entry::Occupied(_) => return Err(same_in_any_case()),', 'Entry::Occupied(_) => {}', E, 'nodepack_archive', 'hostile_archives'),
|
||||
('archive-case-folders-compared-whole', PACK_ARCHIVE, 'let path = parts[..end].join("/");', 'let path = parts[..end].join("/").to_lowercase();', E, 'nodepack_archive', 'hostile_archives'),
|
||||
('archive-second-top-folder-accepted', PACK_ARCHIVE, 'Some(_) => return Err(unsafe_archive("the archive has more than one top folder")),', 'Some(_) => {}', E, 'nodepack_archive', 'hostile_archives'),
|
||||
('archive-checksum-unchecked', PACK_ARCHIVE, 'if sum == stored {', 'if true {', E, 'nodepack_archive', 'hostile_archives'),
|
||||
('archive-entry-limit-unchecked', PACK_ARCHIVE, 'if entries > limits.max_entries {', 'if false {', E, 'nodepack_archive', 'size_limits'),
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
[
|
||||
{
|
||||
"mutation": "non-local-address-accepted",
|
||||
"caught_by_runtime_test": false,
|
||||
"timed_out": false,
|
||||
"equivalent": "SharedStore::update calls write, which validates every connection; a non-loopback Local endpoint is refused even without the earlier local_address check (local.rs test confirms nothing written)"
|
||||
},
|
||||
{
|
||||
"mutation": "query-in-address-accepted",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "trailing-slash-kept",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "unrunnable-recipe-accepted",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "replaces-a-choice-made",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "never-binds",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "moved-address-kept-old",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "local-model-billed",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "local-model-needs-a-key",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "tool-inputs-dropped",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "address-not-given-to-apps",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,50 @@
|
||||
[
|
||||
{
|
||||
"mutation": "wrong-backend-selected",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "wrong-model-selected",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "broken-choice-looks-unbound",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "remote-route-leaked",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "native-route-treated-as-comfyui",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "unsupported-native-looks-ready",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "picker-offers-uninstalled-adapter",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "picker-false-setup-for-adapter",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.53s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 1 test
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- it_binds_the_tool_for_every_app_and_the_apps_read_the_address stdout ----
|
||||
|
||||
thread 'it_binds_the_tool_for_every_app_and_the_apps_read_the_address' (59312) panicked at crates\ai-client\tests\local.rs:97:42:
|
||||
called `Result::unwrap()` on an `Err` value: AiError { kind: InvalidRequest, message: "the selected comfyui connection has no address", retry_after_secs: None }
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
it_binds_the_tool_for_every_app_and_the_apps_read_the_address
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 6 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
@@ -0,0 +1,25 @@
|
||||
Compiling craft-ai-seedance v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-seedance)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.23s
|
||||
Running tests\provider.rs (target\debug\deps\provider-712001ffcd542dfc.exe)
|
||||
|
||||
running 4 tests
|
||||
test a_hosted_connection_must_use_the_official_byteplus_modelark_address ... FAILED
|
||||
test the_old_volcengine_model_name_is_not_served ... ok
|
||||
test rejects_mask_and_redirect_without_sending_credentials_elsewhere ... ok
|
||||
test probes_key_and_runs_text_to_video ... ok
|
||||
|
||||
failures:
|
||||
|
||||
---- a_hosted_connection_must_use_the_official_byteplus_modelark_address stdout ----
|
||||
|
||||
thread 'a_hosted_connection_must_use_the_official_byteplus_modelark_address' (16032) panicked at crates\ai-seedance\tests\provider.rs:98:9:
|
||||
https://ark.cn-beijing.volces.com/api/v3 should be refused
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_hosted_connection_must_use_the_official_byteplus_modelark_address
|
||||
|
||||
test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-seedance --test provider`
|
||||
@@ -0,0 +1,31 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
warning: unused variable: `safetensors`
|
||||
--> crates\ai-client\src\local.rs:234:9
|
||||
|
|
||||
234 | let safetensors = path
|
||||
| ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_safetensors`
|
||||
|
|
||||
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
|
||||
|
||||
warning: `craft-ai-client` (lib) generated 1 warning (run `cargo fix --lib -p craft-ai-client` to apply 1 suggestion)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.44s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test a_file_that_cannot_be_the_weights_is_refused_and_nothing_is_written ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_file_that_cannot_be_the_weights_is_refused_and_nothing_is_written stdout ----
|
||||
|
||||
thread 'a_file_that_cannot_be_the_weights_is_refused_and_nothing_is_written' (33576) panicked at crates\ai-client\tests\local_native.rs:127:9:
|
||||
wrong extension
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_file_that_cannot_be_the_weights_is_refused_and_nothing_is_written
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -1,6 +1,6 @@
|
||||
Compiling craft-ai-comfy-env v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-comfy-env)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.42s
|
||||
Running tests\nodepack_archive.rs (target\debug\deps\nodepack_archive-13d14388353d6c9d.exe)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 2.28s
|
||||
Running tests\nodepack_archive.rs (target\debug\deps\nodepack_archive-c9ddbb87758ba36d.exe)
|
||||
|
||||
running 1 test
|
||||
test hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind ... FAILED
|
||||
@@ -9,7 +9,7 @@ failures:
|
||||
|
||||
---- hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind stdout ----
|
||||
|
||||
thread 'hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind' (36232) panicked at crates\ai-comfy-env\tests\nodepack_archive.rs:102:9:
|
||||
thread 'hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind' (19688) panicked at crates\ai-comfy-env\tests\nodepack_archive.rs:139:9:
|
||||
assertion `left == right` failed: duplicate by case
|
||||
left: Unsafe("two names conflict")
|
||||
right: Unsafe("two names differ only in case")
|
||||
@@ -19,6 +19,6 @@ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
failures:
|
||||
hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2 filtered out; finished in 0.06s
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2 filtered out; finished in 0.05s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-comfy-env --test nodepack_archive`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-comfy-env v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-comfy-env)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 2.30s
|
||||
Running tests\nodepack_archive.rs (target\debug\deps\nodepack_archive-c9ddbb87758ba36d.exe)
|
||||
|
||||
running 1 test
|
||||
test hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind stdout ----
|
||||
|
||||
thread 'hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind' (52216) panicked at crates\ai-comfy-env\tests\nodepack_rig\mod.rs:216:18:
|
||||
expected a refusal, got Ok(PackEntry { owner: "owner", repo: "Pack", reference: "main", commit: "0123456789abcdef0123456789abcdef01234567", folder: "Pack", files: 2, bytes: 2, archive_sha256: "0ba6714e70ebe162b0e15cd8bf9acd6b64d52d8e696a2667d16bb0ff849f8b6f", has_requirements: false, has_install_script: false, licence: "MIT", installed_at: 1792003010 })
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2 filtered out; finished in 0.08s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-comfy-env --test nodepack_archive`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-comfy-env v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-comfy-env)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.81s
|
||||
Running tests\nodepack_archive.rs (target\debug\deps\nodepack_archive-c9ddbb87758ba36d.exe)
|
||||
|
||||
running 1 test
|
||||
test hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind stdout ----
|
||||
|
||||
thread 'hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind' (26948) panicked at crates\ai-comfy-env\tests\nodepack_rig\mod.rs:216:18:
|
||||
expected a refusal, got Ok(PackEntry { owner: "owner", repo: "Pack", reference: "main", commit: "0123456789abcdef0123456789abcdef01234567", folder: "Pack", files: 2, bytes: 2, archive_sha256: "0ba6714e70ebe162b0e15cd8bf9acd6b64d52d8e696a2667d16bb0ff849f8b6f", has_requirements: false, has_install_script: false, licence: "MIT", installed_at: 1792003012 })
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
hostile_archives_are_refused_for_the_right_reason_and_leave_nothing_behind
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2 filtered out; finished in 0.06s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-comfy-env --test nodepack_archive`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.41s
|
||||
Running tests\local_routes.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local_routes-dc1585d49d7eb4ed.exe)
|
||||
|
||||
running 1 test
|
||||
test a_broken_choice_is_an_error_not_an_unbound_local_route ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_broken_choice_is_an_error_not_an_unbound_local_route stdout ----
|
||||
|
||||
thread 'a_broken_choice_is_an_error_not_an_unbound_local_route' (63916) panicked at crates\ai-client\tests\local_routes.rs:146:65:
|
||||
called `Result::unwrap_err()` on an `Ok` value: None
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_broken_choice_is_an_error_not_an_unbound_local_route
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_routes`
|
||||
@@ -0,0 +1,24 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.55s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test the_native_route_is_registered_bound_and_carries_the_file ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- the_native_route_is_registered_bound_and_carries_the_file stdout ----
|
||||
|
||||
thread 'the_native_route_is_registered_bound_and_carries_the_file' (47596) panicked at crates\ai-client\tests\local_native.rs:59:5:
|
||||
assertion `left == right` failed
|
||||
left: None
|
||||
right: Some("%USERPROFILE%\\AppData\\Local\\Temp\\.tmpIX2edI\\sam3.safetensors")
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
the_native_route_is_registered_bound_and_carries_the_file
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.02s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,33 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
warning: unused variable: `file`
|
||||
--> crates\ai-client\src\local.rs:114:13
|
||||
|
|
||||
114 | let file = weights_file(weights)?;
|
||||
| ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
|
||||
|
|
||||
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
|
||||
|
||||
warning: `craft-ai-client` (lib) generated 1 warning (run `cargo fix --lib -p craft-ai-client` to apply 1 suggestion)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.53s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test the_native_route_is_registered_bound_and_carries_the_file ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- the_native_route_is_registered_bound_and_carries_the_file stdout ----
|
||||
|
||||
thread 'the_native_route_is_registered_bound_and_carries_the_file' (26400) panicked at crates\ai-client\tests\local_native.rs:59:5:
|
||||
assertion `left == right` failed
|
||||
left: None
|
||||
right: Some("%USERPROFILE%\\AppData\\Local\\Temp\\.tmpr9rhRV\\sam3.safetensors")
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
the_native_route_is_registered_bound_and_carries_the_file
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,30 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.40s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... ok
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... ok
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... ok
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... FAILED
|
||||
test a_choice_a_person_already_made_is_left_alone ... ok
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... ok
|
||||
|
||||
failures:
|
||||
|
||||
---- enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool stdout ----
|
||||
|
||||
thread 'enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool' (60680) panicked at crates\ai-client\tests\local.rs:70:5:
|
||||
assertion `left == right` failed
|
||||
left: Metered
|
||||
right: Free
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool
|
||||
|
||||
test result: FAILED. 6 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
@@ -0,0 +1,42 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.54s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... ok
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... FAILED
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... FAILED
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... FAILED
|
||||
test a_choice_a_person_already_made_is_left_alone ... ok
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... ok
|
||||
|
||||
failures:
|
||||
|
||||
---- enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool stdout ----
|
||||
|
||||
thread 'enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool' (63608) panicked at crates\ai-client\tests\local.rs:68:5:
|
||||
a local model needs no key
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
---- it_binds_the_tool_for_every_app_and_the_apps_read_the_address stdout ----
|
||||
|
||||
thread 'it_binds_the_tool_for_every_app_and_the_apps_read_the_address' (68468) panicked at crates\ai-client\tests\local.rs:92:9:
|
||||
photocraft
|
||||
|
||||
---- the_picker_then_lists_sam_3_as_ready_not_as_something_to_install stdout ----
|
||||
|
||||
thread 'the_picker_then_lists_sam_3_as_ready_not_as_something_to_install' (65824) panicked at crates\ai-client\tests\local.rs:213:5:
|
||||
assertion `left == right` failed
|
||||
left: NeedsKey
|
||||
right: Ready
|
||||
|
||||
|
||||
failures:
|
||||
enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool
|
||||
it_binds_the_tool_for_every_app_and_the_apps_read_the_address
|
||||
the_picker_then_lists_sam_3_as_ready_not_as_something_to_install
|
||||
|
||||
test result: FAILED. 4 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.41s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test a_file_that_cannot_be_the_weights_is_refused_and_nothing_is_written ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_file_that_cannot_be_the_weights_is_refused_and_nothing_is_written stdout ----
|
||||
|
||||
thread 'a_file_that_cannot_be_the_weights_is_refused_and_nothing_is_written' (51724) panicked at crates\ai-client\tests\local_native.rs:127:9:
|
||||
missing
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_file_that_cannot_be_the_weights_is_refused_and_nothing_is_written
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.04s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,30 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.47s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... ok
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... ok
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... ok
|
||||
test a_choice_a_person_already_made_is_left_alone ... ok
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... ok
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- enabling_twice_changes_nothing_and_a_moved_address_is_updated stdout ----
|
||||
|
||||
thread 'enabling_twice_changes_nothing_and_a_moved_address_is_updated' (45720) panicked at crates\ai-client\tests\local.rs:160:5:
|
||||
assertion `left == right` failed
|
||||
left: Some("http://127.0.0.1:8000")
|
||||
right: Some("http://127.0.0.1:8188")
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
enabling_twice_changes_nothing_and_a_moved_address_is_updated
|
||||
|
||||
test result: FAILED. 6 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.54s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test a_choice_already_made_is_left_alone_and_both_routes_are_registered ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_choice_already_made_is_left_alone_and_both_routes_are_registered stdout ----
|
||||
|
||||
thread 'a_choice_already_made_is_left_alone_and_both_routes_are_registered' (3688) panicked at crates\ai-client\tests\local_native.rs:101:64:
|
||||
called `Result::unwrap()` on an `Err` value: AiError { kind: Unsupported, message: "connection local-select-subject does not offer model sam3-segment", retry_after_secs: None }
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_choice_already_made_is_left_alone_and_both_routes_are_registered
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.02s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.56s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test a_choice_already_made_is_left_alone_and_both_routes_are_registered ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_choice_already_made_is_left_alone_and_both_routes_are_registered stdout ----
|
||||
|
||||
thread 'a_choice_already_made_is_left_alone_and_both_routes_are_registered' (49144) panicked at crates\ai-client\tests\local_native.rs:100:5:
|
||||
the person's existing choice stays
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_choice_already_made_is_left_alone_and_both_routes_are_registered
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.02s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.48s
|
||||
Running tests\local_routes.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local_routes-dc1585d49d7eb4ed.exe)
|
||||
|
||||
running 1 test
|
||||
test an_endpoint_cannot_masquerade_as_a_different_selected_backend ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- an_endpoint_cannot_masquerade_as_a_different_selected_backend stdout ----
|
||||
|
||||
thread 'an_endpoint_cannot_masquerade_as_a_different_selected_backend' (66412) panicked at crates\ai-client\tests\local_routes.rs:135:5:
|
||||
AiError { kind: InvalidRequest, message: "the selected comfyui connection has no address", retry_after_secs: None }
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
an_endpoint_cannot_masquerade_as_a_different_selected_backend
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_routes`
|
||||
@@ -0,0 +1,42 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.43s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... ok
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... ok
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... FAILED
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... FAILED
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... FAILED
|
||||
test a_choice_a_person_already_made_is_left_alone ... ok
|
||||
|
||||
failures:
|
||||
|
||||
---- the_picker_then_lists_sam_3_as_ready_not_as_something_to_install stdout ----
|
||||
|
||||
thread 'the_picker_then_lists_sam_3_as_ready_not_as_something_to_install' (68304) panicked at crates\ai-client\tests\local.rs:214:5:
|
||||
assertion failed: view.groups[0].models[0].selected
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
---- it_binds_the_tool_for_every_app_and_the_apps_read_the_address stdout ----
|
||||
|
||||
thread 'it_binds_the_tool_for_every_app_and_the_apps_read_the_address' (14488) panicked at crates\ai-client\tests\local.rs:89:5:
|
||||
assertion failed: done.bound
|
||||
|
||||
---- enabling_twice_changes_nothing_and_a_moved_address_is_updated stdout ----
|
||||
|
||||
thread 'enabling_twice_changes_nothing_and_a_moved_address_is_updated' (67988) panicked at crates\ai-client\tests\local.rs:156:5:
|
||||
assertion `left == right` failed
|
||||
left: 0
|
||||
right: 1
|
||||
|
||||
|
||||
failures:
|
||||
enabling_twice_changes_nothing_and_a_moved_address_is_updated
|
||||
it_binds_the_tool_for_every_app_and_the_apps_read_the_address
|
||||
the_picker_then_lists_sam_3_as_ready_not_as_something_to_install
|
||||
|
||||
test result: FAILED. 4 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
@@ -0,0 +1,24 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
warning: unused variable: `endpoint`
|
||||
--> crates\ai-client\src\local.rs:145:9
|
||||
|
|
||||
145 | let endpoint = Endpoint::parse(trimmed)
|
||||
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoint`
|
||||
|
|
||||
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
|
||||
|
||||
warning: `craft-ai-client` (lib) generated 1 warning (run `cargo fix --lib -p craft-ai-client` to apply 1 suggestion)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.48s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... ok
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... ok
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... ok
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... ok
|
||||
test a_choice_a_person_already_made_is_left_alone ... ok
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... ok
|
||||
|
||||
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
Compiling craft-ai-seedance v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-seedance)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.59s
|
||||
Running tests\provider.rs (target\debug\deps\provider-712001ffcd542dfc.exe)
|
||||
|
||||
running 4 tests
|
||||
test a_hosted_connection_must_use_the_official_byteplus_modelark_address ... ok
|
||||
test rejects_mask_and_redirect_without_sending_credentials_elsewhere ... ok
|
||||
test probes_key_and_runs_text_to_video ... FAILED
|
||||
test the_old_volcengine_model_name_is_not_served ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- probes_key_and_runs_text_to_video stdout ----
|
||||
|
||||
thread 'probes_key_and_runs_text_to_video' (57604) panicked at crates\ai-seedance\tests\provider.rs:39:10:
|
||||
called `Result::unwrap()` on an `Err` value: AiError { kind: Unsupported, message: "Seedance does not serve model dreamina-seedance-2-0-260128", retry_after_secs: None }
|
||||
|
||||
---- the_old_volcengine_model_name_is_not_served stdout ----
|
||||
|
||||
thread 'the_old_volcengine_model_name_is_not_served' (62712) panicked at crates\ai-seedance\tests\provider.rs:118:5:
|
||||
assertion `left == right` failed
|
||||
left: InvalidRequest
|
||||
right: Unsupported
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
probes_key_and_runs_text_to_video
|
||||
the_old_volcengine_model_name_is_not_served
|
||||
|
||||
test result: FAILED. 2 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-seedance --test provider`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.49s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test the_comfyui_route_has_no_file_and_is_not_a_native_one ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- the_comfyui_route_has_no_file_and_is_not_a_native_one stdout ----
|
||||
|
||||
thread 'the_comfyui_route_has_no_file_and_is_not_a_native_one' (13724) panicked at crates\ai-client\tests\local_native.rs:79:5:
|
||||
the selected candle connection has no weights file
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
the_comfyui_route_has_no_file_and_is_not_a_native_one
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.41s
|
||||
Running tests\local_routes.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local_routes-dc1585d49d7eb4ed.exe)
|
||||
|
||||
running 1 test
|
||||
test a_selected_native_model_without_an_adapter_is_not_reported_ready ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_selected_native_model_without_an_adapter_is_not_reported_ready stdout ----
|
||||
|
||||
thread 'a_selected_native_model_without_an_adapter_is_not_reported_ready' (60708) panicked at crates\ai-client\tests\local_routes.rs:123:9:
|
||||
No setup button can install an app adapter
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_selected_native_model_without_an_adapter_is_not_reported_ready
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.02s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_routes`
|
||||
@@ -0,0 +1,36 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
warning: method `has_adapter` is never used
|
||||
--> crates\ai-client\src\client.rs:270:19
|
||||
|
|
||||
184 | impl AiClient {
|
||||
| ------------- method in this implementation
|
||||
...
|
||||
270 | pub(crate) fn has_adapter(&self, provider: &str) -> bool {
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
|
||||
|
||||
warning: `craft-ai-client` (lib) generated 1 warning
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.51s
|
||||
Running tests\local_routes.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local_routes-dc1585d49d7eb4ed.exe)
|
||||
|
||||
running 1 test
|
||||
test a_selected_native_model_without_an_adapter_is_not_reported_ready ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_selected_native_model_without_an_adapter_is_not_reported_ready stdout ----
|
||||
|
||||
thread 'a_selected_native_model_without_an_adapter_is_not_reported_ready' (61464) panicked at crates\ai-client\tests\local_routes.rs:121:9:
|
||||
assertion `left != right` failed
|
||||
left: Ready
|
||||
right: Ready
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_selected_native_model_without_an_adapter_is_not_reported_ready
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_routes`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-model v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-model)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.51s
|
||||
Running unittests src\lib.rs (target\debug\deps\craft_ai_model-6490c2f713dbeb1f.exe)
|
||||
|
||||
running 1 test
|
||||
test draft::tests::seedance_connects_through_byteplus_modelark_with_an_api_key ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- draft::tests::seedance_connects_through_byteplus_modelark_with_an_api_key stdout ----
|
||||
|
||||
thread 'draft::tests::seedance_connects_through_byteplus_modelark_with_an_api_key' (61648) panicked at crates\ai-model\src\draft\tests.rs:306:5:
|
||||
Seedance (Volcengine Ark)
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
draft::tests::seedance_connects_through_byteplus_modelark_with_an_api_key
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 135 filtered out; finished in 0.00s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-model --lib`
|
||||
@@ -0,0 +1,24 @@
|
||||
Compiling craft-ai-model v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-model)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.47s
|
||||
Running unittests src\lib.rs (target\debug\deps\craft_ai_model-6490c2f713dbeb1f.exe)
|
||||
|
||||
running 1 test
|
||||
test draft::tests::seedance_connects_through_byteplus_modelark_with_an_api_key ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- draft::tests::seedance_connects_through_byteplus_modelark_with_an_api_key stdout ----
|
||||
|
||||
thread 'draft::tests::seedance_connects_through_byteplus_modelark_with_an_api_key' (50352) panicked at crates\ai-model\src\draft\tests.rs:305:5:
|
||||
assertion `left == right` failed
|
||||
left: "https://ark.cn-beijing.volces.com/api/v3"
|
||||
right: "https://ark.ap-southeast.bytepluses.com/api/v3"
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
draft::tests::seedance_connects_through_byteplus_modelark_with_an_api_key
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 135 filtered out; finished in 0.00s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-model --lib`
|
||||
@@ -0,0 +1,28 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.43s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... ok
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... ok
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... FAILED
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... ok
|
||||
test a_choice_a_person_already_made_is_left_alone ... ok
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... ok
|
||||
|
||||
failures:
|
||||
|
||||
---- only_a_local_address_and_only_a_runnable_local_recipe_are_accepted stdout ----
|
||||
|
||||
thread 'only_a_local_address_and_only_a_runnable_local_recipe_are_accepted' (61748) panicked at crates\ai-client\tests\local.rs:181:9:
|
||||
http://127.0.0.1:8000/?x=1
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
only_a_local_address_and_only_a_runnable_local_recipe_are_accepted
|
||||
|
||||
test result: FAILED. 6 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
@@ -0,0 +1,25 @@
|
||||
Compiling craft-ai-seedance v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-seedance)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.07s
|
||||
Running tests\provider.rs (target\debug\deps\provider-712001ffcd542dfc.exe)
|
||||
|
||||
running 4 tests
|
||||
test a_hosted_connection_must_use_the_official_byteplus_modelark_address ... FAILED
|
||||
test the_old_volcengine_model_name_is_not_served ... ok
|
||||
test rejects_mask_and_redirect_without_sending_credentials_elsewhere ... ok
|
||||
test probes_key_and_runs_text_to_video ... ok
|
||||
|
||||
failures:
|
||||
|
||||
---- a_hosted_connection_must_use_the_official_byteplus_modelark_address stdout ----
|
||||
|
||||
thread 'a_hosted_connection_must_use_the_official_byteplus_modelark_address' (61172) panicked at crates\ai-seedance\tests\provider.rs:102:9:
|
||||
http://127.0.0.1:9/v3?x=1 should be refused
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_hosted_connection_must_use_the_official_byteplus_modelark_address
|
||||
|
||||
test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-seedance --test provider`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.55s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test a_relative_path_is_refused_even_when_it_points_at_a_real_file ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_relative_path_is_refused_even_when_it_points_at_a_real_file stdout ----
|
||||
|
||||
thread 'a_relative_path_is_refused_even_when_it_points_at_a_real_file' (644) panicked at crates\ai-client\tests\local_native.rs:139:5:
|
||||
assertion failed: refused
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_relative_path_is_refused_even_when_it_points_at_a_real_file
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.43s
|
||||
Running tests\local_routes.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local_routes-dc1585d49d7eb4ed.exe)
|
||||
|
||||
running 1 test
|
||||
test a_remote_choice_is_not_exposed_as_a_local_route ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_remote_choice_is_not_exposed_as_a_local_route stdout ----
|
||||
|
||||
thread 'a_remote_choice_is_not_exposed_as_a_local_route' (56824) panicked at crates\ai-client\tests\local_routes.rs:201:65:
|
||||
called `Result::unwrap_err()` on an `Ok` value: Some(LocalRoute { connection: ConnectionId("comfy"), model: ModelId("sam3-node"), provider: "comfyui", endpoint: Some("https://example.com") })
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_remote_choice_is_not_exposed_as_a_local_route
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_routes`
|
||||
@@ -0,0 +1,36 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.41s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... ok
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... ok
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... ok
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... ok
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... FAILED
|
||||
test a_choice_a_person_already_made_is_left_alone ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- enabling_twice_changes_nothing_and_a_moved_address_is_updated stdout ----
|
||||
|
||||
thread 'enabling_twice_changes_nothing_and_a_moved_address_is_updated' (66696) panicked at crates\ai-client\tests\local.rs:156:5:
|
||||
assertion `left == right` failed
|
||||
left: 2
|
||||
right: 1
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
---- a_choice_a_person_already_made_is_left_alone stdout ----
|
||||
|
||||
thread 'a_choice_a_person_already_made_is_left_alone' (48212) panicked at crates\ai-client\tests\local.rs:135:5:
|
||||
assertion failed: !done.bound
|
||||
|
||||
|
||||
failures:
|
||||
a_choice_a_person_already_made_is_left_alone
|
||||
enabling_twice_changes_nothing_and_a_moved_address_is_updated
|
||||
|
||||
test result: FAILED. 5 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
@@ -0,0 +1,48 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.57s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... ok
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... FAILED
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... FAILED
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... FAILED
|
||||
test a_choice_a_person_already_made_is_left_alone ... ok
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool stdout ----
|
||||
|
||||
thread 'enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool' (46612) panicked at crates\ai-client\tests\local.rs:79:5:
|
||||
assertion failed: spec.accepts.contains_key(&InputRole::Prompt)
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
---- the_picker_then_lists_sam_3_as_ready_not_as_something_to_install stdout ----
|
||||
|
||||
thread 'the_picker_then_lists_sam_3_as_ready_not_as_something_to_install' (5428) panicked at crates\ai-client\tests\local.rs:213:5:
|
||||
assertion `left == right` failed
|
||||
left: NotSetUp
|
||||
right: Ready
|
||||
|
||||
---- it_binds_the_tool_for_every_app_and_the_apps_read_the_address stdout ----
|
||||
|
||||
thread 'it_binds_the_tool_for_every_app_and_the_apps_read_the_address' (45720) panicked at crates\ai-client\tests\local.rs:92:9:
|
||||
photocraft
|
||||
|
||||
---- enabling_twice_changes_nothing_and_a_moved_address_is_updated stdout ----
|
||||
|
||||
thread 'enabling_twice_changes_nothing_and_a_moved_address_is_updated' (60044) panicked at crates\ai-client\tests\local.rs:163:14:
|
||||
called `Result::unwrap()` on an `Err` value: AiError { kind: Unsupported, message: "model sam3-segment does not accept a 'prompt' input", retry_after_secs: None }
|
||||
|
||||
|
||||
failures:
|
||||
enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool
|
||||
enabling_twice_changes_nothing_and_a_moved_address_is_updated
|
||||
it_binds_the_tool_for_every_app_and_the_apps_read_the_address
|
||||
the_picker_then_lists_sam_3_as_ready_not_as_something_to_install
|
||||
|
||||
test result: FAILED. 3 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
@@ -0,0 +1,9 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.53s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test a_tool_without_a_built_in_runtime_is_refused ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 10 filtered out; finished in 0.01s
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.40s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... ok
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... ok
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... ok
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... ok
|
||||
test a_choice_a_person_already_made_is_left_alone ... ok
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- enabling_twice_changes_nothing_and_a_moved_address_is_updated stdout ----
|
||||
|
||||
thread 'enabling_twice_changes_nothing_and_a_moved_address_is_updated' (58092) panicked at crates\ai-client\tests\local.rs:160:5:
|
||||
assertion `left == right` failed
|
||||
left: Some("http://127.0.0.1:8188/")
|
||||
right: Some("http://127.0.0.1:8188")
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
enabling_twice_changes_nothing_and_a_moved_address_is_updated
|
||||
|
||||
test result: FAILED. 6 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.47s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test nothing_bound_is_not_an_error ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- nothing_bound_is_not_an_error stdout ----
|
||||
|
||||
thread 'nothing_bound_is_not_an_error' (51692) panicked at crates\ai-client\tests\local_native.rs:92:73:
|
||||
called `Result::unwrap()` on an `Err` value: AiError { kind: Unsupported, message: "unbound", retry_after_secs: None }
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
nothing_bound_is_not_an_error
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,28 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.42s
|
||||
Running tests\local.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local-70a450b96516be91.exe)
|
||||
|
||||
running 7 tests
|
||||
test with_nothing_bound_an_app_gets_no_address ... ok
|
||||
test only_a_local_address_and_only_a_runnable_local_recipe_are_accepted ... FAILED
|
||||
test enabling_the_local_model_writes_a_local_connection_offering_it_for_the_tool ... ok
|
||||
test the_picker_then_lists_sam_3_as_ready_not_as_something_to_install ... ok
|
||||
test it_binds_the_tool_for_every_app_and_the_apps_read_the_address ... ok
|
||||
test a_choice_a_person_already_made_is_left_alone ... ok
|
||||
test enabling_twice_changes_nothing_and_a_moved_address_is_updated ... ok
|
||||
|
||||
failures:
|
||||
|
||||
---- only_a_local_address_and_only_a_runnable_local_recipe_are_accepted stdout ----
|
||||
|
||||
thread 'only_a_local_address_and_only_a_runnable_local_recipe_are_accepted' (68000) panicked at crates\ai-client\tests\local.rs:196:5:
|
||||
assertion failed: desk.enable_local(&later, SAM3_URL).is_err()
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
only_a_local_address_and_only_a_runnable_local_recipe_are_accepted
|
||||
|
||||
test result: FAILED. 6 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.52s
|
||||
Running tests\local_routes.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local_routes-dc1585d49d7eb4ed.exe)
|
||||
|
||||
running 1 test
|
||||
test a_selected_native_model_without_an_adapter_is_not_reported_ready ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_selected_native_model_without_an_adapter_is_not_reported_ready stdout ----
|
||||
|
||||
thread 'a_selected_native_model_without_an_adapter_is_not_reported_ready' (62012) panicked at crates\ai-client\tests\local_routes.rs:113:37:
|
||||
photocraft has no native adapter registered
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_selected_native_model_without_an_adapter_is_not_reported_ready
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_routes`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.58s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test a_runtime_that_is_not_ready_to_use_is_refused ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_runtime_that_is_not_ready_to_use_is_refused stdout ----
|
||||
|
||||
thread 'a_runtime_that_is_not_ready_to_use_is_refused' (50004) panicked at crates\ai-client\tests\local_native.rs:148:5:
|
||||
assertion failed: w.desk("launcher").enable_native(&f, &w.weights("sam3.safetensors")).is_err()
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_runtime_that_is_not_ready_to_use_is_refused
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,22 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.46s
|
||||
Running tests\local_native.rs (target\debug\deps\local_native-48f7eb7079e3ad61.exe)
|
||||
|
||||
running 1 test
|
||||
test a_file_that_vanished_is_an_error_not_unbound ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- a_file_that_vanished_is_an_error_not_unbound stdout ----
|
||||
|
||||
thread 'a_file_that_vanished_is_an_error_not_unbound' (49612) panicked at crates\ai-client\tests\local_native.rs:172:74:
|
||||
called `Result::unwrap_err()` on an `Ok` value: Some("%USERPROFILE%\\AppData\\Local\\Temp\\.tmpiMccYz\\sam3.safetensors")
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_file_that_vanished_is_an_error_not_unbound
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 12 filtered out; finished in 0.02s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_native`
|
||||
@@ -0,0 +1,25 @@
|
||||
Compiling craft-ai-seedance v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-seedance)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.46s
|
||||
Running tests\provider.rs (target\debug\deps\provider-712001ffcd542dfc.exe)
|
||||
|
||||
running 4 tests
|
||||
test a_hosted_connection_must_use_the_official_byteplus_modelark_address ... FAILED
|
||||
test the_old_volcengine_model_name_is_not_served ... ok
|
||||
test rejects_mask_and_redirect_without_sending_credentials_elsewhere ... ok
|
||||
test probes_key_and_runs_text_to_video ... ok
|
||||
|
||||
failures:
|
||||
|
||||
---- a_hosted_connection_must_use_the_official_byteplus_modelark_address stdout ----
|
||||
|
||||
thread 'a_hosted_connection_must_use_the_official_byteplus_modelark_address' (66208) panicked at crates\ai-seedance\tests\provider.rs:88:5:
|
||||
assertion failed: build("https://ark.ap-southeast.bytepluses.com/api/v3").is_ok()
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
a_hosted_connection_must_use_the_official_byteplus_modelark_address
|
||||
|
||||
test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-seedance --test provider`
|
||||
@@ -0,0 +1,24 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.46s
|
||||
Running tests\local_routes.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local_routes-dc1585d49d7eb4ed.exe)
|
||||
|
||||
running 1 test
|
||||
test every_app_reads_the_exact_selected_local_backend_and_model ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- every_app_reads_the_exact_selected_local_backend_and_model stdout ----
|
||||
|
||||
thread 'every_app_reads_the_exact_selected_local_backend_and_model' (62732) panicked at crates\ai-client\tests\local_routes.rs:97:9:
|
||||
assertion `left == right` failed
|
||||
left: "comfyui"
|
||||
right: "candle"
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
every_app_reads_the_exact_selected_local_backend_and_model
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.01s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_routes`
|
||||
@@ -0,0 +1,24 @@
|
||||
Compiling craft-ai-client v0.1.0 (%USERPROFILE%\Apps\ArtCraft\craft-ai-model\crates\ai-client)
|
||||
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.47s
|
||||
Running tests\local_routes.rs (%USERPROFILE%/Apps/ArtCraft/lightcraft-src/target\debug\deps\local_routes-dc1585d49d7eb4ed.exe)
|
||||
|
||||
running 1 test
|
||||
test every_app_reads_the_exact_selected_local_backend_and_model ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- every_app_reads_the_exact_selected_local_backend_and_model stdout ----
|
||||
|
||||
thread 'every_app_reads_the_exact_selected_local_backend_and_model' (68096) panicked at crates\ai-client\tests\local_routes.rs:91:9:
|
||||
assertion `left == right` failed
|
||||
left: "other"
|
||||
right: "sam3-node"
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
failures:
|
||||
every_app_reads_the_exact_selected_local_backend_and_model
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.02s
|
||||
|
||||
error: test failed, to rerun pass `-p craft-ai-client --test local_routes`
|
||||
@@ -0,0 +1,68 @@
|
||||
[
|
||||
{
|
||||
"mutation": "relative-path-accepted",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "any-extension-accepted",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "missing-file-accepted",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "unusable-recipe-accepted",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "file-not-given-to-apps",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "file-not-stored",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "other-backend-file-served",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "vanished-file-served",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "unbound-is-an-error",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "native-replaces-a-choice",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "native-connection-id-shared-with-comfyui",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,38 @@
|
||||
[
|
||||
{
|
||||
"mutation": "any-address-accepted",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "volcengine-address-accepted",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "query-string-allowed",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "old-model-served",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "preset-points-at-volcengine",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "preset-named-volcengine",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
}
|
||||
]
|
||||
@@ -196,5 +196,17 @@
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "archive-case-folders-accepted",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
},
|
||||
{
|
||||
"mutation": "archive-case-folders-compared-whole",
|
||||
"caught_by_runtime_test": true,
|
||||
"timed_out": false,
|
||||
"equivalent": null
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user