Skip to content

Commit

Permalink
Reduce shared file size to 1G in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Leśniak committed Oct 4, 2024
1 parent 7ca8173 commit b53a736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test_generate_artifacts_from_scratch_by_hived() {
cp "$SOURCE_100K_BLOCK_LOG_PATTERN" "$TEST_BLOCKCHAIN_DIR/block_log"
# Note that both block_log.artifacts & block_log_part.0001.artifacts are created below
# due to a combination of hived's default split setting & auto-split feature
"$HIVED_BINARY_PATH" -d "$TEST_DATA_DIR" --replay --exit-before-sync
"$HIVED_BINARY_PATH" -d "$TEST_DATA_DIR" --replay --exit-before-sync --shared-file-size=1G
"$BLOCK_LOG_UTIL_BINARY_PATH" --get-block-artifacts --block-log "$TEST_BLOCKCHAIN_DIR/block_log" --do-full-artifacts-verification-match-check --header-only
"$BLOCK_LOG_UTIL_BINARY_PATH" --get-block-artifacts --block-log "$TEST_BLOCKCHAIN_DIR/block_log_part.0001" --do-full-artifacts-verification-match-check --header-only
}
Expand All @@ -35,7 +35,7 @@ test_generate_artifacts_override_old_file_by_hived() {
cp "$SOURCE_100K_BLOCK_LOG_PATTERN" "$TEST_BLOCKCHAIN_DIR/block_log"
cp "$SOURCE_ARTIFACTS_V_1_0_PATTERN" "$TEST_BLOCKCHAIN_DIR/block_log.artifacts"
cp "$SOURCE_ARTIFACTS_V_1_0_PATTERN" "$TEST_BLOCKCHAIN_DIR/block_log_part.0001.artifacts"
"$HIVED_BINARY_PATH" -d "$TEST_DATA_DIR" --replay --exit-before-sync
"$HIVED_BINARY_PATH" -d "$TEST_DATA_DIR" --replay --exit-before-sync --shared-file-size=1G
"$BLOCK_LOG_UTIL_BINARY_PATH" --get-block-artifacts --block-log "$TEST_BLOCKCHAIN_DIR/block_log" --do-full-artifacts-verification-match-check --header-only
"$BLOCK_LOG_UTIL_BINARY_PATH" --get-block-artifacts --block-log "$TEST_BLOCKCHAIN_DIR/block_log_part.0001" --do-full-artifacts-verification-match-check --header-only
}
Expand All @@ -47,7 +47,7 @@ test_resume_artifacts_generating_process_by_hived() {
mkdir -p "$TEST_BLOCKCHAIN_DIR"
cp "$SOURCE_100K_BLOCK_LOG_PATTERN" "$TEST_BLOCKCHAIN_DIR/block_log"
cp "$SOURCE_ARTIFACTS_V_1_1_INTERRUPTED_PATTERN" "$TEST_BLOCKCHAIN_DIR/block_log.artifacts"
"$HIVED_BINARY_PATH" -d "$TEST_DATA_DIR" --replay --exit-before-sync
"$HIVED_BINARY_PATH" -d "$TEST_DATA_DIR" --replay --exit-before-sync --shared-file-size=1G
"$BLOCK_LOG_UTIL_BINARY_PATH" --get-block-artifacts --block-log "$TEST_BLOCKCHAIN_DIR/block_log" --do-full-artifacts-verification-match-check --header-only
}

Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_several_node_restarts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ echo "Create replay environment..."
"$SCRIPTS_PATH/ci-helpers/prepare_data_and_shm_dir.sh" --data-base-dir="$SOURCE_DATA_DIR" --block-log-source-dir="$BLOCK_LOG_SOURCE_DIR" --config-ini-source="$CONFIG_INI_SOURCE"

echo "Start first replay: "
"$SCRIPTS_PATH"/run_hived_img.sh "$HIVED_IMAGE_NAME" --data-dir="$SOURCE_DATA_DIR"/datadir --name=first-replay-container --docker-option="--network=bridge" --replay --stop-at-block=$first_replay_block_limit --detach
"$SCRIPTS_PATH"/run_hived_img.sh "$HIVED_IMAGE_NAME" --data-dir="$SOURCE_DATA_DIR"/datadir --name=first-replay-container --docker-option="--network=bridge" --replay --stop-at-block=$first_replay_block_limit --detach --shared-file-size=1G
wait_for_instance first-replay-container $first_replay_block_limit
stop_instance "first-replay-container"

echo "Start second replay: "
"$SCRIPTS_PATH"/run_hived_img.sh "$HIVED_IMAGE_NAME" --data-dir="$SOURCE_DATA_DIR"/datadir --name=second-replay-container --docker-option="--network=bridge" --replay --stop-at-block=$second_replay_block_limit --detach
"$SCRIPTS_PATH"/run_hived_img.sh "$HIVED_IMAGE_NAME" --data-dir="$SOURCE_DATA_DIR"/datadir --name=second-replay-container --docker-option="--network=bridge" --replay --stop-at-block=$second_replay_block_limit --detach --shared-file-size=1G
wait_for_instance second-replay-container $second_replay_block_limit
stop_instance "second-replay-container"

Expand Down

0 comments on commit b53a736

Please sign in to comment.