Commit Graph

243 Commits

Author SHA1 Message Date
Tony Garnock-Jones 9080dc6f1e Fill in the rest of the jolly owl 2022-01-20 10:12:04 +01:00
Tony Garnock-Jones 4dc613a091 Foundations for causal tracing 2022-01-19 14:40:50 +01:00
Tony Garnock-Jones 45f9abfd97 (cargo-release) version 0.21.0 2022-01-16 15:15:51 +01:00
Tony Garnock-Jones 894f0a648a (cargo-release) version 0.16.0 2022-01-16 15:15:51 +01:00
Tony Garnock-Jones e6a2a25f62 (cargo-release) version 0.21.0 2022-01-16 15:15:51 +01:00
Tony Garnock-Jones 3d3c1ebf70 Better handling of activation after termination, which repairs a scary-looking-but-harmless panic in config_watcher's private thread 2022-01-16 00:02:33 +01:00
Tony Garnock-Jones a37a2739a0 Log compiled instructions in config_watcher 2022-01-15 23:23:48 +01:00
Tony Garnock-Jones b810784750 Script `+=` operator; sketch of `=~` operator 2022-01-15 23:22:51 +01:00
Tony Garnock-Jones 9453408e42 Propagate script compilation errors properly. 2022-01-15 23:22:13 +01:00
Tony Garnock-Jones 2b296d79c7 Repair error in dataspace assertion idempotency.
If a facet, during X, asserts X, for all X, then X includes all
`Observe` assertions. Assertion of X should be a no-op (though
subsequent retractions of X will have no effect!) since duplicates are
ignored. However, the implementation had been ignoring whether it had
seen `Observe` assertions before, and was *always* (re)placing them
into the index, leading to runaway growth.

The repair is to only process `Observe` records on first assertion and
last retraction.

