Commit Graph
100 Commits
Author SHA1 Message Date
Kristóf Tóth 9712ebf102 Specify EventHandler types in builtin handlers 2019-08-30 14:45:53 +02:00
Kristóf Tóth 25cf672231 Enable handlers to specify EventHandler type 2019-08-30 14:44:57 +02:00
Kristóf Tóth 11bb1e492a Add get_type() method to TypeIdRegistryMixin 2019-08-30 14:44:26 +02:00
Kristóf Tóth d9bcfb3705 Add metaclass capable of building instances from class name string 2019-08-29 12:03:14 +02:00
Kristóf Tóth 80eca7e322 Fix leftover string from old API 2019-08-28 16:46:05 +02:00
Kristóf Tóth 016130b081 Fix pylint issues 2019-08-28 16:40:23 +02:00
Kristóf Tóth c1df007d6c Fix refactored method name 2019-08-28 16:34:55 +02:00
Kristóf Tóth 996e8e2af7 Remove unused keys from FrontendMessageStore 2019-08-28 15:29:20 +02:00
Kristóf Tóth 3c84d2f3aa Avoid replaying "frontend.ready" messages 2019-08-28 15:04:58 +02:00
Kristóf Tóth 0295baad47 Fix bug where message scope would be replaced with default scope 2019-08-28 14:56:59 +02:00
Kristóf Tóth 13e247b009 Proxy all keys prefixed with 'frontend' to frontend 2019-08-28 14:56:31 +02:00
Kristóf Tóth f626fef8f8 Open up TFW pipes 2019-08-15 17:41:05 +02:00
Kristóf Tóth 2e9a84bc9b Fix init script without HOTRELOAD 2019-08-15 17:26:23 +02:00
Kristóf Tóth c753b63273 Merge branch 'processlog-rework' into chausie 2019-08-15 14:40:02 +02:00
Kristóf Tóth c84ac99141 Write process logs to console with a separate handler 2019-08-15 14:37:08 +02:00
Kristóf Tóth 552c9f5f93 Rename FrontendHandler -> FrontendProxyHandler 2019-08-15 10:43:30 +02:00
therealkrispet a97a4f4b12 Merge pull request #63 from avatao-content/pipe-connector
Implement inotify based pipe connector
2019-08-14 15:48:46 +02:00
Kristóf Tóth 0df378fb92 Fix FileManager unit test cases for macOS (symlinked TMPDIR) 2019-08-14 13:49:58 +02:00
Kristóf Tóth 8f7715565e Silence watchdog's internal deprecation warning when using pytest 2019-08-14 13:49:25 +02:00
Kristóf Tóth 9e49a93df3 Fix event handler pytest.raises test cases 2019-08-12 16:25:03 +02:00
Kristóf Tóth 0b7557f198 Fix frontend message replay broken during refactor 2019-08-09 10:59:27 +02:00
Kristóf Tóth 7ba502277f Remove accidental comment 2019-08-09 10:56:38 +02:00
therealkrispet 81790e18e1 Merge pull request #62 from avatao-content/api-rework
Api rework
2019-08-08 16:32:30 +02:00
Kristóf Tóth b5e53cb946 Use prefix matching in ZMQConnector 2019-08-08 15:05:37 +02:00
Kristóf Tóth e6d2777520 Replace pipe-io-server source with the new pip package 2019-08-06 11:33:26 +02:00
Kristóf Tóth 38eec06b4d Move ZMQ bind address logging to TFWServer 2019-07-31 17:36:03 +02:00
Kristóf Tóth 911831fdb1 Implement sync API for networking 2019-07-31 17:08:47 +02:00
Kristóf Tóth 78c3a8cf98 Fix socket bind order regarding ZMQStream 2019-07-30 15:23:47 +02:00
Kristóf Tóth 30223fe99f Rename ServerConnector interface to Connector ¯\_(ツ)_/¯ 2019-07-30 15:17:29 +02:00
Kristóf Tóth fd92c443b2 Update PipeIOServer dependency 2019-07-30 14:45:33 +02:00
Kristóf Tóth 9a4da0b36f Implement bootiful unit tests for TFW network stack 2019-07-29 13:02:46 +02:00
Kristóf Tóth 6069ea5089 Merge branch 'eventhandler-rework' into chausie 2019-07-25 12:10:43 +02:00
Kristóf Tóth 3fca555251 Move TFWRouter to separate file 2019-07-24 17:22:08 +02:00
Kristóf Tóth 42f959878f Add signal handling to tfw_server.py 2019-07-24 16:47:03 +02:00
Kristóf Tóth f2b6123d41 Remove unnecessary newlines 2019-07-24 16:32:57 +02:00
Kristóf Tóth 52399f413c Simplify package structure 2019-07-24 15:50:41 +02:00
Kristóf Tóth a23224aced Rework whole package structure (improved dependency handling) 2019-07-24 15:17:40 +02:00
Kristóf Tóth c6e01d294d Inject TFWENV dependencies to builtins 2019-07-23 15:32:50 +02:00
Kristóf Tóth ae69a094c7 Improve names in EventHandlerFactoryBase to improve readability 2019-07-23 11:47:59 +02:00
Kristóf Tóth 9725f805ed Silence unjust pylint warnings 2019-07-15 11:09:57 +02:00
Kristóf Tóth 45a9a753b2 Fix test_event_handler 2019-07-15 11:09:43 +02:00
Kristóf Tóth adf2672cd4 Add forgotten dateutil dependency 2019-07-12 23:38:18 +02:00
Kristóf Tóth 026db9ea84 Avoid duplicate filename (EventHandlerFactory) 2019-07-12 23:32:15 +02:00
Kristóf Tóth de78f48930 Adjust the whole framework to event handler dependency inversion 2019-07-12 23:25:16 +02:00
Kristóf Tóth 42beafcf04 Update dependencies 2019-07-12 23:14:47 +02:00
Kristóf Tóth f73c059429 Improve EventHandlerFactoryBase 2019-07-11 18:52:15 +02:00
Kristóf Tóth f1679ffb50 Add new EventHandler stuff as per interface segregation principle 2019-07-10 14:26:12 +02:00
Kristóf Tóth 84a28a1582 Remove unused rate limiter classes (sad to see you go) 2019-07-09 11:02:45 +02:00
Kristóf Tóth e5dee3a1b3 Remove leftover parentheses 2019-07-09 09:12:21 +02:00
Kristóf Tóth 64ea7d8218 Fix ZMQ socketopt call order 2019-07-08 20:12:12 +02:00
Kristóf Tóth f6a369496d Improve color scheme 2019-07-04 17:28:26 +02:00
Kristóf Tóth dc62508a7b Remove message scope during routing 2019-07-04 15:55:23 +02:00
Kristóf Tóth 80e42a4091 Ignore message scope in message signatures 2019-07-04 15:51:55 +02:00
Kristóf Tóth 2c0aba2ffe Fix bug where sign_message wasn't idempotent 2019-07-04 15:19:48 +02:00
Kristóf Tóth 459ae684de Make up for forgotten parentheses 2019-07-03 16:48:56 +02:00
Kristóf Tóth ca697b41b3 Further improve EventHandler <-> EventHandlerBase port situation 2019-07-03 16:48:17 +02:00
Kristóf Tóth 49844c7b58 Fix trying to send None as a TFW message 2019-07-03 15:49:20 +02:00
Kristóf Tóth 81accf94ae Fix inotify unit tests on BSD based systems 2019-07-02 16:39:36 +02:00
Kristóf Tóth 3be018eb17 Make EventHandlerBase capable of stopping all it's instances 2019-07-01 16:01:54 +02:00
Kristóf Tóth aafd145fc5 Delete copyright headers in preparation of going open source ^^ 2019-06-28 17:44:43 +02:00
Kristóf Tóth 018286f397 Improve EventHandler response sending pattern 2019-06-28 16:50:36 +02:00
Kristóf Tóth 481a919606 Improve FSMAware api 2019-06-28 16:49:58 +02:00
Kristóf Tóth 78bd97493a Rework EventHandler situation 2019-06-28 15:11:02 +02:00
Kristóf Tóth 28c3e68b5a Refactor TFWLog 2019-06-27 17:42:41 +02:00
Kristóf Tóth bcee486463 Refactor InotifyObserver 2019-06-27 17:42:41 +02:00
Kristóf Tóth 491eaf6d5e Refactor HistoryMonitor 2019-06-27 17:42:41 +02:00
Kristóf Tóth 6cc3d32097 Refactor LogMonitoringEventHandler 2019-06-27 17:42:41 +02:00
Kristóf Tóth 49856cebe2 Improve InotifyEvent.__repr__ 2019-06-18 14:54:54 +02:00
Kristóf Tóth 3cc70c2147 Fix IdeEventHandler broken import 2019-06-17 15:09:42 +02:00
therealkrispet 8a5c7b2a49 Merge pull request #56 from avatao-content/inotify
Create inotify module with unit tests
2019-06-11 13:03:52 +02:00
therealkrispet 8482d7ec2b Merge pull request #55 from avatao-content/file_manager_fixes
File manager fixes
2019-06-11 11:14:24 +02:00
therealkrispet f495ff2d7c Merge pull request #58 from avatao-content/logging
Import the logging modules directly
2019-06-11 11:08:43 +02:00
therealkrispet 29524b8d20 Merge pull request #59 from avatao-content/connector-rm
Add SQLAlchemy as dependency
2019-06-11 10:36:07 +02:00
Kristóf Tóth bed99c20be Merge branch 'networking-rework' into chausie 2019-06-04 14:45:13 +02:00
Kristóf Tóth c8e98af516 Improve module dependencies by moving port envvars out of tfw.networking 2019-06-04 14:41:51 +02:00
Kristóf Tóth f151ecfbac Improve ZMQ port envvar names 2019-06-04 14:41:51 +02:00
Kristóf Tóth e44a99fa6d Remove ZMQConnectorBase 2019-06-04 14:41:51 +02:00
Kristóf Tóth 82df8a8065 Handle pylint suggestions 2019-06-04 14:41:51 +02:00
Kristóf Tóth 2134d743c3 Improve TFW lib layout 2019-06-04 14:41:51 +02:00
Kristóf Tóth 01d9003501 Rework whole TFW networking model 2019-06-04 14:41:51 +02:00
Kristóf Tóth 613919a5b6 Implement closing EventHandlerConnector 2019-06-04 14:41:50 +02:00
Kristóf Tóth 6431fac9b1 Set ZMQ HWM in EventHandlerConnector to infinite 2019-06-04 14:41:50 +02:00
Kristóf Tóth 6b23b863ed Fix code formatting 2019-06-04 14:41:50 +02:00
Kristóf Tóth 26c6c5d1e6 Refactor EventHandlerConnector family of classes 2019-06-04 14:41:50 +02:00
Kristóf Tóth 2a3d29f080 Remove git hooks 2019-05-17 00:04:36 +02:00
Kristóf Tóth 743ff8be4e Update packages 2019-05-17 00:03:46 +02:00
Kristóf Tóth 16eb1ba780 Name new release 2019-05-16 23:44:44 +02:00
Kristóf Tóth 07cd1264f5 Merge branch 'ocicat', the unrealized dream. Ocicat will return... 2019-05-15 17:10:05 +02:00
Kristóf Tóth f43c463692 Merge branch 'pipeio' 2019-05-13 16:31:57 +02:00
Kristóf Tóth 51b5578270 Update builder image in .drone.yml 2019-05-13 15:07:19 +02:00
Kristóf Tóth 3bfe6db036 Avoid treating supervisord's SIGTERM as an error in CommandEventHandler 2019-05-13 14:53:31 +02:00
Kristóf Tóth 94dee63a41 Improve CommandEventHandler subprocess failure error message 2019-05-13 14:52:17 +02:00
Kristóf Tóth 1617761184 Improve CommandEventHandler error detection (avoid polling) 2019-05-13 11:17:30 +02:00
Kristóf Tóth ca5be9d848 Detect errors in the subprocess of CommandEventHandler 2019-05-13 10:09:06 +02:00
Kristóf Tóth 78d70f2f8b Make PipeIOEventHandlerBase handle all input errors (while screaming) 2019-05-13 10:09:06 +02:00
Kristóf Tóth fc5124afb0 Make arbitrary processes capable of being EventHandlers (PipeIO+stdin/stdout) 2019-05-13 10:09:06 +02:00
Kristóf Tóth c4d3319ed9 Refactor TransformerPipeIOEventHandler 2019-05-13 10:09:06 +02:00
Kristóf Tóth 69b3b17724 Implement EventHandler for transforming and filtering pipe messages 2019-05-13 10:09:06 +02:00
Kristóf Tóth 078f8532cc Rename parameter to reflect type in PipeIOEventHandler.handle_pipe_event 2019-05-13 10:09:06 +02:00
Kristóf Tóth 1bfaac0493 Remove potentially harmful 'error handling' 2019-05-13 10:09:06 +02:00