Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gztensor committed Sep 26, 2024
1 parent 954b9ba commit 1bbc530
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 106 deletions.
13 changes: 6 additions & 7 deletions .baedeker/util/runtimeUpgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
99 changes: 0 additions & 99 deletions .github/workflows/check-finney-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# with:
# toolchain: ${{ matrix.rust-branch }}
# components: rustfmt, clippy
# profile: minimal

# - name: Utilize Rust shared cached
# uses: Swatinem/[email protected]
# 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/[email protected]
# with:
# toolchain: ${{ matrix.rust-branch }}
# components: rustfmt, clippy
# profile: minimal

# - name: Utilize Rust shared cached
# uses: Swatinem/[email protected]
# with:
# key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

# - name: cargo test --workspace --features=runtime-benchmarks
# run: cargo test --workspace --features=runtime-benchmarks

0 comments on commit 1bbc530

Please sign in to comment.