From f1aa660469e86bf271cbbf495ecd3d1468375e84 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Fri, 14 Feb 2025 12:47:02 -0500 Subject: [PATCH 1/7] fix try runtime endpoints --- .github/workflows/try-runtime.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/try-runtime.yml b/.github/workflows/try-runtime.yml index 89a28c5c6..69179ef40 100644 --- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -2,8 +2,6 @@ name: Try Runtime on: pull_request: - branches: [main, devnet-ready, devnet, testnet, finney] - types: [labeled, unlabeled, synchronize] env: CARGO_TERM_COLOR: always @@ -35,7 +33,7 @@ jobs: uses: "paritytech/try-runtime-gha@v0.1.0" with: runtime-package: "node-subtensor-runtime" - node-uri: "wss://test.chain.opentensor.ai:443" + node-uri: "wss://wss://archive.test.opentensor.ai:443" checks: "all" extra-args: "--disable-spec-version-check --no-weight-warnings" From d005830c4a76b06c2925b6836ba0fb998df1985f Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Fri, 14 Feb 2025 12:49:11 -0500 Subject: [PATCH 2/7] fix --- .github/workflows/try-runtime.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/try-runtime.yml b/.github/workflows/try-runtime.yml index 69179ef40..1375892b0 100644 --- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -33,7 +33,7 @@ jobs: uses: "paritytech/try-runtime-gha@v0.1.0" with: runtime-package: "node-subtensor-runtime" - node-uri: "wss://wss://archive.test.opentensor.ai:443" + node-uri: "wss://wss://test-archive.dev.opentensor.ai:443" checks: "all" extra-args: "--disable-spec-version-check --no-weight-warnings" From 51b3d1c5126db41e566ef128d0be97fce73e3929 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Fri, 14 Feb 2025 12:54:57 -0500 Subject: [PATCH 3/7] bump CI From fbe1cbba17708994e13b204ce9814c78dea1c03a Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Fri, 14 Feb 2025 12:58:59 -0500 Subject: [PATCH 4/7] only run non-devnet try runtime if we are targeting devnet/testnet/main --- .github/workflows/try-runtime.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/try-runtime.yml b/.github/workflows/try-runtime.yml index 1375892b0..0d740cef0 100644 --- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -24,6 +24,7 @@ jobs: check-testnet: name: check testnet + if: contains(github.base_ref, 'testnet') || contains(github.base_ref, 'devnet') || contains(github.base_ref, 'main') runs-on: SubtensorCI steps: - name: Checkout sources @@ -33,16 +34,18 @@ jobs: uses: "paritytech/try-runtime-gha@v0.1.0" with: runtime-package: "node-subtensor-runtime" - node-uri: "wss://wss://test-archive.dev.opentensor.ai:443" + node-uri: "wss://test-archive.dev.opentensor.ai:443" checks: "all" extra-args: "--disable-spec-version-check --no-weight-warnings" check-finney: name: check finney + if: contains(github.base_ref, 'testnet') || contains(github.base_ref, 'devnet') || contains(github.base_ref, 'main') runs-on: SubtensorCI steps: - name: Checkout sources uses: actions/checkout@v4 + - name: Run Try Runtime Checks uses: "paritytech/try-runtime-gha@v0.1.0" with: From 35a87a6664167caf59f3292a3e8116511c657430 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Fri, 14 Feb 2025 13:03:19 -0500 Subject: [PATCH 5/7] tweak --- .github/workflows/try-runtime.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/try-runtime.yml b/.github/workflows/try-runtime.yml index 0d740cef0..9bce50fb5 100644 --- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -24,7 +24,7 @@ jobs: check-testnet: name: check testnet - if: contains(github.base_ref, 'testnet') || contains(github.base_ref, 'devnet') || contains(github.base_ref, 'main') + if: github.base_ref == 'testnet' || github.base_ref == 'devnet' || github.base_ref == 'main' runs-on: SubtensorCI steps: - name: Checkout sources @@ -40,7 +40,7 @@ jobs: check-finney: name: check finney - if: contains(github.base_ref, 'testnet') || contains(github.base_ref, 'devnet') || contains(github.base_ref, 'main') + if: github.base_ref == 'testnet' || github.base_ref == 'devnet' || github.base_ref == 'main' runs-on: SubtensorCI steps: - name: Checkout sources From a27b99613047fd33d93407c3e1504826cff0e37e Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Tue, 18 Feb 2025 10:46:20 -0500 Subject: [PATCH 6/7] try it again --- .github/workflows/try-runtime.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/try-runtime.yml b/.github/workflows/try-runtime.yml index 9bce50fb5..de43efa9a 100644 --- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -24,7 +24,7 @@ jobs: check-testnet: name: check testnet - if: github.base_ref == 'testnet' || github.base_ref == 'devnet' || github.base_ref == 'main' + # if: github.base_ref == 'testnet' || github.base_ref == 'devnet' || github.base_ref == 'main' runs-on: SubtensorCI steps: - name: Checkout sources From a5df0857a1525367709cbd494fadf86949d88ada Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Tue, 18 Feb 2025 10:50:29 -0500 Subject: [PATCH 7/7] use latest rust-cache version --- .github/workflows/check-rust.yml | 10 +++++----- .github/workflows/update-chainspec.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-rust.yml b/.github/workflows/check-rust.yml index cdee05bfa..722940166 100644 --- a/.github/workflows/check-rust.yml +++ b/.github/workflows/check-rust.yml @@ -93,7 +93,7 @@ jobs: sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler - name: Utilize Shared Rust Cache - uses: Swatinem/rust-cache@v2.2.1 + uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} @@ -137,7 +137,7 @@ jobs: profile: minimal - name: Utilize Shared Rust Cache - uses: Swatinem/rust-cache@v2.2.1 + uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} @@ -178,7 +178,7 @@ jobs: sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler - name: Utilize Shared Rust Cache - uses: Swatinem/rust-cache@v2.2.1 + uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} @@ -217,7 +217,7 @@ jobs: sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler - name: Utilize Rust shared cached - uses: Swatinem/rust-cache@v2.2.1 + uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} @@ -258,7 +258,7 @@ jobs: sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler - name: Utilize Rust shared cached - uses: Swatinem/rust-cache@v2.2.1 + uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} diff --git a/.github/workflows/update-chainspec.yml b/.github/workflows/update-chainspec.yml index bf7cc5588..be50108bf 100644 --- a/.github/workflows/update-chainspec.yml +++ b/.github/workflows/update-chainspec.yml @@ -49,7 +49,7 @@ jobs: sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler - name: Utilize Shared Rust Cache - uses: Swatinem/rust-cache@v2.2.1 + uses: Swatinem/rust-cache@v2 with: key: ubuntu-latest-target/x86_64-unknown-linux-gnu