Merged
Conversation
Closed
…ck-info # Conflicts: # MIGRATION.md
Co-authored-by: BD Himes <37844818+thewhaleking@users.noreply.github.com>
Co-authored-by: BD Himes <37844818+thewhaleking@users.noreply.github.com>
Co-authored-by: BD Himes <37844818+thewhaleking@users.noreply.github.com>
Co-authored-by: BD Himes <37844818+thewhaleking@users.noreply.github.com>
thewhaleking
reviewed
Oct 6, 2025
Contributor
thewhaleking
left a comment
There was a problem hiding this comment.
I really like this, but I think the structure could use some work. Namely having the generated code be gitignored. If you're a user generating methods, you are going to run into merge conflicts when you just want to git pull.
thewhaleking
approved these changes
Oct 6, 2025
[v10] Add `BlockInfo`
[v10] `serving` extrinsic module refactoring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a new Development framework for Bittensor SDK.
The framework provides a clean orchestration layer for testing and automating subnet lifecycle operations.
It abstracts low-level Subtensor extrinsics into clear, reproducible steps and now serves as the foundation for all existing E2E tests.
As a result, tests are easier to write, understand, and maintain with clearer structure, better logs, and more consistent behavior during execution.
Motivation
Until now, E2E tests relied on direct Subtensor API calls, which led to repeated code, inconsistent patterns, and limited debugging insight.
This framework consolidates those patterns into a single, reusable system built around the
TestSubnetclass.TestSubnetstandardizes subnet operations such as registration, activation, neuron addition, and hyperparameter updates under one API.It introduces synchronous and asynchronous execution modes, unified extrinsic responses, and automatic
NETUIDhandling across test runs.The result is a much more reliable, maintainable, and developer-friendly way to test the Bittensor protocol, both for SDK devs and the broader community.
Key Advantages
execute_steps) and asynchronous (async_execute_steps) modes.NETUIDfor all operations within the same test instance.ExtrinsicResponsetype for richer debugging including status, message, fees, receipts, and etc.Result
All E2E test suites are now built on this framework.
The codebase is simpler, easier to maintain, and much more transparent during debugging and analysis.
For full technical documentation, see
bittensor/extras/dev_framework/README.md.