diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eddbccf323..13050c5232 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,19 +78,6 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: cargo build -r -p papyrus_load_test - integration-test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - - uses: Noelware/setup-protoc@1.1.0 - 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: runs-on: ubuntu-latest steps: diff --git a/crates/papyrus_storage/src/mmap_file/mmap_file_test.rs b/crates/papyrus_storage/src/mmap_file/mmap_file_test.rs index 0490955ff2..7eb9c549d9 100644 --- a/crates/papyrus_storage/src/mmap_file/mmap_file_test.rs +++ b/crates/papyrus_storage/src/mmap_file/mmap_file_test.rs @@ -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); @@ -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::>>(config.clone(), file_path, offset).unwrap(); assert_eq!(file.metadata().unwrap().len(), 4 * config.growth_step as u64); diff --git a/crates/papyrus_storage/src/mmap_file/mod.rs b/crates/papyrus_storage/src/mmap_file/mod.rs index f609f75054..0dbd76b72e 100644 --- a/crates/papyrus_storage/src/mmap_file/mod.rs +++ b/crates/papyrus_storage/src/mmap_file/mod.rs @@ -170,7 +170,7 @@ pub(crate) fn open_file( path: PathBuf, offset: usize, ) -> MmapFileResult<(FileHandler, FileHandler)> { - 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(); diff --git a/deployments/helm/values.yaml b/deployments/helm/values.yaml index a58ad8ef5d..8c9ae15fe1 100644 --- a/deployments/helm/values.yaml +++ b/deployments/helm/values.yaml @@ -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