2022-08-12 00:04:01 +03:00
|
|
|
:: test gall request queue fix, which implicates ames and gall
|
|
|
|
::
|
2022-08-19 14:36:23 +03:00
|
|
|
/+ *test, v=test-ames-gall
|
2022-08-12 00:04:01 +03:00
|
|
|
|%
|
2022-08-19 16:27:12 +03:00
|
|
|
++ test-watch
|
2022-08-19 14:36:23 +03:00
|
|
|
%- run-chain
|
|
|
|
|. :- %|
|
2022-08-19 15:08:57 +03:00
|
|
|
=+ nec-bud:v
|
2022-08-19 17:29:19 +03:00
|
|
|
:: poke %sub to tell it to subscribe
|
2022-08-19 15:08:57 +03:00
|
|
|
=/ =task:gall [%deal [~nec ~nec] %sub %poke watch+!>(~bud)]
|
|
|
|
=^ t1 gall.nec
|
|
|
|
%: gall-check-call:v gall.nec
|
|
|
|
[~1111.1.1 0xdead.beef *roof]
|
|
|
|
[~[/foo] task]
|
2022-08-19 17:11:21 +03:00
|
|
|
:~ :- ~[/foo] [%give %unto %poke-ack ~]
|
|
|
|
:- ~[/init]
|
|
|
|
:* %pass /use/sub/0w1.d6Isf/out/~bud/pub/1/sub
|
2022-08-19 15:08:57 +03:00
|
|
|
[%g %deal [~nec ~bud] %pub %watch /foo]
|
|
|
|
== ==
|
|
|
|
==
|
|
|
|
:- t1 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: handle gall passing the %watch to itself, which passes to ames
|
2022-08-19 15:08:57 +03:00
|
|
|
=^ t2 gall.nec
|
|
|
|
%: gall-check-call:v gall.nec
|
|
|
|
[~1111.1.1 0xdead.beef *roof]
|
2022-08-19 17:11:21 +03:00
|
|
|
:- ~[/use/sub/0w1.d6Isf/out/~bud/pub/1/sub /init]
|
|
|
|
[%deal [~nec ~bud] %pub %watch /foo]
|
2022-08-19 15:08:57 +03:00
|
|
|
:~ :- ~[/init] [%pass /sys/lag %a %heed ~bud]
|
|
|
|
:- ~[/init] [%pass /sys/era %j %public-keys (sy ~bud ~)]
|
2022-08-19 17:11:21 +03:00
|
|
|
:- ~[/use/sub/0w1.d6Isf/out/~bud/pub/1/sub /init]
|
2022-08-19 15:08:57 +03:00
|
|
|
[%pass /sys/way/~bud/pub %a %plea ~bud %g /ge/pub [%0 %s /foo]]
|
2022-08-19 14:36:23 +03:00
|
|
|
==
|
2022-08-19 15:08:57 +03:00
|
|
|
==
|
|
|
|
:- t2 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: pass %plea to ames, which gives a packet to vere
|
2022-08-19 15:33:39 +03:00
|
|
|
=^ t3 ames.nec
|
|
|
|
%: ames-check-call:v ames.nec
|
|
|
|
[~1111.1.1 0xdead.beef *roof]
|
2022-08-19 17:11:21 +03:00
|
|
|
:- ~[/sys/way/~bud/pub /use/sub/0w1.d6Isf/out/~bud/pub/1/sub /init]
|
|
|
|
[%plea ~bud %g /ge/pub [%0 %s /foo]]
|
2022-08-19 15:33:39 +03:00
|
|
|
:~ :- ~[//unix]
|
|
|
|
:* %give %send [%& ~nec]
|
2022-08-19 15:56:41 +03:00
|
|
|
0xae59.5b29.277b.22c1.20b7.a8db.9086.46df.31bd.f9bc.
|
|
|
|
2633.7300.17d4.f5fc.8be5.8bfe.5c9d.36d9.2ea1.7cb3.
|
|
|
|
8a00.0200.0132.8fd4.f000
|
2022-08-19 15:33:39 +03:00
|
|
|
==
|
|
|
|
:- ~[/ames] [%pass /pump/~bud/0 %b %wait ~1111.1.1..00.00.01]
|
|
|
|
==
|
|
|
|
==
|
|
|
|
:- t3 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: send packet across the network
|
2022-08-19 16:27:12 +03:00
|
|
|
=^ t4 ames.bud
|
2022-08-19 15:33:39 +03:00
|
|
|
%: ames-check-call:v ames.bud
|
|
|
|
[~1111.1.2 0xbeef.dead *roof]
|
|
|
|
:- ~[//unix]
|
|
|
|
:* %hear [%& ~nec]
|
2022-08-19 15:56:41 +03:00
|
|
|
0xae59.5b29.277b.22c1.20b7.a8db.9086.46df.31bd.f9bc.
|
|
|
|
2633.7300.17d4.f5fc.8be5.8bfe.5c9d.36d9.2ea1.7cb3.
|
|
|
|
8a00.0200.0132.8fd4.f000
|
2022-08-19 15:33:39 +03:00
|
|
|
==
|
|
|
|
:~ :- ~[//unix] [%pass /qos %d %flog %text "; ~nec is your neighbor"]
|
|
|
|
:- ~[//unix]
|
2022-08-19 15:56:41 +03:00
|
|
|
[%pass /bone/~nec/0/1 %g %plea ~nec %g /ge/pub [%0 %s /foo]]
|
2022-08-19 15:33:39 +03:00
|
|
|
==
|
|
|
|
==
|
2022-08-19 15:56:41 +03:00
|
|
|
:- t4 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: handle pass from ames to gall, which passes the %watch to itself
|
2022-08-19 15:56:41 +03:00
|
|
|
=^ t5 gall.bud
|
|
|
|
%: gall-check-call:v gall.bud
|
|
|
|
[~1111.1.2 0xbeef.dead *roof]
|
|
|
|
:- ~[/bone/~nec/0/1 //unix]
|
|
|
|
[%plea ~nec %g /ge/pub [%0 %s /foo]]
|
|
|
|
:~ :- ~[/init] [%pass /sys/lag %a %heed ~nec]
|
|
|
|
:- ~[/init] [%pass /sys/era %j %public-keys (sy ~nec ~)]
|
|
|
|
:- ~[/bone/~nec/0/1 //unix]
|
|
|
|
[%pass /sys/req/~nec/pub %g %deal [~nec ~bud] %pub %watch /foo]
|
|
|
|
==
|
|
|
|
==
|
2022-08-19 16:06:30 +03:00
|
|
|
:- t5 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: gall runs %pub with %watch, gives ack to itself
|
2022-08-19 16:06:30 +03:00
|
|
|
=^ t6 gall.bud
|
|
|
|
%: gall-check-call:v gall.bud
|
|
|
|
[~1111.1.2 0xbeef.dead *roof]
|
|
|
|
:- ~[/sys/req/~nec/pub /bone/~nec/0/1 //unix]
|
|
|
|
[%deal [~nec ~bud] %pub %watch /foo]
|
|
|
|
:~ :- ~[/sys/req/~nec/pub /bone/~nec/0/1 //unix]
|
|
|
|
[%give %unto %watch-ack ~]
|
|
|
|
==
|
|
|
|
==
|
2022-08-19 16:13:30 +03:00
|
|
|
:- t6 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: gall gives ack to ames
|
2022-08-19 16:13:30 +03:00
|
|
|
=^ t7 gall.bud
|
|
|
|
%: gall-check-take:v gall.bud
|
|
|
|
[~1111.1.2 0xbeef.dead *roof]
|
|
|
|
:+ /sys/req/~nec/pub ~[/bone/~nec/0/1 //unix]
|
|
|
|
[%gall %unto %watch-ack ~]
|
|
|
|
:~ :- ~[/bone/~nec/0/1 //unix] [%give %done ~]
|
|
|
|
==
|
|
|
|
==
|
2022-08-19 16:27:12 +03:00
|
|
|
:- t7 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: ames hears ack from gall, sends over the network
|
2022-08-19 16:27:12 +03:00
|
|
|
=^ t8 ames.bud
|
|
|
|
%: ames-check-take:v ames.bud
|
|
|
|
[~1111.1.2 0xbeef.dead *roof]
|
|
|
|
:+ /bone/~nec/0/1 ~[//unix]
|
|
|
|
[%gall %done ~]
|
|
|
|
:~ :- ~[//unix]
|
|
|
|
:* %give %send [%| `@`'lane-bar']
|
|
|
|
0x2.0219.8100.0485.5530.3c88.9068.3cc6.484e.
|
|
|
|
2d9d.076e.6d00.0100.0223.9ae9.5000
|
|
|
|
== ==
|
|
|
|
==
|
2022-08-19 16:43:23 +03:00
|
|
|
:- t8 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: ames hears watch-ack packet, gives to gall
|
2022-08-19 16:30:44 +03:00
|
|
|
=^ t9 ames.nec
|
|
|
|
%: ames-check-call:v ames.nec
|
|
|
|
[~1111.1.3 0xdead.beef *roof]
|
|
|
|
:- ~[//unix]
|
|
|
|
:* %hear [%& ~bud]
|
|
|
|
0x2.0219.8100.0485.5530.3c88.9068.3cc6.484e.
|
|
|
|
2d9d.076e.6d00.0100.0223.9ae9.5000
|
|
|
|
==
|
|
|
|
:~ :- ~[//unix] [%pass /qos %d %flog %text "; ~bud is your neighbor"]
|
2022-08-19 17:11:21 +03:00
|
|
|
:- ~[/sys/way/~bud/pub /use/sub/0w1.d6Isf/out/~bud/pub/1/sub /init]
|
|
|
|
[%give %done ~]
|
2022-08-19 16:30:44 +03:00
|
|
|
:- ~[/ames] [%pass /pump/~bud/0 %b %rest ~1111.1.1..00.00.01]
|
|
|
|
==
|
|
|
|
==
|
2022-08-19 17:11:21 +03:00
|
|
|
:- t9 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: gall gives watch-ack to itself
|
2022-08-19 17:11:21 +03:00
|
|
|
=^ t10 gall.nec
|
|
|
|
%: gall-check-take:v gall.nec
|
|
|
|
[~1111.1.3 0xdead.beef *roof]
|
|
|
|
:+ /sys/way/~bud/pub
|
|
|
|
~[/use/sub/0w1.d6Isf/out/~bud/pub/1/sub /init]
|
|
|
|
[%ames %done ~]
|
|
|
|
:~ :- ~[/use/sub/0w1.d6Isf/out/~bud/pub/1/sub /init]
|
|
|
|
[%give %unto %watch-ack ~]
|
|
|
|
==
|
|
|
|
==
|
|
|
|
:- t10 |. :- %|
|
2022-08-19 17:29:19 +03:00
|
|
|
:: gall delivers %watch-ack to %sub
|
2022-08-19 17:11:21 +03:00
|
|
|
=^ t11 gall.nec
|
|
|
|
%: gall-check-take:v gall.nec
|
|
|
|
[~1111.1.3 0xdead.beef *roof]
|
|
|
|
[/use/sub/0w1.d6Isf/out/~bud/pub/1/sub ~[/init] %gall %unto %watch-ack ~]
|
|
|
|
~
|
|
|
|
==
|
2022-08-19 17:29:19 +03:00
|
|
|
:: start the clog and kick process; give clog to publisher gall
|
|
|
|
:- t11 |. :- %|
|
|
|
|
=^ t12 gall.bud
|
|
|
|
%: gall-check-take:v gall.bud
|
|
|
|
[~1111.1.4 0xbeef.dead *roof]
|
|
|
|
:+ /sys/lag ~[/init]
|
|
|
|
[%ames %clog ~nec]
|
|
|
|
:~ :- ~[/sys/req/~nec/pub /bone/~nec/0/1 //unix]
|
|
|
|
[%give %unto %kick ~]
|
|
|
|
==
|
|
|
|
==
|
2022-08-19 18:53:38 +03:00
|
|
|
:- t12 |. :- %|
|
|
|
|
=^ t13 gall.bud
|
|
|
|
%: gall-check-take:v gall.bud
|
|
|
|
[~1111.1.4 0xbeef.dead *roof]
|
|
|
|
:+ /sys/req/~nec/pub ~[/bone/~nec/0/1 /init]
|
|
|
|
[%gall %unto %kick ~]
|
|
|
|
:~ :- ~[/bone/~nec/0/1 /init] [%give %boon %x ~]
|
|
|
|
==
|
|
|
|
==
|
|
|
|
:- t13 |. :- %& ~
|
2022-08-12 00:04:01 +03:00
|
|
|
--
|