Skip to content

Commit

Permalink
chore: update image tag for v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-starkware committed Apr 18, 2024
1 parent aac83bb commit 6210187
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ jobs:
with:
version: ${{env.PROTOC_VERSION}}
- run: >
cargo test -r --test '*' -- --include-ignored --skip test_gw_integration_testnet;
cargo run -r -p papyrus_node --bin central_source_integration_test
rustfmt:
Expand Down
18 changes: 14 additions & 4 deletions crates/papyrus_storage/src/mmap_file/mmap_file_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,13 @@ fn grow_file() {
let file_path = dir.path().to_path_buf().join("test_grow_file");
let mut offset = 0;
{
let file =
OpenOptions::new().read(true).write(true).create(true).open(file_path.clone()).unwrap();
let file = OpenOptions::new()
.read(true)
.write(true)
.create(true)
.truncate(true)
.open(file_path.clone())
.unwrap();
// file_size = 0, offset = 0
assert_eq!(file.metadata().unwrap().len(), 0);

Expand Down Expand Up @@ -174,8 +179,13 @@ fn grow_file() {
assert_eq!(offset, 4 * serialization_size);
}

let file =
OpenOptions::new().read(true).write(true).create(true).open(file_path.clone()).unwrap();
let file = OpenOptions::new()
.read(true)
.write(true)
.create(true)
.truncate(false)
.open(file_path.clone())
.unwrap();
assert_eq!(file.metadata().unwrap().len(), 4 * config.growth_step as u64);
let _ = open_file::<NoVersionValueWrapper<Vec<u8>>>(config.clone(), file_path, offset).unwrap();
assert_eq!(file.metadata().unwrap().len(), 4 * config.growth_step as u64);
Expand Down
2 changes: 1 addition & 1 deletion crates/papyrus_storage/src/mmap_file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub(crate) fn open_file<V: ValueSerde>(
path: PathBuf,
offset: usize,
) -> MmapFileResult<(FileHandler<V, RW>, FileHandler<V, RO>)> {
let file = OpenOptions::new().read(true).write(true).create(true).open(path)?;
let file = OpenOptions::new().read(true).write(true).create(true).truncate(false).open(path)?;
let size = file.metadata()?.len();
let mmap = unsafe { MmapOptions::new().len(config.max_size).map_mut(&file)? };
let mmap_ptr = mmap.as_ptr();
Expand Down
4 changes: 2 additions & 2 deletions deployments/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ starknet:
# possible values: "mainnet.json", "goerli_testnet.json", "goerli_integration.json",
# "sepolia_testnet" and "sepolia_integration".
preset: mainnet.json
additionalHeaders: # optional addtional headers for SN communication
additionalHeaders: # optional additional headers for SN communication

deployment:
# The container image
image:
repository: ghcr.io/starkware-libs/papyrus
tag: 0.2.0
tag: 0.3.0
# The container's pullPolicy
pullPolicy: Always
# Optional - nodeSelector
Expand Down

0 comments on commit 6210187

Please sign in to comment.