Skip to content

Conversation

basfroman
Copy link
Collaborator

@basfroman basfroman commented Sep 18, 2025

Context:

Improve Docker build flow for Subtensor Localnet

  • Created install_build_env.sh with a clear warning about its usage in .github/workflows/docker-localnet.yml and Dockerfile-localnet.
  • Parallelized the build of fast-runtime and non-fast-runtime binaries using a matrix strategy.
  • Ensured artifact layout matches expected Dockerfile-localnet paths.
  • Added logic to skip build and dependency installation when BUILT_IN_CI is set (when build happened on GH Actions). Otherwise, regular local build is going in the same way.

Result:

  • Total build time has been reduced from over 3 hours to about 40 minutes.
  • Local Docker build completed successfully.
  • Workflow triggered via workflow_dispatch also completed successfully and the Docker image was published without issues.
  • SDK tests passed successfully when running locally on macOS with M3 and when running in GitHub Actions in the cloud.

@basfroman basfroman self-assigned this Sep 18, 2025
@basfroman basfroman added no-spec-version-bump PR does not contain changes that requires bumping the spec version skip-cargo-audit This PR fails cargo audit but needs to be merged anyway skip-validate-benchmarks This PR fails validate benchmarks but needs to be merged anyway skip-bittensor-e2e-tests Skips Bittensor e2e tests github_actions Pull requests that update GitHub Actions code do not merge labels Sep 18, 2025
@basfroman basfroman changed the title [DO NOT MERGE YET] Improve docker-localnet workflow Improve docker-localnet workflow Sep 21, 2025
@basfroman basfroman requested a review from sam0x17 September 21, 2025 12:55
@sam0x17 sam0x17 merged commit 3fde7dc into devnet-ready Sep 21, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge github_actions Pull requests that update GitHub Actions code no-spec-version-bump PR does not contain changes that requires bumping the spec version skip-bittensor-e2e-tests Skips Bittensor e2e tests skip-cargo-audit This PR fails cargo audit but needs to be merged anyway skip-validate-benchmarks This PR fails validate benchmarks but needs to be merged anyway
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants