Skip to content

Conversation

@smanes0213
Copy link
Contributor

Reason for change : Updated API and event information on OCIContainer API header
Risk : Minor
Version : Minor

@smanes0213 smanes0213 requested a review from a team as a code owner November 20, 2025 15:14
ramasat
ramasat previously approved these changes Nov 21, 2025
@ramasat ramasat force-pushed the feature/RDKEMW-10717 branch from ff71000 to 02dc46c Compare November 21, 2025 12:21
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Documentation Auto-Generated

Documentation has been automatically generated for the changed plugins and committed to this PR branch.

The generated documentation files have been added to the PR for review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the OCIContainer API header and documentation by adding brief descriptions for all methods and events. The changes improve the documentation quality by providing concise descriptions of what each API method and event does, making the interface easier to understand and use.

Key Changes

  • Added @brief tags and descriptions to all API methods (15 methods total) in the header file
  • Updated the OnContainerFailed event description to clarify it only triggers for specific states (start, stop, hibernate, wakeup)
  • Synchronized the markdown documentation to reflect the updated descriptions from the header file

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 17 comments.

File Description
apis/OCIContainer/IOCIContainer.h Added @brief descriptions for all API methods and updated notification event documentation
docs/apis/OCIContainer.md Updated method and event descriptions in the generated documentation to match header file changes
Comments suppressed due to low confidence (1)

apis/OCIContainer/IOCIContainer.h:164

  • According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

    // @brief Unmount a path in container
    // @text unmount
    // @param containerId Identifier of container
    // @param target path to unmount from container
    virtual Core::hresult Unmount(const string& containerId , const string& target , bool& success /* @out */, string& errorReason /* @out */) = 0;

Comment on lines +126 to 129
// @brief Wakeup the container
// @text wakeupContainer
// @param containerId Identifier of container
virtual Core::hresult WakeupContainer(const string& containerId , bool& success /* @out */, string& errorReason /* @out */) = 0;
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +84 to 87
// @brief Get the state of container
// @text getContainerState
// @param containerId Identifier of container
virtual Core::hresult GetContainerState(const string& containerId , ContainerState& state /* @out */, bool& success /* @out */, string& errorReason /* @out */) = 0;
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +97 to 103
// @brief Start the container from dobby specification
// @text startContainerFromDobbySpec
// @param containerId Identifier of container
// @param dobbySpec dobby specification as json string
// @param command(optional) command to run in container
// @param westerosSocket(optional) Westeros socket container need to connect
virtual Core::hresult StartContainerFromDobbySpec(const string& containerId , const string& dobbySpec , const string& command , const string& westerosSocket , int32_t& descriptor /* @out */, bool& success /* @out */, string& errorReason /* @out */) = 0;
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
// @brief Stop the container
// @text stopContainer
// @param containerId Identifier of container
// @param force(optional) Metion forceful or graceful termination of container
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error: "Metion" should be "Mention".

Suggested change
// @param force(optional) Metion forceful or graceful termination of container
// @param force(optional) Mention forceful or graceful termination of container

Copilot uses AI. Check for mistakes.
Comment on lines +105 to 109
// @brief Stop the container
// @text stopContainer
// @param containerId Identifier of container
// @param force(optional) Metion forceful or graceful termination of container
virtual Core::hresult StopContainer(const string& containerId , bool force , bool& success /* @out */, string& errorReason /* @out */) = 0;
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +111 to 114
// @brief Pause the container
// @text pauseContainer
// @param containerId Identifier of container
virtual Core::hresult PauseContainer(const string& containerId , bool& success /* @out */, string& errorReason /* @out */) = 0;
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +116 to 119
// @brief Resume the container
// @text resumeContainer
// @param containerId Identifier of container
virtual Core::hresult ResumeContainer(const string& containerId , bool& success /* @out */, string& errorReason /* @out */) = 0;
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +74 to 77
// @brief Provide list of containers
// @text listContainers
// @param containers - out/json - string
virtual Core::hresult ListContainers(string& containers /* @out @opaque */, bool& success /* @out */, string& errorReason /* @out */) = 0;
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. These descriptions will be included in the generated markdown documentation. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +131 to 136
// @brief Execute the command in container
// @text executeCommand
// @param containerId Identifier of container
// @param options(optional) options to be passed to command
// @param command command to run in container
virtual Core::hresult ExecuteCommand(const string& containerId , const string& options , const string& command , bool& success /* @out */, string& errorReason /* @out */) = 0;
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +138 to 143
// @brief Update container properties
// @text annotate
// @param containerId Identifier of container
// @param key name of property
// @param value property data
virtual Core::hresult Annotate(const string& containerId , const string& key , const string& value , bool& success /* @out */, string& errorReason /* @out */) = 0;
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Documentation Tags Guidelines, each method must include @retval tags to describe each return code associated with the function. The method is missing @retval tags.

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#documentation-tags-guidelines

Copilot generated this review using guidance from repository custom instructions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants