Repository navigation
agents: remove ZMQ agent - #636
santigimeno wants to merge 1 commit into
Conversation
Remove the ZMQ transport, its sodium dependency, bindings, configuration, build wiring and tests. Route profiling and snapshots through gRPC and reject asset requests before the agent is initialized. Update the remaining tests and document the removed configuration. Fixes: nodesource/nsolid-private#72 Signed-off-by: Santiago Gimeno <santiago.gimeno@gmail.com>
WalkthroughRetires the ZMQ transport end-to-end. Assessment
Verdict: REQUEST_CHANGES — one stale test asserts behavior this PR removes; delete or update |
| if (OBJECT_PROTO_NAMES.includes(key)) | ||
| // Ignore constructor properties and removed agent options. | ||
| if (OBJECT_PROTO_NAMES.includes(key) || | ||
| [ 'command', 'data', 'bulk', 'pubkey', 'disableIpv6' ].includes(key)) |
There was a problem hiding this comment.
lib/nsolid.js:686
These keys are now silently ignored, but test/parallel/test-nsolid-config-zmq-channels.js (untouched by this PR) still asserts the removed behavior for command/data/bulk: it expects nsolid.start() with a non-string value to throw ERR_INVALID_ARG_TYPE, and numeric values to become localhost:PORT in nsolid.config. At this head nothing throws and the keys never reach nsolid.config, so every case in that test fails. It is not skipped, so make test-ci will run it.
Delete the file, or rewrite it: its scenarios are superseded by the new test/parallel/test-nsolid-no-zmq.js, which already asserts these keys are ignored.
🤖 Ask ns-control-tower to fix this
@ns-control-tower please fix: remove or update test/parallel/test-nsolid-config-zmq-channels.js; it still asserts the old command/data/bulk validation this PR removed and will fail in CI.
Remove the ZMQ transport, its sodium dependency, bindings, configuration, build wiring and tests. Route profiling and snapshots through gRPC and reject asset requests before the agent is initialized.
Update the remaining tests and document the removed configuration.
Fixes: https://github.com/nodesource/nsolid-private/issues/72