Skip to content

Commit f8db5d0

Browse files
authored
Merge pull request #1804 from opentensor/testnet
mainnet merge 7/1/2025
2 parents e9bbb61 + 09d4282 commit f8db5d0

39 files changed

+3043
-165
lines changed

.github/workflows/check-bittensor-e2e-tests.yml.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ jobs:
3232
steps:
3333
- name: Check out repository
3434
uses: actions/checkout@v4
35+
with:
36+
repository: ${{ github.event.pull_request.head.repo.full_name }}
37+
ref: ${{ github.event.pull_request.head.ref }}
3538

3639
- name: Get labels from PR
3740
id: get-labels
3841
run: |
39-
LABELS=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
42+
LABELS=$(gh pr -R ${{ github.repository }} view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
4043
echo "Current labels: $LABELS"
4144
if echo "$LABELS" | grep -q "skip-bittensor-e2e-tests"; then
4245
echo "skip-bittensor-e2e-tests=true" >> $GITHUB_OUTPUT
@@ -103,7 +106,8 @@ jobs:
103106
- name: Checkout code
104107
uses: actions/checkout@v4
105108
with:
106-
ref: ${{ github.head_ref }}
109+
repository: ${{ github.event.pull_request.head.repo.full_name }}
110+
ref: ${{ github.event.pull_request.head.ref }}
107111

108112
- name: Patch non-fast-block node
109113
run: |
@@ -160,6 +164,9 @@ jobs:
160164
steps:
161165
- name: Check-out repository
162166
uses: actions/checkout@v4
167+
with:
168+
repository: ${{ github.event.pull_request.head.repo.full_name }}
169+
ref: ${{ github.event.pull_request.head.ref }}
163170

164171
- name: Install uv
165172
uses: astral-sh/setup-uv@v5
@@ -257,6 +264,9 @@ jobs:
257264
steps:
258265
- name: Check-out repository
259266
uses: actions/checkout@v4
267+
with:
268+
repository: ${{ github.event.pull_request.head.repo.full_name }}
269+
ref: ${{ github.event.pull_request.head.ref }}
260270

261271
- name: Install uv
262272
uses: astral-sh/setup-uv@v5

.github/workflows/docker.yml

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
security-events: write
2323

2424
jobs:
25-
publish-x86:
25+
publish:
2626
runs-on: SubtensorCI
2727

2828
steps:
@@ -64,53 +64,7 @@ jobs:
6464
with:
6565
context: .
6666
push: true
67-
platforms: linux/amd64
67+
platforms: linux/amd64,linux/arm64
6868
tags: |
69-
ghcr.io/${{ github.repository }}:${{ env.tag }}-amd64
70-
${{ env.latest_tag == 'true' && format('ghcr.io/{0}:latest-amd64', github.repository) || '' }}
71-
publish-arm:
72-
runs-on: SubtensorCI
73-
74-
steps:
75-
- name: Determine Docker tag and ref
76-
id: tag
77-
run: |
78-
branch_or_tag="${{ github.event.inputs.branch-or-tag || github.ref_name }}"
79-
echo "Determined branch or tag: $branch_or_tag"
80-
echo "tag=$branch_or_tag" >> $GITHUB_ENV
81-
echo "ref=$branch_or_tag" >> $GITHUB_ENV
82-
83-
# Check if this is a tagged release (not devnet-ready/devnet/testnet)
84-
if [[ "${{ github.event_name }}" == "release" && "$branch_or_tag" != "devnet-ready" && "$branch_or_tag" != "devnet" && "$branch_or_tag" != "testnet" ]]; then
85-
echo "latest_tag=true" >> $GITHUB_ENV
86-
else
87-
echo "latest_tag=false" >> $GITHUB_ENV
88-
fi
89-
90-
- name: Checkout code
91-
uses: actions/checkout@v4
92-
with:
93-
ref: ${{ env.ref }}
94-
95-
- name: Set up QEMU
96-
uses: docker/setup-qemu-action@v3
97-
98-
- name: Set up Docker Buildx
99-
uses: docker/setup-buildx-action@v3
100-
101-
- name: Login to GHCR
102-
uses: docker/login-action@v3
103-
with:
104-
registry: ghcr.io
105-
username: ${{ github.actor }}
106-
password: ${{ secrets.GITHUB_TOKEN }}
107-
108-
- name: Build and push Docker image
109-
uses: docker/build-push-action@v6
110-
with:
111-
context: .
112-
push: true
113-
platforms: linux/arm64
114-
tags: |
115-
ghcr.io/${{ github.repository }}:${{ env.tag }}-arm64
116-
${{ env.latest_tag == 'true' && format('ghcr.io/{0}:latest-arm64', github.repository) || '' }}
69+
ghcr.io/${{ github.repository }}:${{ env.tag }}
70+
${{ env.latest_tag == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}

0 commit comments

Comments
 (0)