Skip to content

Commit 6e6c783

Browse files
committed
Add baedeker workflow - in progress
1 parent 27cdddc commit 6e6c783

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

.baedeker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV PATH="/root/.cargo/bin:${PATH}"
1717
COPY . .
1818

1919
# Cargo build
20-
RUN cargo build --release
20+
RUN cargo build --release --target-dir /target && cp /target/release/node-subtensor ./target/release
2121
EXPOSE 9946
2222

2323
# Run the Substrate node binary

.baedeker/util/runtimeUpgrade.js

+5-8
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,18 @@ async function main() {
2828
);
2929

3030
// Send the transaction using the sudo account
31-
const unsub = await sudoCall.signAndSend(sudoAccount, ({ status }) => {
31+
await sudoCall.signAndSend(sudoAccount, ({ status }) => {
3232
if (status.isInBlock) {
3333
console.log(`Transaction included at blockHash ${status.asInBlock}`);
34-
} else if (status.isFinalized) {
35-
console.log(`Transaction finalized at blockHash ${status.asFinalized}`);
36-
unsub();
3734
process.exit(0);
3835
}
3936
});
4037

41-
// Disconnect from the provider on error or completion
42-
// provider.disconnect();
43-
4438
// We miss disconnect/unref for some reason, so we need explicit successful exit here
4539
process.exit(0);
4640
}
4741

48-
main().catch(console.error);
42+
main().catch((error) => {
43+
console.error(error);
44+
process.exit(1);
45+
});

.github/workflows/check-finney-clone.yml

+15
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,18 @@ jobs:
216216
../../scripts/wait_first_block_local.sh
217217
echo "Executing runtime upgrade"
218218
node runtimeUpgrade.js
219+
220+
# check that runtime upgrade happened (spec version updated)
221+
# Wait for new blocks after upgrade
222+
# Balance transfer test
223+
224+
# need process exit from JS, it's not exiting
225+
226+
# see how to run custom JS with this job (msg from Sam J.)
227+
228+
# epoch test: Set subnet1 tempo to 10 blocks
229+
# - wait for OTF hotkey to receive rewards
230+
# - check block times
231+
232+
# feature for testing hotkey tempos (talk to Samuel - maybe add to fast-blocks)
233+
# - add childkey test

docker-compose-baedeker.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ services:
22
localnet:
33
ports:
44
- 9946:9946
5+
volumes:
6+
- type: bind
7+
source: ./target
8+
target: /target
59
build:
610
context: .
711
dockerfile: ./.baedeker/Dockerfile

0 commit comments

Comments
 (0)