Fix/actions.intent#67
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Firebolt C++ client and its OpenRPC fixture to correct the Actions.intent contract to a getter-only API that takes no parameters and returns the current intent as a string, and aligns generated code and tests accordingly.
Changes:
- Updated
Actions.intentC++ interface/implementation tointent() -> Result<std::string>(no args). - Updated OpenRPC spec fixture to define
Actions.intent(no params, string result) andActions.onIntent. - Adjusted unit/component tests and added a local Docker runner script for component tests.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| test/unit/actionsTest.cpp | Updates unit test to call intent() and assert returned string. |
| test/unit/actionsGeneratedTest.cpp | Aligns generated unit test to new getter behavior and error propagation path. |
| test/component/actionsGeneratedTest.cpp | Reworks component test (currently reduced to interface-surface check). |
| src/json_types/actions.h | Formatting/include-order adjustments for Actions JSON types header. |
| src/actions_impl.h | Updates ActionsImpl signature to return Result<std::string> for intent(). |
| src/actions_impl.cpp | Implements getter-style intent() via helper get<...>(). |
| run-component-tests-local.sh | Adds a convenience script to run component tests locally via Docker. |
| include/firebolt/actions.h | Updates public Actions interface to getter-only intent(). |
| docs/openrpc/the-spec/firebolt-open-rpc.json | Adds/updates OpenRPC entries for Actions.intent and Actions.onIntent and module description. |
| CHANGELOG.md | Notes updated Actions.intent contract (no params, returns string). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
added 3 commits
June 2, 2026 10:06
…t-cpp-client into fix/actions.intent
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
docs/openrpc/the-spec/firebolt-open-rpc.json:31
rpc.discoveris not a getter-style property, but it is currently tagged withproperty:readonly. This tag can cause tooling/generators to treatrpc.discoverlike a property getter and is inconsistent with the rest of the schema (e.g.,Accessibility.audioDescriptionis a property getter,rpc.discoveris not). Remove theproperty:readonlytag fromrpc.discover.
"tags": [
{
"name": "capabilities",
"x-uses": [
"xrn:firebolt:capability:rpc:discover"
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
swethasukumarr
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the Actions contract so
Actions.intentis a getter-only API:What Changed
intent() -> string(no args)Validation
Notes
Red “validation error” log lines are expected from negative-path tests and do not indicate test failures.