Skip to content

New era of e2e Tests Bittensor#2743

Merged
basfroman merged 35 commits intostagingfrom
feat/roman/test-run-tests-without-building
Mar 17, 2025
Merged

New era of e2e Tests Bittensor#2743
basfroman merged 35 commits intostagingfrom
feat/roman/test-run-tests-without-building

Conversation

@basfroman
Copy link
Collaborator

@basfroman basfroman commented Mar 13, 2025

DO NOT MERGE until opentensor/subtensor#1415 merged

Massive e2e test improvement

Tests are run on the basis of the docker image ghcr.io/opentensor/subtensor-localnet:latest

@basfroman basfroman changed the title DO NOT MERGE - testing feature New era of e2e Tests Bittensor Mar 15, 2025
@basfroman basfroman requested a review from a team March 15, 2025 01:49
@basfroman basfroman self-assigned this Mar 17, 2025
ibraheem-abe
ibraheem-abe previously approved these changes Mar 17, 2025
Copy link
Contributor

@thewhaleking thewhaleking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM. Just a few changes.

if sys.platform.startswith("linux"):
docker_commend = (
"Install docker with command "
"[blue]sudo apt-get update && sudo apt-get install docker.io -y[/blue]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only works for apt-based distros. May want to adjust the wording here.

if not result.stdout.strip():
raise RuntimeError("Docker container failed to start.")

yield SubstrateInterface(url="ws://127.0.0.1:9944")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should .close() this in the finally block

thewhaleking
thewhaleking previously approved these changes Mar 17, 2025
@basfroman basfroman merged commit 3d648df into staging Mar 17, 2025
38 checks passed
@basfroman basfroman deleted the feat/roman/test-run-tests-without-building branch March 17, 2025 19:57
@ibraheem-abe ibraheem-abe mentioned this pull request Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants