Skip to content

Feat/use dashmap#2

Open
thomas9911 wants to merge 1 commit intomainfrom
feat/use-dashmap
Open

Feat/use dashmap#2
thomas9911 wants to merge 1 commit intomainfrom
feat/use-dashmap

Conversation

@thomas9911
Copy link

No description provided.

Signed-off-by: Thomas Timmer <thomas.timmer@bettyblocks.com>
@Aditya1404Sal
Copy link

@thomas9911 it seems Ci wasn't triggered here, are the workflows disabled ?

@thomas9911
Copy link
Author

@thomas9911 it seems Ci wasn't triggered here, are the workflows disabled ?

yes because this is not the main repo. I can maybe enable those

@Aditya1404Sal
Copy link

I ran cargo test --package wash-runtime and a test failed:

unning tests/integration_http_blobby.rs (target/debug/deps/integration_http_blobby-6428d236c4957f4c)

running 2 tests
2026-01-09T20:14:11.830147Z ERROR wash_runtime::plugin::wasi_logging: Failed to write data to blobstore: container 'default' does not exist id="7395765b-3045-4d6a-8801-cfe2bae0c77d" context=""
test test_blobby_error_handling ... ok
2026-01-09T20:14:11.831586Z ERROR wash_runtime::plugin::wasi_logging: Failed to write data to blobstore: container 'default' does not exist id="2a6d0df4-71f3-4c86-af90-a1a5a17496fb" context=""
test test_blobby_integration ... FAILED

failures:

---- test_blobby_integration stdout ----
Starting blobby.wasm integration test
Created host with HTTP and blobstore plugins for blobby test
Host started, HTTP server listening on 127.0.0.1:35971
Started blobby workload: "172a537d-f1d8-4d5d-9211-f172d1b359ff"
Testing blobby component endpoint
GET Response Status: 404 Not Found
GET Response Body: Object not found
POST Response Status: 500 Internal Server Error
POST Response Body: Failed to write data to blobstore: container 'default' does not exist

thread 'test_blobby_integration' (910026) panicked at crates/wash-runtime/tests/integration_http_blobby.rs:189:5:
POST request expected success, got 500 Internal Server Error
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    test_blobby_integration

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

Copy link

@Aditya1404Sal Aditya1404Sal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found some unnecessary clones, seemed to fix the failing blobby test

@@ -11,6 +11,7 @@ use std::{

const WASI_BLOBSTORE_ID: &str = "wasi-blobstore";
use tokio::sync::RwLock;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use tokio::sync::RwLock;

unused dep

Comment on lines +121 to +122
let storage = plugin.storage.clone();
let mut workload_storage = storage.entry(self.id.clone()).or_default();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let storage = plugin.storage.clone();
let mut workload_storage = storage.entry(self.id.clone()).or_default();
let mut workload_storage = plugin.storage.entry(self.id.clone()).or_default();

let storage = plugin.storage.clone();
let mut workload_storage = storage.entry(self.id.clone()).or_default();

if workload_storage.contains_key(&name) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if workload_storage.contains_key(&name) {
if workload_storage.value().contains_key(&name) {

Comment on lines +147 to +148
let storage = plugin.storage.clone();
let does_contain_name = storage

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let storage = plugin.storage.clone();
let does_contain_name = storage
let does_contain_name = plugin.storage

Comment on lines +169 to +170
let storage = plugin.storage.clone();
let mut workload_storage = storage.entry(self.id.clone()).or_default();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let storage = plugin.storage.clone();
let mut workload_storage = storage.entry(self.id.clone()).or_default();
let mut workload_storage = plugin.storage.entry(self.id.clone()).or_default();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants