Commit Graph

15739 Commits

Author SHA1 Message Date
Fang
603a3ae32b
eth-watcher: saner %watch behavior
When configuring a watchdog on a path that already exists, we now
"overwrite" it, meaning we throw away all history and trawl the node
for logs again.
If the only config change is the url, however, we silently modify it,
and simply use it "from this point onward".

This matches the behavior of the original azimuth-tracker.
2019-10-30 16:46:37 +01:00
Fang
e8d52e9b58
eth-watcher: implement %clear poke
We don't need to bother un-setting any timers or other subscriptions,
because those all happen on the app-wide level, instead of per watchdog.
2019-10-30 16:35:12 +01:00
Fang
c3ac547b3b
eth-watcher: store logs in state to implement peer
In order to give an initial response to incoming subscriptions (without
resorting to retrieving that data from chain again) we now store event
log history in state.

Instead of discarding pending-logs entirely after sending out updates,
we add them to the watchdog's history.
Just like pending-logs, we remove from the head during a rewind (though
not before exhausting the pending-logs).
2019-10-30 00:37:12 +01:00
Fang
277f2955c3
eth-watcher: move types into /sur file 2019-10-29 21:13:28 +01:00
Fang
4e9ece6cea
eth-watcher: properly tag out-peer-data 2019-10-29 19:14:21 +01:00
Fang
6437d860fe
eth-watcher: single update timer loop
Kicks the update timer on application start, then sets a new timer
whenever it's awoken. This aims to ensure eth-watcher never stops
looking for updates periodically.
2019-10-29 19:13:16 +01:00
Fang
67b4c9975e
eth-watcher: implement /block peek
/block/some-path allows you to get the next block that will be checked
for updates for the watcher at /some-path. Useful for uptime checking.
2019-10-29 19:11:36 +01:00
Fang
cda68b90b9
eth: turn azimuth-tracker into eth-watcher
Uses the logic existing in azimuth-tracker to implement a new
eth-watcher, which can look at Ethereum nodes for _any_ events, as
opposed to exclusively a subset of the Azimuth contract's events.

Azimuth-tracker will be reimplemented as a dependent of this in
forthcoming commits.
2019-10-25 19:25:31 +02:00
Fang
7bc17357ba
eth: remove old eth-watcher files
These were deprecated in favor of azimuth-tracker in #1320.

