-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(storage): move state to persistent storage #277
Conversation
4c6a042
to
8e95f27
Compare
@@ -55,6 +55,7 @@ jobs: | |||
- snapshot | |||
uses: fluencelabs/nox/.github/workflows/build.yml@master | |||
with: | |||
ref: feature/net-759 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess this changes nothing, right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It uses a modified nox
@@ -92,6 +93,7 @@ jobs: | |||
|
|||
uses: fluencelabs/nox/.github/workflows/tests.yml@master | |||
with: | |||
ref: feature/net-759 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -212,17 +214,20 @@ mod tests { | |||
|
|||
/// after_each macro copy-pastes this function into every test | |||
fn after_each() { | |||
std::fs::remove_file(DB_FILE).ok(); | |||
// std::fs::remove_file(DB_FILE).ok(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
use marine_rs_sdk_test::marine_test; | ||
|
||
use crate::schema::DB_FILE; | ||
const DB_FILE: &str = "./tests_artifacts/spell.sqlite"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep or revert?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep
use marine_rs_sdk_test::marine_test; | ||
use serde_json::json; | ||
|
||
use crate::schema::DB_FILE; | ||
const DB_FILE: &str = "./tests_artifacts/spell.sqlite"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -6,11 +6,10 @@ set -o pipefail | |||
|
|||
cd "$(dirname "$0")" | |||
|
|||
rm -f /tmp/spell.sqlite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, it is not inside wasm runtime, and I don't see any interaction with the /tmp dir outside
@@ -319,37 +330,37 @@ mod tests { | |||
let cp = || host_call_params(); | |||
|
|||
type SPELL = marine_test_env::spell::ModuleInterface; | |||
let set_str_ok = |spell: &mut SPELL, key: &str, value: &str| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's ridiculous, why idea didn't do it for me, lol
|
||
use crate::schema::DB_FILE; | ||
const DB_FILE: &str = "./tests_artifacts/spell.sqlite"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't import it? how does it work now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crate::schema::DB_FILE is a file inside the wasm runtime, DB_FILE is a file in the current system
🤖 I have created a release *beep* *boop* --- ## [0.7.4](spell-v0.7.3...spell-v0.7.4) (2024-02-23) ### Features * **storage:** move state to persistent storage ([#277](#277)) ([ae9ac0d](ae9ac0d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
No description provided.