diff --git a/tools/fleet/canary-poison-confirm.py b/tools/fleet/canary-poison-confirm.py index eedc8185..4bd04f63 100644 --- a/tools/fleet/canary-poison-confirm.py +++ b/tools/fleet/canary-poison-confirm.py @@ -6,7 +6,7 @@ blocks) over its own 1026-block datadir (/root/fleet/node.1026-2109, kept from 2 'Accepted ... via relay' for M's hashes; T never rejected or disconnected by the hands or the hub; the hub's count by peer (R's own line may climb: it is poisoned and old-rule-blind, expected). Then everything wiped and back on 7f0bde70 / 0.3.14 as before. Usage: poison-confirm.py (after the publish-1 table is in).""" -import sys, os, time, subprocess; sys.path.insert(0, "/Users/joshm/Projects/igneum-wt-gpu-fleet/tools/fleet"); from lib import Box, Registry +import sys, os, time, subprocess; sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))); from lib import Box, Registry def st(): return time.strftime("%H:%M:%SZ", time.gmtime()) R=Box.from_registry("pool-1"); M=Box.from_registry("p2-3090-3"); T=Box.from_registry("p2-4090-3"); hub=Box.from_registry("hub-1") _, rM = Registry.find("p2-3090-3"); _, rR = Registry.find("pool-1") diff --git a/tools/fleet/canary-poisoned-peer.py b/tools/fleet/canary-poisoned-peer.py index 449142a3..ad9e59de 100644 --- a/tools/fleet/canary-poisoned-peer.py +++ b/tools/fleet/canary-poisoned-peer.py @@ -4,7 +4,7 @@ New node p2-4090-3 (wiped datadir, mining; peers the hub, the seed box and pool- p2-4090-3's own log naming version 1026 as rejected and never 'Accepted ... via relay' of a 1026 block, the hands and the hub never rejecting or disconnecting p2-4090-3, the hub holding a block by p2-4090-3's key mined in the window, p2-3090-2 back at the tip, the hub's 'wrong block version' count split by peer.""" -import sys, os, time, hashlib; sys.path.insert(0, "/Users/joshm/Projects/igneum-wt-gpu-fleet/tools/fleet"); from lib import Box, Registry +import sys, os, time, hashlib; sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))); from lib import Box, Registry def st(): return time.strftime("%H:%M:%SZ", time.gmtime()) NODE, SHA, MINER = sys.argv[1], sys.argv[2], sys.argv[3] assert hashlib.sha256(open(NODE,"rb").read()).hexdigest()==SHA, "node sha" diff --git a/tools/fleet/publish-0315.py b/tools/fleet/publish-0315.py index f3cae4a1..decc1a16 100644 --- a/tools/fleet/publish-0315.py +++ b/tools/fleet/publish-0315.py @@ -11,7 +11,7 @@ the supervisor's loop restarts it on the new miner and worker. Then the read-bac import sys, os, hashlib sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))); from lib import Box, Registry, standing from concurrent.futures import ThreadPoolExecutor -SHIP = "/Users/joshm/Projects/igneum-wt-ship0315" +SHIP = os.environ["IGNEUM_SHIP_TREE"] # the shipper's worktree with the built binaries; no default: another worktree is never assumed NODE = (SHIP + "/vendor/igneum-node-0315/target-remote/release/igneumd", "7f0bde70cf2e72a3a9479ba6421f2b37162c3dd4391bf413717c99e6f168668d") # release-0.3.15-node f1ea7a38 (the stamp gate, the receive-side version rule, the pruned-node sync fix) MINER = (SHIP + "/vendor/igneum-node-0315/target-remote/release/igneum-miner", "3976c1b270761218") CUDA = (SHIP + "/infra/cross/out-workers/igneum-worker-cuda", "97e036e23f4ace66") diff --git a/tools/fleet/publish-2-move.py b/tools/fleet/publish-2-move.py index fa697c95..22c38a86 100644 --- a/tools/fleet/publish-2-move.py +++ b/tools/fleet/publish-2-move.py @@ -1,7 +1,7 @@ """Publish 2 on the standing live boxes (shipper, 22:43Z): the sixteen-field object replaces /root/fleet/override.json on every live standing box, the node is restarted on it (the supervisor's start_node, data dir kept; the miner restarts with the node and is held until synced), then the read-back: digest line (must be eada4bda...), synced, miner up. Devnet 2 boxes untouched.""" -import sys, os, time; sys.path.insert(0, "/Users/joshm/Projects/igneum-wt-gpu-fleet/tools/fleet"); from lib import Box, Registry, standing +import sys, os, time; sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))); from lib import Box, Registry, standing from concurrent.futures import ThreadPoolExecutor def st(): return time.strftime("%H:%M:%SZ", time.gmtime()) F16=os.path.expanduser("~/Desktop/fleet/override-16.json"); WANT="eada4bda8aa8368c"