-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsonrpc-feature returned #417
Commits on Nov 29, 2023
-
feat: go from websocket-server to json rpc websocket/http server
Includes: - re-purposing of feature flags * metrics is always a thing (on) * monitoring is the gated feature * websocket-server flag is gone, we only gate push notifications - jsonrpc setup and rpc method register - prometheus exposition format to json parser - Added todo around split networking config Notes: - will not merge this in until example app has been restored with the client changes
Configuration menu - View commit details
-
Copy full SHA for 27257ce - Browse repository at this point
Copy the full SHA 27257ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 16392e7 - Browse repository at this point
Copy the full SHA 16392e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 234621d - Browse repository at this point
Copy the full SHA 234621dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed774e4 - Browse repository at this point
Copy the full SHA ed774e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 708369e - Browse repository at this point
Copy the full SHA 708369eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6da6e71 - Browse repository at this point
Copy the full SHA 6da6e71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3af2ff1 - Browse repository at this point
Copy the full SHA 3af2ff1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5659f06 - Browse repository at this point
Copy the full SHA 5659f06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 049a4ba - Browse repository at this point
Copy the full SHA 049a4baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44b8485 - Browse repository at this point
Copy the full SHA 44b8485View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64bfe77 - Browse repository at this point
Copy the full SHA 64bfe77View commit details -
feat: Add event notifications (#410)
# Description This pull request implements the following changes: - [x] Add event notifications - [x] Add `emit_event` notification utility function - [x] Add `emit_receipt` notification utility function - [x] Move receipt notifications to event handler notifications - [x] Add `ConnnectionEstablished`, `ConnnectionClosed`, `ListeningOn`, `OutgoingConnectionError`, and `IncomingConnectionError` network notifications - [x] Test JSON event notification bytes roundtrip - [x] Test JSON event notification string roundtrip - [x] Integration test connection notifications with two Homestar nodes ## Link to issue Closes #407 ## Type of change - [x] New feature (non-breaking change that adds functionality) ## Test plan (required) We have included unit tests to check roundtrip conversions between JSON bytes and strings. In addition, we have included an integration test that subscribes and listens for connection messages between Homestar nodes. --------- Co-authored-by: Zeeshan Lakhani <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 058deef - Browse repository at this point
Copy the full SHA 058deefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 713718e - Browse repository at this point
Copy the full SHA 713718eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff4ebc8 - Browse repository at this point
Copy the full SHA ff4ebc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa1d673 - Browse repository at this point
Copy the full SHA aa1d673View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14d7dc2 - Browse repository at this point
Copy the full SHA 14d7dc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20694da - Browse repository at this point
Copy the full SHA 20694daView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6a3b4f - Browse repository at this point
Copy the full SHA f6a3b4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7ae3f9 - Browse repository at this point
Copy the full SHA b7ae3f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aac079 - Browse repository at this point
Copy the full SHA 0aac079View commit details -
Configuration menu - View commit details
-
Copy full SHA for b88d113 - Browse repository at this point
Copy the full SHA b88d113View commit details -
Configuration menu - View commit details
-
Copy full SHA for b233e1c - Browse repository at this point
Copy the full SHA b233e1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 522b42a - Browse repository at this point
Copy the full SHA 522b42aView commit details -
feat: Add pubsub receipt sharing notifications (#418)
# Description This PR implements the following changes: - [x] Add receipt published and received notifications - [x] Update receipt sharing log messages - [x] Add receipt sharing integration test - [x] Add `remove_db` and `wait_for_socket_connection` test utilities - [x] Update JSON `peer_id` key to `peerId` ## Link to issue Implements #131 ## Type of change - [x] New feature (non-breaking change that adds functionality) - [x] Refactor (non-breaking change that updates existing functionality) ## Test plan (required) This PR includes an integration test that checks for gossiped receipts in websocket notifications and logs. --------- Co-authored-by: Zeeshan Lakhani <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 476c47f - Browse repository at this point
Copy the full SHA 476c47fView commit details -
refactor: Fix connection notification test (#424)
# Description - [x] Fix the connection notification integration test - [x] Avoid event hooks to IPFS in tests ## Type of change - [x] Refactor (non-breaking change that updates existing functionality) ## Test plan (required) Improved connection notification test included to move away from arbitrary waits to event-driven notification tests. --------- Co-authored-by: Zeeshan Lakhani <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ad88b5 - Browse repository at this point
Copy the full SHA 7ad88b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9cfa50 - Browse repository at this point
Copy the full SHA b9cfa50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82f3348 - Browse repository at this point
Copy the full SHA 82f3348View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0616a33 - Browse repository at this point
Copy the full SHA 0616a33View commit details -
# Description This PR includes the following changes: - [x] Set gossip `max_transmit_size` - [x] Handle Kademlia `InboundRequest` events ## Type of change - [x] Refactor (non-breaking change that updates existing functionality)
Configuration menu - View commit details
-
Copy full SHA for 951abe6 - Browse repository at this point
Copy the full SHA 951abe6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f817f2 - Browse repository at this point
Copy the full SHA 9f817f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for da344c1 - Browse repository at this point
Copy the full SHA da344c1View commit details -
fix: make configuration run without -c (all defaults) (#433)
Includes: - also, add starter functions for default .pem/settings initialization - error handling around retry, wasms - ups the transport timeout
Configuration menu - View commit details
-
Copy full SHA for 11a8f88 - Browse repository at this point
Copy the full SHA 11a8f88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cd381d - Browse repository at this point
Copy the full SHA 0cd381dView commit details -
refactor: Add Gossipsub Message wrapper (#436)
# Description This PR implements the following changes: - [x] Add gosssipsub message wrapper - [x] Rename `store_and_notify` to `publish_and_notify` The message wrapper includes a header with a nonce to force the gossip of duplicate receipts. We will likely expand on the header in future work and make the nonce optional. ## Link to issue Implements #421. ## Type of change - [x] Refactor (non-breaking change that updates existing functionality) ## Test plan (required) We've added a unit test to roundtrip a gossiped message to bytes and back again. We also have a gossip notifications integration test to confirm messages are still sent. --------- Co-authored-by: Zeeshan Lakhani <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 59383e5 - Browse repository at this point
Copy the full SHA 59383e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce0c49f - Browse repository at this point
Copy the full SHA ce0c49fView commit details -
fix: remove unnecessary decode (#438)
Fix: remove unnecessary decode of already utf8-ed string from wasmval.
Configuration menu - View commit details
-
Copy full SHA for 0b37875 - Browse repository at this point
Copy the full SHA 0b37875View commit details -
chore: Remove databases after test runs (#444)
# Description This PR implements the following changes: - [x] Remove temporary databases after test runs ## Type of change - [x] Refactor (non-breaking change that updates existing functionality) ## Test plan (required) The tests should pass and leave no databases behind.
Configuration menu - View commit details
-
Copy full SHA for 032427e - Browse repository at this point
Copy the full SHA 032427eView commit details -
chore: send_async where possible (#445)
Includes: - a rename of `asyncboundedchannel*` to `asyncchannel` to accomodate unbounded channels - remove receipt logging with too much output
Configuration menu - View commit details
-
Copy full SHA for c858c68 - Browse repository at this point
Copy the full SHA c858c68View commit details -
refactor: Refactor and split-up settings (#451)
# Description This PR implements the following changes: - [x] Break up `[node.network]` settings into smaller groups - [x] Move `[monitoring]` settings to `[node.monitoring]` - [x] Add `defaults.toml` with complete settings matching the defaults - [x] Reduce the settings passed to consumers to the minimum necessary - [x] Update test fixtures using the new settings - [x] Update and add comments A complete version of the updated settings will look something like: ```toml [node] gc_interval = 1800 shutdown_timeout = 20 [node.database] url = "homestar.db" max_pool_size = 100 [node.monitoring] process_collector_interval = 5000 console_subscriber_port = 6669 [node.network] events_buffer_len = 1024 poll_cache_interval = 1000 [node.network.ipfs] host = "127.0.0.1" port = 5001 [node.network.libp2p] listen_address = "/ip4/0.0.0.0/tcp/0" node_addresses = [] announce_addresses = [] transport_connection_timeout = 60 max_connected_peers = 32 max_announce_addresses = 10 [node.network.libp2p.mdns] enable = true enable_ipv6 = false query_interval = 300 ttl = 540 [node.network.libp2p.rendezvous] enable_client = true enable_server = false registration_ttl = 7200 discovery_interval = 600 [node.network.libp2p.pubsub] enable = false duplication_cache_time = 1 heartbeat = 60 idle_timeout = 86400 max_transmit_size = 10485760 mesh_n_low = 1 mesh_n_high = 10 mesh_n = 2 mesh_outbound_min = 1 [node.network.libp2p.dht] p2p_provider_timeout = 30 receipt_quorum = 2 workflow_quorum = 3 [node.network.keypair_config] random = { } [node.network.metrics] port = 4000 [node.network.rpc] host = "::1" port = 3030 max_connections = 10 server_timeout = 120 [node.network.webserver] host = "127.0.0.1" port = 1337 timeout = 120 websocket_capacity = 2048 websocket_receiver_timeout = 30000 ``` ## Link to issue Closes #442 ## Type of change - [x] Refactor (non-breaking change that updates existing functionality) - [ ] This change requires a documentation update. (It does. Will do.) - [x] Comments have been added/updated. ## Test plan (required) All existing tests should pass with the updated fixtures.
Configuration menu - View commit details
-
Copy full SHA for 3168793 - Browse repository at this point
Copy the full SHA 3168793View commit details -
Update websocket relay example app (#448)
This PR implements the following changes: - [x] Update example to use Homestar client: https://www.npmjs.com/package/@fission-codes/homestar - [x] Remove emulation mode Implements #390 - [x] Refactor (non-breaking change that updates existing functionality) The example should be tested manually to verify it works. --------- Signed-off-by: Brian Ginsburg <[email protected]> Co-authored-by: Hugo Dias <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7c45cf5 - Browse repository at this point
Copy the full SHA 7c45cf5View commit details -
feat: add npm package to homestar runtime (#434)
- adds npm packages to homestar-runtime. - adds CI/CD to build and publish wrapper package and os specific packages.
Configuration menu - View commit details
-
Copy full SHA for 0aa6e3a - Browse repository at this point
Copy the full SHA 0aa6e3aView commit details -
chore: comments, logs, & cleanup (#456)
# Description Remove many TODOs, add comments on *pub* (*pub* crate), and work through logs. - Includes a few other minor fixins and additions. ## Type of change - [X] Refactor (non-breaking change that updates existing functionality) Closes #262. --------- Signed-off-by: Zeeshan Lakhani <[email protected]> Co-authored-by: Brian Ginsburg <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f794950 - Browse repository at this point
Copy the full SHA f794950View commit details