diff --git a/.baedeker/Dockerfile b/.baedeker/Dockerfile index 0525c79c5..803d63156 100644 --- a/.baedeker/Dockerfile +++ b/.baedeker/Dockerfile @@ -17,7 +17,7 @@ ENV PATH="/root/.cargo/bin:${PATH}" COPY . . # Cargo build -RUN cargo build --release +RUN cargo build --release --target-dir /target && cp /target/release/node-subtensor ./target/release EXPOSE 9946 # Run the Substrate node binary diff --git a/.baedeker/util/runtimeUpgrade.js b/.baedeker/util/runtimeUpgrade.js index 5451d7afb..d9cc52753 100644 --- a/.baedeker/util/runtimeUpgrade.js +++ b/.baedeker/util/runtimeUpgrade.js @@ -28,21 +28,18 @@ async function main() { ); // Send the transaction using the sudo account - const unsub = await sudoCall.signAndSend(sudoAccount, ({ status }) => { + await sudoCall.signAndSend(sudoAccount, ({ status }) => { if (status.isInBlock) { console.log(`Transaction included at blockHash ${status.asInBlock}`); - } else if (status.isFinalized) { - console.log(`Transaction finalized at blockHash ${status.asFinalized}`); - unsub(); process.exit(0); } }); - // Disconnect from the provider on error or completion - // provider.disconnect(); - // We miss disconnect/unref for some reason, so we need explicit successful exit here process.exit(0); } -main().catch(console.error); +main().catch((error) => { + console.error(error); + process.exit(1); +}); diff --git a/.github/workflows/check-finney-clone.yml b/.github/workflows/check-finney-clone.yml index 4c53f56b5..60ef7d942 100644 --- a/.github/workflows/check-finney-clone.yml +++ b/.github/workflows/check-finney-clone.yml @@ -216,3 +216,18 @@ jobs: ../../scripts/wait_first_block_local.sh echo "Executing runtime upgrade" node runtimeUpgrade.js + +# check that runtime upgrade happened (spec version updated) +# Wait for new blocks after upgrade +# Balance transfer test + +# need process exit from JS, it's not exiting + +# see how to run custom JS with this job (msg from Sam J.) + +# epoch test: Set subnet1 tempo to 10 blocks +# - wait for OTF hotkey to receive rewards +# - check block times + +# feature for testing hotkey tempos (talk to Samuel - maybe add to fast-blocks) +# - add childkey test diff --git a/docker-compose-baedeker.yml b/docker-compose-baedeker.yml index 56a08dec4..556858ea5 100644 --- a/docker-compose-baedeker.yml +++ b/docker-compose-baedeker.yml @@ -2,6 +2,10 @@ services: localnet: ports: - 9946:9946 + volumes: + - type: bind + source: ./target + target: /target build: context: . dockerfile: ./.baedeker/Dockerfile