Skip to content

Commit

Permalink
Revert "feat: create importer online component (#1541)" (#1583)
Browse files Browse the repository at this point in the history
This reverts commit 64daad0.
  • Loading branch information
mayconamaroCW authored Jul 31, 2024
1 parent 64daad0 commit 614e382
Show file tree
Hide file tree
Showing 35 changed files with 2,052 additions and 1,467 deletions.
95 changes: 95 additions & 0 deletions .github/workflows/e2e-generic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: E2E Generic

on:
pull_request:
branches:
- '*'
paths-ignore:
- '.github/workflows/deploy.yml'
- '.github/workflows/docs-release.yml'
- '.github/workflows/outdated.yml'
- '.github/workflows/comment-tag-report.yml'
- '.github/workflows/pr-agent.yml'
- '.github/workflows/build-binary.yml'
- '.github/CODEOWNERS'
- 'config/**'
- 'README.md'
- 'LICENSE'
- 'CONTRIBUTING.md'
- 'utils/slack-notifiers/**'
workflow_dispatch:

jobs:
e2e_generic:
strategy:
fail-fast: false
matrix:
include:
# - leader-restart: true
# instances: 2
# iterations: 1
# - leader-restart: true
# instances: 3
# iterations: 1
# - leader-restart: false
# instances: 2
# iterations: 1
# - leader-restart: false
# instances: 3
# iterations: 1
- leader-restart: true
instances: 1
iterations: 2

name: E2E Generic with (${{ matrix.instances }}, ${{ matrix.leader-restart }})
runs-on: ubuntu-latest
timeout-minutes: 45

concurrency:
group: ${{ github.workflow }}-${{ matrix.leader-restart }}-${{ matrix.instances }}-${{ matrix.iterations }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.79

- name: Rust Cache
uses: Swatinem/rust-cache@v2
id: cache-cargo
with:
prefix-key: ${{ runner.os }}-v3-cargo
shared-key: stable-release
key: ${{ hashFiles('Cargo.lock', 'Cargo.toml') }}
cache-provider: "github"
cache-directories: "~/.cargo/bin/"

- name: Install protoc
run: sudo apt-get install -y protobuf-compiler

- name: Install jq
run: sudo apt-get install jq -y

- name: Set up Just
uses: extractions/setup-just@v2

- name: Set up dependencies
if: ${{ steps.cache-cargo.outputs.cache-hit != 'true' }}
run: |
cargo install killport || true
cargo install wait-service || true
- name: Clone all contracts
run: just contracts-clone --token

- name: Flatten all contracts
run: just contracts-flatten --token

- name: Run e2e tests
run: just run-chaos-experiment stratus ${{ matrix.instances }} ${{ matrix.iterations }} ${{ matrix.leader-restart }} main
env:
CARGO_PROFILE_RELEASE_DEBUG: 0
RUST_LOG: error
RELEASE: 1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: E2E Importer
name: E2E Run With Importer

on:
pull_request:
Expand Down Expand Up @@ -26,10 +26,10 @@ on:
- 'Cargo.toml'

jobs:
importer_test:
run_with_importer_test:
strategy:
fail-fast: false
name: E2E Importer on BRLCToken
name: E2E Run With Importer on BRLCToken
runs-on: ubuntu-latest
timeout-minutes: 45

Expand Down
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ path = "src/bin/rpc_downloader.rs"
name = "importer-offline"
path = "src/bin/importer_offline.rs"

[[bin]]
name = "importer-online"
path = "src/bin/importer_online.rs"

[[bin]]
name = "run-with-importer"
path = "src/bin/run_with_importer.rs"

# ------------------------------------------------------------------------------
# Features
# ------------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 614e382

Please sign in to comment.