Skip to content
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

chore: update image tag for v0.3 #1864

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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:
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
Loading