R Under development (unstable) (2025-02-10 r87710 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(rchroma) > > test_check("rchroma") [ FAIL 22 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-collections.R:4:3'): create_collection works ─────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-collections.R:4:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-collections.R:50:3'): get_collection works ───────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-collections.R:50:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-collections.R:61:3'): update_collection works ────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-collections.R:61:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-collections.R:90:3'): delete_collection works ────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-collections.R:90:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-collections.R:107:3'): list_collections works ────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-collections.R:107:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-collections.R:131:3'): count_collections works ───────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-collections.R:131:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-connection.R:2:3'): chroma_connect works ─────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-connection.R:2:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-connection.R:19:3'): version works ───────────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-connection.R:19:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-connection.R:26:3'): pre_flight_checks works ─────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-connection.R:26:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-connection.R:33:3'): heartbeat works ─────────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-connection.R:33:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-connection.R:40:3'): get_auth_identity works ─────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-connection.R:40:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-database.R:4:3'): create_database works ──────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-database.R:4:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-database.R:31:3'): get_database works ────────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-database.R:31:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-documents.R:4:3'): add_documents works ───────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-documents.R:4:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-documents.R:67:3'): update_documents works ───────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-documents.R:67:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-documents.R:117:3'): update_documents fails correctly for non-existent collection ── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-documents.R:117:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-documents.R:129:3'): delete_documents works ──────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-documents.R:129:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-query.R:4:3'): query works ───────────────────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-query.R:4:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-query.R:51:3'): query with filters works ─────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-query.R:51:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-query.R:104:3'): query include parameter works ───────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-query.R:104:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-tenants.R:4:3'): create_tenant works ─────────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-tenants.R:4:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test-tenants.R:25:3'): get_tenant works ───────────────────────────── Error in `value[[3L]](cond)`: Could not connect to ChromaDB at http://localhost:8000/api/v2 To run ChromaDB: 1. Install Docker from https://www.docker.com 2. Run ChromaDB using Docker: docker run -p 8000:8000 chromadb/chroma Original error: Failed to perform HTTP request. Backtrace: ▆ 1. └─rchroma::chroma_connect() at test-tenants.R:25:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) [ FAIL 22 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted