Skip to content

Commit

Permalink
Move replay integration test at the end.
Browse files Browse the repository at this point in the history
It is not working right now because the blocks snapshot being used is from an older rocksdb.
  • Loading branch information
tizoc committed Jun 13, 2021
1 parent 1ffd5f7 commit b431b17
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .drone.yml
Expand Up @@ -241,29 +241,6 @@ environment:

steps:

- name: replay-test
image: simplestakingcom/tezedge-ci-builder:latest
user: root
pull: if-not-exists
volumes:
- name: build
path: /artifacts
- name: tezedge-snapshots
path: /tmp/tezedge-snapshots
- name: tezedge-node-snapshotted-data
path: /tmp/tezedge_developer
commands:
- rm -rf /tmp/tezedge_developer/data
- unzip /tmp/tezedge-snapshots/tezedge_data_from_block_0_to_26907.zip # TODO: change this name (typo 26907 -> 27907)
- mv usr/local/etc/tezedge-data/tezedge_27708_2021-05-26T12:45:48.076277293+00:00/_data /tmp/tezedge_developer/data
- rust_libs=$(echo "`rustup show home`/toolchains/`rustup show active-toolchain | tr " " "\n" | head -1`/lib")
- export LD_LIBRARY_PATH="$${BUILD_ARTIFACTS_PATH}/build_files/ffi:$rust_libs"
# light-node reads the path of `protocol-runner` from the config file, even if provided as argument.
# Copy the `protocol-runner` binary to the path specified in the config file.
- mkdir -p target/release
- cp $${BUILD_ARTIFACTS_PATH}/build_files/protocol-runner target/release/
- $${BUILD_ARTIFACTS_PATH}/build_files/light-node replay --target-path=/tmp/replay --config-file "$${BUILD_ARTIFACTS_PATH}/build_files/tezedge/tezedge_drone.config" --network=mainnet --to-block BLUP2BFdCq4qkFh6Sry7AGwa21D5hJUv8yLyWnNVLMwnLgF8JnF --tezos-data-dir=/tmp/tezedge_developer/data --identity-file "$${BUILD_ARTIFACTS_PATH}/build_files/identities/identity_6.json" --bootstrap-db-path=bootstrap_db

- name: protocol-runner/pool-test
image: simplestakingcom/tezedge-ci-builder:latest
pull: if-not-exists
Expand Down Expand Up @@ -445,6 +422,29 @@ steps:
- export CARGO_MANIFEST_DIR=$${TEST_ARTIFACTS_PATH}/test_data
- $${TEST_ARTIFACTS_PATH}/tests/p2p_test --nocapture --ignored test_proof_of_work_fail

- name: replay-test
image: simplestakingcom/tezedge-ci-builder:latest
user: root
pull: if-not-exists
volumes:
- name: build
path: /artifacts
- name: tezedge-snapshots
path: /tmp/tezedge-snapshots
- name: tezedge-node-snapshotted-data
path: /tmp/tezedge_developer
commands:
- rm -rf /tmp/tezedge_developer/data
- unzip /tmp/tezedge-snapshots/tezedge_data_from_block_0_to_26907.zip # TODO: change this name (typo 26907 -> 27907)
- mv usr/local/etc/tezedge-data/tezedge_27708_2021-05-26T12:45:48.076277293+00:00/_data /tmp/tezedge_developer/data
- rust_libs=$(echo "`rustup show home`/toolchains/`rustup show active-toolchain | tr " " "\n" | head -1`/lib")
- export LD_LIBRARY_PATH="$${BUILD_ARTIFACTS_PATH}/build_files/ffi:$rust_libs"
# light-node reads the path of `protocol-runner` from the config file, even if provided as argument.
# Copy the `protocol-runner` binary to the path specified in the config file.
- mkdir -p target/release
- cp $${BUILD_ARTIFACTS_PATH}/build_files/protocol-runner target/release/
- $${BUILD_ARTIFACTS_PATH}/build_files/light-node replay --target-path=/tmp/replay --config-file "$${BUILD_ARTIFACTS_PATH}/build_files/tezedge/tezedge_drone.config" --network=mainnet --to-block BLUP2BFdCq4qkFh6Sry7AGwa21D5hJUv8yLyWnNVLMwnLgF8JnF --tezos-data-dir=/tmp/tezedge_developer/data --identity-file "$${BUILD_ARTIFACTS_PATH}/build_files/identities/identity_6.json" --bootstrap-db-path=bootstrap_db

# TODO - TE-261: we don't have an equivalent of this right now
# - name: record/replay-context-action-file-test
# image: simplestakingcom/tezedge-ci-builder:latest
Expand Down

0 comments on commit b431b17

Please sign in to comment.