Repository navigation
refactor(rpc): rename envelope markers __async / __skip to ackOnly / noEnqueue (#3228) - #3259
Conversation
…noEnqueue (#3228) Renames the JSON-RPC envelope control markers from the misleading double-underscore-prefixed names (which read as reserved-namespace identifiers) to descriptive names: __async -> ackOnly (response was already sent via sendAsyncResponse; queue machinery should skip pushing a duplicate) __skip -> noEnqueue (Remote::processRpc signal to skip queueing) The producers write the new names; the consumers accept either the new or the legacy name for one release of back-compat in case external Server forks set them directly. No external client depends on these markers -- they are internal to FastLED's own RPC plumbing -- but the back-compat read costs nothing and matches the migration plan in the issue body. Refs #3228, #3224 (Tier 1B), #3244. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThree files in the FastLED JSON-RPC envelope stack are updated to rename ChangesRPC Envelope Marker Rename
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Renames the FastLED JSON-RPC envelope control markers from the misleading double-underscore-prefixed names (which read as reserved-namespace identifiers per C/C++ tradition) to descriptive names that match their actual public-envelope-control role:
__async: trueackOnly: true__skip: truenoEnqueue: trueProducers write the new names; consumers accept either new or legacy for one release of back-compat in case external Server forks set the legacy markers directly.
Why
Per #3228:
__async/__skiplook reserved-namespace but are actually public envelope-control fields. They cause linter false positives, search collisions with C-runtime__async_*symbols, and they read as "private/don't touch" in the eventual OpenRPC schema (#3081) when they're actually the canonical way to signal "ACK already sent."Closes #3228
Test plan
bash test rpc-- 1/1 test binary passes (all RPC test cases included).bash lint --cpp-- 0 violations.Server::poll(Rename RPC envelope markers '__async' / '__skip' -- they look reserved-namespace but are public envelope-control fields #3228 consumer) andRemote::processRpc(other consumer) accept both old and new names.Rpc::handlewritesackOnly,Remote::processRpcwritesnoEnqueue.Files
src/fl/remote/rpc/rpc.cpp.hpp-- writesackOnlyinstead of__asyncsrc/fl/remote/remote.cpp.hpp-- writesnoEnqueueinstead of__skip; reads eitherackOnlyor legacy__asyncfrom upstreamsrc/fl/remote/rpc/server.cpp.hpp-- reads eithernoEnqueueor legacy__skipRefs #3228, #3224 (Tier 1B), #3244.
🤖 Generated with Claude Code
Summary by CodeRabbit