Skip to content

Conversation

@leenaS-d
Copy link
Contributor

@leenaS-d leenaS-d commented Dec 1, 2025

Issue - Factory reset not working with API - "org.rdk.Warehouse.1.resetDevice"

Copilot AI review requested due to automatic review settings December 1, 2025 20:14
@leenaS-d leenaS-d requested a review from a team as a code owner December 1, 2025 20:14
Copy link
Contributor

@arun-madhavan-013 arun-madhavan-013 left a comment

Choose a reason for hiding this comment

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

Wpeframework warehouse plugin is invoking this script and stopping parent process will cause this script execution to stop abruptly.

Copy link

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 fixes a bug where the factory reset operation fails when triggered via the Warehouse plugin API (org.rdk.Warehouse.1.resetDevice). The issue occurs because the Warehouse plugin runs within wpeframework.service, and stopping this service during the reset kills the process executing the API call.

Key Changes

  • Removed the explicit stop of wpeframework.service from the factory reset script
  • Aligns factory-reset.sh behavior with warehouse-reset.sh, which already follows this pattern
  • Allows the Warehouse plugin API to complete the reset operation successfully

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants