Commit Graph
100 Commits
Author SHA1 Message Date
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
Kristóf Tóth 9e36bde974 Consider PipeIOServer public API from now on 2019-05-13 10:09:06 +02:00
Kristóf Tóth 8f1ae9e286 Add jq as a dependency 2019-05-13 10:09:06 +02:00
Kristóf Tóth 9ad77eaed8 Allow passing an iterable with keys to subscribe to in EventHandlerBase.__init__() 2019-05-13 10:09:06 +02:00
Kristóf Tóth 90b780a5c0 Allow subclassing pipe based event handlers (refactor PipeIOEventHandler to base class and impl) 2019-05-13 10:09:06 +02:00
Kristóf Tóth ddc79c9717 Allow subscribing to all ZMQ topics in EventHandlerBase 2019-05-13 10:09:06 +02:00
Kristóf Tóth bb8e0c7458 Handle JSON serialization errors in PipeIOEventHandler 2019-05-13 10:09:06 +02:00
Kristóf Tóth f94d571d19 Support initializing IO pipes with specific permissions 2019-05-13 10:09:06 +02:00
Kristóf Tóth 065aa56182 Implement EventHandler capable of proxying between TFW and named pipes 2019-05-13 10:09:06 +02:00
Kristóf Tóth 6ea0967a21 Fork PipeIOServer to TFW 2019-05-13 10:08:59 +02:00
Kristóf Tóth 0771a068e0 Implement helper to get all EventHandler instances in a given stack frame 2019-05-02 14:27:48 +02:00
Kristóf Tóth 1d969f0967 Implement lazy_factory 🍰 2018-10-09 11:25:11 +02:00
Kristóf Tóth 031400c0c4 Update pip packages 2018-08-22 14:09:53 +02:00
Kristóf Tóth 806623c80d Extend API documentation 2018-08-08 19:27:58 +02:00
Kristóf Tóth 48c3df621b Add readme info on delaying histfile appending 2018-08-07 17:28:56 +02:00
Kristóf Tóth 21f05ad850 Silence unjust pylint warning 2018-08-06 15:52:01 +02:00
Kristóf Tóth 44bdc96547 Support changing gitignore from event handler API 2018-08-06 15:47:14 +02:00
Kristóf Tóth b7ed4c3d0f Implement gitignore functionality in SnapshotProvider 2018-08-06 15:42:51 +02:00
Kristóf Tóth 59dce4a848 Restore latest snapshot if no date is provided 2018-08-06 14:55:58 +02:00
Kristóf Tóth cbb807dfb4 Implement restore_snapshot latest commit on branch detection 2018-08-06 14:19:18 +02:00