Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/apply-benchmark-patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Check out PR branch
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/cargo-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
cargo-audit:
name: cargo audit
runs-on: [self-hosted, type-ccx13]
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit') }}
if: |
Comment thread
thewhaleking marked this conversation as resolved.
Outdated
((github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
github.event.label.name == 'skip-cargo-audit') &&
!contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit')
Comment thread
thewhaleking marked this conversation as resolved.
Outdated
steps:
- name: Check-out repositoroy under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install dependencies
run: |
Expand Down
36 changes: 20 additions & 16 deletions .github/workflows/check-bittensor-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ env:
jobs:
check-label:
runs-on: ubuntu-latest
if: |
github.event_name != 'pull_request' ||
(github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
github.event.label.name == 'skip-bittensor-e2e-tests'
Comment thread
thewhaleking marked this conversation as resolved.
Outdated
outputs:
skip-bittensor-e2e-tests: ${{ steps.get-labels.outputs.skip-bittensor-e2e-tests || steps.set-default.outputs.skip-bittensor-e2e-tests }}
steps:
Expand All @@ -36,7 +40,7 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install -y --no-install-recommends -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" gh jq

- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}
Expand Down Expand Up @@ -82,12 +86,12 @@ jobs:
run: git checkout staging

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: "false"

Expand Down Expand Up @@ -142,12 +146,12 @@ jobs:
run: git checkout staging

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: "false"

Expand Down Expand Up @@ -199,7 +203,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}
Expand Down Expand Up @@ -259,7 +263,7 @@ jobs:
build/ci_target/${RUNTIME}/${TRIPLE}/release/wbuild/node-subtensor-runtime/

- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: binaries-${{ matrix.platform.triple }}-${{ matrix.runtime }}
path: build/
Expand All @@ -272,13 +276,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}

- name: Download all binary artifacts
uses: actions/download-artifact@v5
uses: actions/download-artifact@v8
with:
pattern: binaries-*
path: build/
Expand All @@ -301,7 +305,7 @@ jobs:
run: docker save -o /mnt/data/subtensor-localnet.tar localnet

- name: Upload Docker Image as Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: subtensor-localnet
path: /mnt/data/subtensor-localnet.tar
Expand All @@ -324,13 +328,13 @@ jobs:
name: "cli: ${{ matrix.label }}"
steps:
- name: Check-out repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: "false"

Expand All @@ -353,7 +357,7 @@ jobs:
uv run --active pip install pytest

- name: Download Cached Docker Image
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: subtensor-localnet

Expand Down Expand Up @@ -405,13 +409,13 @@ jobs:
name: "sdk: ${{ matrix.label }}"
steps:
- name: Check-out repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: "false"

Expand All @@ -434,7 +438,7 @@ jobs:
uv run --active pip install pytest

- name: Download Cached Docker Image
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: subtensor-localnet

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/check-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ jobs:
check-spec-version:
name: Check spec_version bump
runs-on: [self-hosted, type-ccx33]
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
if: |
((github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
github.event.label.name == 'no-spec-version-bump') &&
!contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump')
Comment thread
thewhaleking marked this conversation as resolved.
Outdated
steps:
- name: Dependencies
run: |
Expand All @@ -29,7 +32,7 @@ jobs:
toolchain: stable

- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:

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

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v4.1.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v4.1.0

- name: Build Docker Image
run: docker build .
7 changes: 5 additions & 2 deletions .github/workflows/check-finney.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ jobs:
check-spec-version:
name: Check spec_version bump
runs-on: [self-hosted, type-ccx33]
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
if: |
((github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
github.event.label.name == 'no-spec-version-bump') &&
!contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump')
Comment thread
thewhaleking marked this conversation as resolved.
Outdated
steps:
- name: Dependencies
run: |
Expand All @@ -29,7 +32,7 @@ jobs:
toolchain: stable

- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/check-node-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
build:
name: build ${{ matrix.version.name }}
runs-on: [self-hosted, type-ccx33]
if: contains(github.event.pull_request.labels.*.name, 'check-node-compat')
if: github.event.label.name == 'check-node-compat'
env:
RUST_BACKTRACE: full
strategy:
matrix:
version:
- { name: old, ref: devnet-ready }
- { name: new, ref: ${{ github.head_ref }} }
- name: old
ref: devnet-ready
- name: new
ref: ${{ github.head_ref }}

steps:
- name: Install dependencies
Expand All @@ -42,7 +44,7 @@ jobs:
key: "check-node-compat-${{ matrix.version.name }}"

- name: Checkout ${{ matrix.version.name }}
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ matrix.version.ref }}
path: ${{ matrix.version.name }}
Expand All @@ -52,7 +54,7 @@ jobs:
run: cargo build --release --locked

- name: Upload ${{ matrix.version.name }} node binary
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: node-subtensor-${{ matrix.version.name }}
path: ${{ matrix.version.name }}/target/release/node-subtensor
Expand All @@ -63,19 +65,19 @@ jobs:
runs-on: [self-hosted, type-ccx33]
steps:
- name: Download old node binary
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: node-subtensor-old
path: /tmp/node-subtensor-old

- name: Download new node binary
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: node-subtensor-new
path: /tmp/node-subtensor-new

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "24"

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
RUST_BACKTRACE: full
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install dependencies
run: |
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
SKIP_WASM_BUILD: 1
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install dependencies
run: |
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
SKIP_WASM_BUILD: 1
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install dependencies
run: |
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
SKIP_WASM_BUILD: 1
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install dependencies
run: |
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
SKIP_WASM_BUILD: 1
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install dependencies
run: |
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
SKIP_WASM_BUILD: 1
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install dependencies
run: |
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0 # Dont clone historic commits.

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/check-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ jobs:
check-spec-version:
name: Check spec_version bump
runs-on: [self-hosted, type-ccx33]
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
if: |
((github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
github.event.label.name == 'no-spec-version-bump') &&
!contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump')
Comment thread
thewhaleking marked this conversation as resolved.
Outdated
steps:
- name: Dependencies
run: |
Expand All @@ -29,7 +32,7 @@ jobs:
toolchain: stable

- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ jobs:
RUST_BACKTRACE: full
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install Rust
# This has been archived since Oct 2023, might be a good idea to eventually switch to
# https://github.com/marketplace/actions/rustup-toolchain-install
uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -40,7 +42,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "22"

Expand Down
Loading
Loading