As part of this change, Dataspaces have been given names, and some
cruft from the previous implementation has been removed.
2022-01-15 23:18:29 +01:00
Tony Garnock-Jones af4af8b048 Bump deps 2022-01-14 15:55:30 +01:00
Tony Garnock-Jones 78ef7c07db documentation.prs 2022-01-14 15:36:41 +01:00
Tony Garnock-Jones 6325538ea6 (cargo-release) version 0.20.1 2022-01-12 12:28:38 +01:00
Tony Garnock-Jones 7fbe6360e7 Support patterns like <?r <Something _ _ _>> 2022-01-12 12:28:03 +01:00
Tony Garnock-Jones d007da2e94 (cargo-release) version 0.20.0 2022-01-10 13:39:48 +01:00
Tony Garnock-Jones 08c7bd3808 (cargo-release) version 0.15.0 2022-01-10 13:39:48 +01:00
Tony Garnock-Jones 96cfb1d4e7 (cargo-release) version 0.20.0 2022-01-10 13:39:48 +01:00
Tony Garnock-Jones c3a9525ef1 Track enough information to allow piecing-together of parent/child relationships among actors 2022-01-10 12:52:12 +01:00
Tony Garnock-Jones 58bde1e29d Add Activation::stop_root 2022-01-10 11:23:02 +01:00
Tony Garnock-Jones 76d4ffd8a2 (cargo-release) version 0.14.0 2022-01-08 16:05:47 +01:00
Tony Garnock-Jones 9f560b4dd0 (cargo-release) version 0.19.0 2022-01-08 16:05:47 +01:00
Tony Garnock-Jones fcb345dbaf (cargo-release) version 0.19.0 2022-01-08 16:05:47 +01:00
Tony Garnock-Jones 7524b634d3 Repair daemon service restarts 2022-01-08 13:54:25 +01:00
Tony Garnock-Jones 4eddcf7518 (cargo-release) version 0.13.0 2022-01-07 22:06:08 +01:00
Tony Garnock-Jones c29f46c117 (cargo-release) version 0.18.0 2022-01-07 22:06:08 +01:00
Tony Garnock-Jones ff827f9c38 (cargo-release) version 0.18.0 2022-01-07 22:06:08 +01:00
Tony Garnock-Jones 6f8fb014f2 Update daemon restart policy defaults to line up better with the new supervisor defaults 2022-01-07 22:05:12 +01:00
Tony Garnock-Jones 25e75324cf (cargo-release) version 0.17.0 2022-01-07 17:19:15 +01:00
Tony Garnock-Jones 02d832500f (cargo-release) version 0.12.0 2022-01-07 17:19:15 +01:00
Tony Garnock-Jones 5281da096c (cargo-release) version 0.17.0 2022-01-07 17:19:14 +01:00
Tony Garnock-Jones 41b1708cea Append a [] to config .pr files, for ergonomics of commenting (!) 2022-01-07 17:18:16 +01:00
Tony Garnock-Jones 895a2f676c lifecycle::terminate_on_service_restart; make debt reporter accept a parameter 2022-01-07 17:18:00 +01:00
Tony Garnock-Jones 1744a0a99a Update Makefile for latest preserves-schemac command line interface changes 2022-01-07 17:15:30 +01:00
Tony Garnock-Jones b465036773 (cargo-release) version 0.16.0 2021-12-13 20:35:43 +01:00
Tony Garnock-Jones 458c2795f9 (cargo-release) version 0.11.0 2021-12-13 20:35:43 +01:00
Tony Garnock-Jones 760314ee5e (cargo-release) version 0.16.0 2021-12-13 20:35:43 +01:00
Tony Garnock-Jones f5b1fec90f Follow simplifications to sturdy caveats 2021-12-13 16:00:25 +01:00
Tony Garnock-Jones a831b02ca5 Accommodate changes to dataspacePatterns 2021-12-13 15:43:24 +01:00
Tony Garnock-Jones 5f7d323af6 (cargo-release) version 0.15.1 2021-12-01 11:14:48 +01:00
Tony Garnock-Jones 77a3ee4a31 Release 2021-11-17 08:49:29 +01:00
Tony Garnock-Jones f8ca9b9c89 Current-facet-handle expression 2021-11-17 08:45:56 +01:00
Tony Garnock-Jones 767c4bbe71 Bump preserves-schema dep 2021-11-17 08:45:56 +01:00
Tony Garnock-Jones 98a09f53e8 Release 0.14.1
syndicate-server@0.14.1