(Azimuth-tracker, however, isn't a general-purpose Ethereum log watcher
tool. Commits to transform it into a more broadly useful tool are
forthcoming.)
2019-10-25 13:08:27 +02:00
Jared Tobin
150efffbd2
Merge branch 'jt/gall-ap-scry-fix' (#1868)
* jt/gall-ap-scry-fix:
  gall: fix bug in +ap-peek

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-23 08:36:36 +08:00
Jared Tobin
3fddf99260
Merge branch 'claz-invites-newline' (#1846)
* claz-invites-newline:
  claz: do invite file reading in +read-invites
  claz: ignore empty lines in invites file

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-23 08:36:07 +08:00
Jared Tobin
095a0a155a
Merge branch 'publish-fixes' (#1865)
* publish-fixes:
  publish: auto-resubscribe on quit, crash on failed subscription
  publish: added permission logic to %serve and import flows

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-23 08:35:01 +08:00
Jared Tobin
eddcbc4b08
Merge branch 'u3-errors' (#1872)
* u3-errors:
  u3: print messages for fatal errors to stderr
  u3: removes redundant memory fault assertion
  u3: use clearer assertions for loom corruption

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-23 08:34:02 +08:00
Joe Bryan
79aff11436 u3: print messages for fatal errors to stderr
u3l_log may send over a pipe, so message may not be delivered
if the error in question aborts the process
2019-10-22 13:00:09 -07:00
Joe Bryan
75dfcad6f7 u3: removes redundant memory fault assertion 2019-10-22 12:58:30 -07:00
Joe Bryan
9c7455f218 u3: use clearer assertions for loom corruption 2019-10-22 12:40:43 -07:00
Isaac Visintainer
0a5fcf8210 publish: auto-resubscribe on quit, crash on failed subscription 2019-10-22 10:18:34 -07:00
Isaac Visintainer
aed15a13b9 publish: added permission logic to %serve and import flows 2019-10-22 10:18:25 -07:00
Jared Tobin
050eff031a
Merge branch 'fix-tty-dimensions' (#1867)
* fix-tty-dimensions:
  vere: restore terminal dimensions measurement

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-22 15:44:00 +08:00
Jared Tobin
bdfc270b2f
gall: fix bug in +ap-peek
fc7901d2 refactored much of +ap-peek, but introduced a bug in the
process.  The relevant diff from that commit is as follows:

  -        =/  =path  [ren tyl]
  -        =/  =vase  !>((slag p.u.cug path))
  -        (ap-slam q.u.cug p.arm vase)
  +        =/  index  p.u.maybe-arm
  +        =/  term  q.u.maybe-arm
  +        =/  =vase
  +          =/  =path  [term tyl]
  +          =/  raw  (slag index path)
  +          !>  raw
  +        (ap-slam term p.arm vase)

Note that [ren tyl] was replaced with [term tyl], where 'term' and 'ren'
are not equal.  This commit merely rights that wrong.
2019-10-22 15:22:30 +08:00
Joe Bryan
645bde3f2d vere: restore terminal dimensions measurement 2019-10-21 22:41:02 -07:00
Jared Tobin
d8f5836876
Merge branch 'image-build' (#1856)
* image-build:
  build: simplify image build interface

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-22 10:25:55 +08:00
Brendan Hay
4813d9829b
build: simplify image build interface
This removes the baked in codedump inspection and wrapper scripts
in favour of downstream tooling overriding this as necessary by
using FROM <image> in their respective dockerfile.
2019-10-22 10:18:37 +08:00
Jared Tobin
71b27b0300
Merge branch 'pretty-userspace' (#1847)
* pretty-userspace:
  pills
  hoon: moves new pretty-printer back into userspace

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-22 10:12:05 +08:00
Jared Tobin
3210acd4de
vere: patch version bump (0.9.0 -> 0.9.1)
Also updates all pills.
2019-10-21 09:57:42 +08:00
Jared Tobin
7f25f26ac2
Merge branch 'worker-memory'
* worker-memory:
  u3: removes "worker_send_replace" printf
  u3: statically measure memory on startup if < 1/2 the loom is free
  u3: restore memory reclamation every 1k events
  u3: print the size of the free lists on |mass

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-21 08:29:22 +08:00
Jared Tobin
c0dafa16fa
Merge branch 'debug-symbols' (#1848)
* debug-symbols:
  build: always include debug symbols

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-21 08:28:38 +08:00
Jared Tobin
4ee03d4e6a
Merge branch 'chat-cli-join-prompt' (#1851)
* chat-cli-join-prompt:
  chat-cli: update prompt on ;join

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-21 08:28:16 +08:00
Jared Tobin
7be86ebd4f
Merge branch 'philip/ames-fix' (#1840)
* philip/ames-fix:
  ames: better stack traces
  ames: don't crash

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-21 08:26:21 +08:00
Jared Tobin
9522ba3b44
Merge branch 'philip/azt-fix' (#1838)
* philip/azt-fix:
  azimuth-tracker: fix |watch generator

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-21 08:24:14 +08:00
Fang
9ed582b9c4
claz: do invite file reading in +read-invites
Ensures we read out the invite file in a consistent way
2019-10-18 16:15:11 +02:00
Fang
10b2643a50
chat-cli: update prompt on ;join
Fixes #1841.
2019-10-18 15:04:34 +02:00
Joe Bryan
10645a8d23 build: always include debug symbols 2019-10-17 18:20:23 -07:00
Joe Bryan
1c3b0adfb0 pills 2019-10-17 17:53:10 -07:00
Joe Bryan
fa01bfb0a5 hoon: moves new pretty-printer back into userspace 2019-10-17 17:52:45 -07:00
Fang
f0a4bd0369
claz: ignore empty lines in invites file 2019-10-18 02:10:39 +02:00
Philip Monk
be212ad54b
ames: better stack traces 2019-10-17 16:52:35 -07:00
Joe Bryan
85a656471f u3: removes "worker_send_replace" printf 2019-10-17 15:57:19 -07:00
Joe Bryan
1cfedf2273 u3: statically measure memory on startup if < 1/2 the loom is free 2019-10-17 15:50:28 -07:00
Joe Bryan
bf5a1276af u3: restore memory reclamation every 1k events 2019-10-17 15:50:04 -07:00
Joe Bryan
e7b0a6a5e7 u3: print the size of the free lists on |mass 2019-10-17 14:19:21 -07:00
Philip Monk
f835ef5a70
ames: don't crash 2019-10-17 12:33:35 -07:00
Philip Monk
95471d0a39
azimuth-tracker: fix |watch generator 2019-10-17 10:37:09 -07:00
Jared Tobin
c6b4317aa9
Merge branch 'spec-better' (#1836)
* spec-better:
  updates solid pill
  arvo: improves move type specialization (by spec'ing incrementally)

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-17 09:32:46 +04:00
Jared Tobin
9102cd138b
Merge branch 'publish-disconnect' (#1833)
* publish-disconnect:
  publish: remove unused %disconnect card

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-17 09:32:05 +04:00
Joe Bryan
3f3dd9d898 updates solid pill 2019-10-16 17:49:41 -07:00
Joe Bryan
f6b41754cc arvo: improves move type specialization (by spec'ing incrementally) 2019-10-16 17:30:33 -07:00
Fang
bead92656c
publish: remove unused %disconnect card
It wasn't being used, and wasn't correct in the first place.

(You really want [%publish wire binding:eyre] here.)
2019-10-16 23:41:08 +02:00
Jared Tobin
70ed0d6e98
Merge branch 'philip/jael-fix' (#1827)
* philip/jael-fix:
  jael: retrieve first sponsor instead of last

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-16 10:06:09 +04:00
Jared Tobin
1f8826a8ed
Merge branch 'la-tiscol-fix'
* la-tiscol-fix:
  chat: changed a =: to a =. to fix message storage bug

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-10-16 09:43:40 +04:00