Skip to content

RDKEMW-21013: Add boot-time timeout for DeviceInfo MAC cache in SystemServices Configure#564

Open
nanimatta wants to merge 3 commits into
developfrom
topic/RDKEMW-21013
Open

RDKEMW-21013: Add boot-time timeout for DeviceInfo MAC cache in SystemServices Configure#564
nanimatta wants to merge 3 commits into
developfrom
topic/RDKEMW-21013

Conversation

@nanimatta

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 7, 2026 14:23
@nanimatta nanimatta requested a review from a team as a code owner July 7, 2026 14:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a small execution-time guard to prevent slow/hung device-info commands from blocking boot-time device detail collection, by introducing a timeout wrapper and applying it to MAC/manufacturer lookups.

Changes:

  • Introduced run_with_timeout() with a fixed DETAILS_CMD_TIMEOUT to wrap commands when timeout is available.
  • Wrapped ifconfig MAC-address extraction calls with the timeout helper.
  • Wrapped mfr_util --Manufacturer calls with the timeout helper.

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

Comment thread lib/rdk/getDeviceDetails.sh
Comment thread lib/rdk/getDeviceDetails.sh
Comment thread lib/rdk/getDeviceDetails.sh
Comment thread lib/rdk/getDeviceDetails.sh
Comment thread lib/rdk/getDeviceDetails.sh
Copilot AI review requested due to automatic review settings July 7, 2026 20:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread lib/rdk/getDeviceDetails.sh
Copilot AI review requested due to automatic review settings July 7, 2026 20:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Comment on lines +35 to +38
GDD_TRACE=${GDD_TRACE:-1}
trace_gdd() {
[ "$GDD_TRACE" = "1" ] && echo "GDD_TRACE: ts=$(date +%s) pid=$$ cmd=$command param=$parameter $*" >> /tmp/gdd_trace.log
}
Comment on lines +415 to +417
trace_gdd "estb_mac_start"
MacAddress=`getEstbMacAddress`
trace_gdd "estb_mac_done rc=$?"
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.

2 participants