Generated by cargo-workspaces
2021-11-14 15:48:56 +01:00
Tony Garnock-Jones ce743fa934 Repair bug: environments should have symbol keys, not string keys 2021-11-14 15:47:12 +01:00
Tony Garnock-Jones 63e86efc38 (cargo-release) version 0.9.0 2021-11-12 12:34:21 +01:00
Tony Garnock-Jones 64ccf5c661 (cargo-release) version 0.14.0 2021-11-12 12:34:21 +01:00
Tony Garnock-Jones 212a5a11a3 (cargo-release) version 0.14.0 2021-11-12 12:34:21 +01:00
Tony Garnock-Jones 13a0100ad8 Add OnStop (though I'm not sure about it as a permanent feature! The syntax is gross) 2021-10-13 12:13:19 +02:00
Tony Garnock-Jones 1c80b183f1 (cargo-release) version 0.13.0 2021-10-08 16:40:11 +02:00
Tony Garnock-Jones 49eeb2452d (cargo-release) version 0.8.0 2021-10-08 16:40:11 +02:00
Tony Garnock-Jones 6f18f728d6 (cargo-release) version 0.13.0 2021-10-08 16:40:11 +02:00
Tony Garnock-Jones 4713005997 wait_for_all_actors_to_stop 2021-10-08 16:37:26 +02:00
Tony Garnock-Jones baf98d6c54 Better span naming and logging tweaks 2021-10-08 16:37:17 +02:00
Tony Garnock-Jones 3c42b5eaeb Tweak logging 2021-10-07 22:21:38 +02:00
Tony Garnock-Jones e101258473 Message handling 2021-10-07 22:03:29 +02:00
Tony Garnock-Jones fb744082b9 Only include config files with names ending in .pr 2021-10-07 21:37:24 +02:00
Tony Garnock-Jones c51f6b2a4e Repair off-by-one in error message 2021-10-07 21:29:13 +02:00
Tony Garnock-Jones 733037f41b "timestamp" expression 2021-10-07 21:29:01 +02:00
Tony Garnock-Jones 0837606ca7 Message sending 2021-10-07 21:28:47 +02:00
Tony Garnock-Jones 3c106dcb86 Refine logging 2021-10-07 21:28:20 +02:00
Tony Garnock-Jones ac6f37cf0c Clean up error reporting 2021-10-07 18:10:59 +02:00
Tony Garnock-Jones 40025b90a6 More capability-oriented scripting language 2021-10-07 17:00:04 +02:00
Tony Garnock-Jones 0d7ac7441f stop() and stop_facet(facet_id) now return unit 2021-10-07 16:59:34 +02:00
Tony Garnock-Jones 7b6a2dab76 More interesting config interpreter 2021-10-06 22:03:12 +02:00
Tony Garnock-Jones 7117215963 Binary and text support 2021-10-05 21:11:16 +02:00
Tony Garnock-Jones f74bc2e069 Remove unnecessary `use` clauses 2021-10-05 21:10:53 +02:00
Tony Garnock-Jones d87ff4f62f Step toward inferior syndicate processes 2021-10-05 19:10:46 +02:00
Tony Garnock-Jones 280d938cc0 Wait 0.1s instead of 1.0s on config file change 2021-10-05 19:09:32 +02:00
Tony Garnock-Jones 81dfae92d8 dirty-consumer, dirty-producer 2021-10-05 14:10:57 +02:00
Tony Garnock-Jones e214d9dce3 Tweak banner 2021-10-05 12:41:26 +02:00
Tony Garnock-Jones 6fb1db4f6b Improve logging 2021-10-04 14:40:39 +02:00
Tony Garnock-Jones 5e3a497c32 First stab at service logging 2021-10-01 22:07:28 +02:00
Tony Garnock-Jones ea7e13b0c0 Begin teasing out general process specification schema 2021-09-30 16:02:39 +02:00
Tony Garnock-Jones b373d3440a Improve names used for definitions in externalServices.prs 2021-09-30 15:38:40 +02:00
Tony Garnock-Jones ed12c0883e Switch to parking_lot for another performance boost 2021-09-30 13:32:41 +02:00
Tony Garnock-Jones c252975a16 Bump again for a performance boost 2021-09-30 13:16:56 +02:00
Tony Garnock-Jones bb01227b08 Bump preserves versions 2021-09-30 13:10:01 +02:00
Tony Garnock-Jones de795219af Fix up daemon retry logic. Also: named fields; better stop logic.
In particular:

1. The root facet is considered inert even if it has outbound
assertions. This is because the only outbound assertion it can have is
a half-link to a peer actor, which shouldn't prevent the actor from
terminating normally if the user-level "root" facet stops.

2. On stop_facet_and_continue, parent-facet continuations execute
inline rather than at commit time. This is so that a user-level "root"
facet can *replace* itself. Remains to be properly exercised/tested.
2021-09-28 17:10:36 +02:00
Tony Garnock-Jones fe7086b84b More debug in counter.rs 2021-09-28 15:18:33 +02:00
Tony Garnock-Jones e8b7fbad0e Repair missing sync_and_adjust call 2021-09-28 15:17:43 +02:00
Tony Garnock-Jones 23fa6629df Cosmetic 2021-09-28 15:17:05 +02:00
Tony Garnock-Jones 982a258a8c Simplify examples 2021-09-28 13:00:48 +02:00
Tony Garnock-Jones 013e99af70 Greatly improve service lifecycle handling 2021-09-28 12:53:18 +02:00
Tony Garnock-Jones a263a7091d Tweak debug outputs 2021-09-26 11:02:55 +02:00
Tony Garnock-Jones da3fa84fc0 Update preserves dep to 2.0.0 2021-09-25 11:20:30 +02:00
Tony Garnock-Jones d3d088418f Dependency tracking, milestones 2021-09-24 16:15:26 +02:00
Tony Garnock-Jones 2322ad6163 Remove unused ServiceDependency schema definition 2021-09-23 21:46:54 +02:00
Tony Garnock-Jones b81e936caf Use `enclose!` macro 2021-09-23 21:46:10 +02:00
Tony Garnock-Jones a92647b740 Signal running only once spawn has started 2021-09-20 23:32:53 +02:00
Tony Garnock-Jones 9f316ac659 Implement daemon service 2021-09-20 16:42:35 +02:00
Tony Garnock-Jones c87bfd8a2d More flexible env schema 2021-09-20 15:43:13 +02:00
Tony Garnock-Jones 988a22afde Retrieve daemon config 2021-09-20 15:43:00 +02:00
Tony Garnock-Jones 9a09cac5f7 Use `during!` macro in services 2021-09-20 15:10:31 +02:00
Tony Garnock-Jones d5b28097ef Wildcard pattern generation; reactivate daemon stub 2021-09-20 14:35:29 +02:00
Tony Garnock-Jones ccd54be3b2 Adapt to new Preserves major version; stub daemon basis 2021-09-19 16:53:37 +02:00
Tony Garnock-Jones 3763b9ac86 (cargo-release) version 0.11.0 2021-09-10 12:43:25 +02:00
Tony Garnock-Jones 4bb01045d2 (cargo-release) version 0.6.0 2021-09-10 12:43:25 +02:00
Tony Garnock-Jones 6c72ed918a (cargo-release) version 0.11.0 2021-09-10 12:43:25 +02:00
Tony Garnock-Jones facef964c4 preserves 1.0.0 2021-09-02 11:17:07 +02:00
Tony Garnock-Jones 5f4f7d3a94 Bump deps 2021-09-02 11:10:32 +02:00
Tony Garnock-Jones e90fe2c41e Supervisor RestartPolicy 2021-09-01 17:31:01 +02:00
Tony Garnock-Jones fb6070d1cd Avoid spurious long-lived Account 2021-08-31 16:21:00 +02:00
Tony Garnock-Jones 2e232ca5b2 Structured pattern syntax (!) 2021-08-31 16:19:29 +02:00
Tony Garnock-Jones d8c3e37d17 Supervision; delayed actions; better tracing (incl `M: Debug`); linked task release 2021-08-30 23:41:51 +02:00
Tony Garnock-Jones 6757d0d4b5 (cargo-release) version 0.10.0 2021-08-30 13:24:56 +02:00
Tony Garnock-Jones dd0f7462b6 (cargo-release) version 0.5.0 2021-08-30 13:24:55 +02:00
Tony Garnock-Jones 7d70d98fe5 (cargo-release) version 0.10.0 2021-08-30 13:24:55 +02:00
Tony Garnock-Jones ea66959cf4 Only insert/replace content for a file if it was able to be read successfully 2021-08-30 13:24:00 +02:00
Tony Garnock-Jones 9b7febb8d7 ConfigWatcher 2021-08-30 12:08:58 +02:00
Tony Garnock-Jones 18e77a87a5 Remove unneeded SERVICE_NAME constant in debt_reporter 2021-08-30 12:08:58 +02:00
Tony Garnock-Jones 29967d76a4 Use tracing's macros for debug/display 2021-08-30 12:08:58 +02:00
Tony Garnock-Jones c0b73d3efa Remove unneeded (?) tokio features 2021-08-30 12:08:58 +02:00
Tony Garnock-Jones f0e3e64ffb More logging 2021-08-28 18:55:08 +02:00
Tony Garnock-Jones 4292b06a93 No more default port 2021-08-28 18:55:02 +02:00
Tony Garnock-Jones 0f1432d414 Dynamic service instantiation 2021-08-28 18:50:55 +02:00
Tony Garnock-Jones 738ac3163a spawn_link; reactive debt_reporter service startup 2021-08-28 14:39:00 +02:00
Tony Garnock-Jones cd951e18a0 Factor out gatekeeper::bind 2021-08-27 16:35:45 +02:00
Tony Garnock-Jones 0eff672c30 Split out initial services in syndicate-server 2021-08-27 16:19:14 +02:00
Tony Garnock-Jones f56c0df10f Facets! 2021-08-27 15:31:18 +02:00
Tony Garnock-Jones ae46e42539 Move unused ascii art to a separate file 2021-08-27 13:41:13 +02:00
Tony Garnock-Jones 87338ce47a Move debt reporter into syndicate-server 2021-08-26 10:16:09 +02:00
Tony Garnock-Jones 2cedd740a6 (cargo-release) version 0.9.2 2021-08-25 17:38:59 +02:00
Tony Garnock-Jones 2fbde4a7f2 Treat parent-link, if present, as non-daemon too 2021-08-25 17:38:41 +02:00
Tony Garnock-Jones bc5e4fa736 (cargo-release) version 0.9.1 2021-08-25 17:32:23 +02:00
Tony Garnock-Jones 86e140ef2f (cargo-release) version 0.9.0 2021-08-25 16:30:58 +02:00
Tony Garnock-Jones 3f5a14470e (cargo-release) version 0.4.0 2021-08-25 16:30:58 +02:00
Tony Garnock-Jones 9941258b6a (cargo-release) version 0.9.0 2021-08-25 16:30:58 +02:00
Tony Garnock-Jones 1b9d5ef426 Fix up dev release version mismatches 2021-08-25 16:29:01 +02:00
Tony Garnock-Jones 0ad4f7fe56 "Inferior" mode 2021-08-25 16:27:31 +02:00
Tony Garnock-Jones 051843b832 Configurable debt-reporter 2021-08-25 16:27:31 +02:00
Tony Garnock-Jones ab77736573 Move cross build stuff to root Makefile/root package 2021-08-25 16:27:31 +02:00
Tony Garnock-Jones 31242f14ca Repair websocket end-of-stream 2021-08-25 16:27:31 +02:00
Tony Garnock-Jones 37baf864a4 (cargo-release) version 0.8.0 2021-08-13 21:39:43 -04:00
Tony Garnock-Jones 9b7030845e (cargo-release) version 0.8.0-alpha.1 2021-08-13 21:34:07 -04:00
Tony Garnock-Jones 931c4e5cd1 Some documentation; rename Debtor to Account 2021-08-13 15:51:11 -04:00
Tony Garnock-Jones 5a3a572dcf (cargo-release) version 0.8.0-alpha.0 2021-08-13 12:51:48 -04:00
Tony Garnock-Jones 2384b29754 (cargo-release) version 0.3.0-alpha.0 2021-08-13 12:51:18 -04:00
Tony Garnock-Jones f428aa363f (cargo-release) version 0.8.0-alpha.0 2021-08-13 12:50:40 -04:00
Tony Garnock-Jones 55b2cb8b1c Description, license etc. 2021-08-13 12:50:11 -04:00
Tony Garnock-Jones bb519b625b Allow variable labels in patterns (see pingpong.rs) 2021-08-13 06:43:34 -04:00
Tony Garnock-Jones 2255a54f1a Use syndicate-macros a little more 2021-08-13 00:02:05 -04:00
Tony Garnock-Jones 5bb665ef62 Use syndicate-macros crate in syndicate-server 2021-08-12 23:58:58 -04:00
Tony Garnock-Jones 4f30faa1ba Split out syndicate-server crate 2021-08-12 21:42:14 -04:00