From 1bbc53013f54b9dc135a690475f95854b0092342 Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Thu, 26 Sep 2024 18:48:52 -0400 Subject: [PATCH] Cleanup --- .baedeker/util/runtimeUpgrade.js | 13 ++-- .github/workflows/check-finney-data.yml | 99 ------------------------- 2 files changed, 6 insertions(+), 106 deletions(-) diff --git a/.baedeker/util/runtimeUpgrade.js b/.baedeker/util/runtimeUpgrade.js index a2312b31e..582ac910c 100644 --- a/.baedeker/util/runtimeUpgrade.js +++ b/.baedeker/util/runtimeUpgrade.js @@ -66,18 +66,17 @@ async function main() { // Send the transaction using the sudo account console.log("Running runtime upgrade..."); await sendTransaction(sudoCallSetCode, sudoAccount); - console.log("Running runtime upgrade - done"); - // CI test - failed tx + // Sleep for a minute to make sure migrations have run + console.log("Sleep for a minute to make sure migrations have run"); + await new Promise(r => setTimeout(r, 60000)); // Test that chain is functionning with a balance transfer const bob = keyring.addFromUri("//Bob"); - // const balanceTransfer = api.tx.balances.transferKeepAlive(bob.address, `1000000000`); - const balanceTransfer = api.tx.balances.transferKeepAlive(sudoAccount.address, `1000000000`); + const balanceTransfer = api.tx.balances.transferKeepAlive(bob.address, `1000000000`); console.log("Executing balance transfer..."); - // await sendTransaction(balanceTransfer, sudoAccount); - await sendTransaction(balanceTransfer, bob); - console.log("Balance transfer successful"); + await sendTransaction(balanceTransfer, sudoAccount); + console.log("Balance transfer successful, chain is working, blocks are being produced"); process.exit(0); } diff --git a/.github/workflows/check-finney-data.yml b/.github/workflows/check-finney-data.yml index 36b934cce..ee445c8d6 100644 --- a/.github/workflows/check-finney-data.yml +++ b/.github/workflows/check-finney-data.yml @@ -91,102 +91,3 @@ jobs: run: | chmod +x bin/baedeker ./bin/baedeker --version - - # # Buid the subtensor code from current branch - # build: - # name: cargo build - # runs-on: SubtensorCI - # strategy: - # matrix: - # rust-branch: - # - stable - # rust-target: - # - x86_64-unknown-linux-gnu - # # - x86_64-apple-darwin - # os: - # - ubuntu-latest - # # - macos-latest - # include: - # - os: ubuntu-latest - # # - os: macos-latest - # env: - # RELEASE_NAME: development - # # RUSTFLAGS: -A warnings - # RUSTV: ${{ matrix.rust-branch }} - # RUST_BACKTRACE: full - # RUST_BIN_DIR: target/${{ matrix.rust-target }} - # SKIP_WASM_BUILD: 1 - # TARGET: ${{ matrix.rust-target }} - # steps: - # - name: Check-out repository under $GITHUB_WORKSPACE - # uses: actions/checkout@v4 - - # - name: Install dependencies - # run: | - # sudo apt-get update && - # sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler - - # - name: Install Rust ${{ matrix.rust-branch }} - # uses: actions-rs/toolchain@v1.0.6 - # with: - # toolchain: ${{ matrix.rust-branch }} - # components: rustfmt, clippy - # profile: minimal - - # - name: Utilize Rust shared cached - # uses: Swatinem/rust-cache@v2.2.1 - # with: - # key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} - - # - name: cargo build --release - # run: cargo build --release - - # # runs cargo test --workspace --features=runtime-benchmarks - # cargo-test-benchmarks: - # name: cargo test w/benchmarks - # runs-on: SubtensorCI - # strategy: - # matrix: - # rust-branch: - # - stable - # rust-target: - # - x86_64-unknown-linux-gnu - # # - x86_64-apple-darwin - # os: - # - ubuntu-latest - # # - macos-latest - # include: - # - os: ubuntu-latest - # # - os: macos-latest - # env: - # RELEASE_NAME: development - # # RUSTFLAGS: -A warnings - # RUSTV: ${{ matrix.rust-branch }} - # RUST_BACKTRACE: full - # RUST_BIN_DIR: target/${{ matrix.rust-target }} - # SKIP_WASM_BUILD: 1 - # TARGET: ${{ matrix.rust-target }} - # steps: - # - name: Check-out repository under $GITHUB_WORKSPACE - # uses: actions/checkout@v4 - - # - name: Install dependencies - # run: | - # sudo apt-get update && - # sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler - - # - name: Install Rust ${{ matrix.rust-branch }} - # uses: actions-rs/toolchain@v1.0.6 - # with: - # toolchain: ${{ matrix.rust-branch }} - # components: rustfmt, clippy - # profile: minimal - - # - name: Utilize Rust shared cached - # uses: Swatinem/rust-cache@v2.2.1 - # with: - # key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} - - # - name: cargo test --workspace --features=runtime-benchmarks - # run: cargo test --workspace --features=runtime-benchmarks -