Skip to content

RDKEMW-17313: populating appinfra_versions in /opt/logs.#3905

Open
kvfasil wants to merge 15 commits intodevelopfrom
feature/RDKEMW-17313
Open

RDKEMW-17313: populating appinfra_versions in /opt/logs.#3905
kvfasil wants to merge 15 commits intodevelopfrom
feature/RDKEMW-17313

Conversation

@kvfasil
Copy link
Copy Markdown

@kvfasil kvfasil commented May 6, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 6, 2026 23:51
@kvfasil kvfasil requested review from a team as code owners May 6, 2026 23:51
Copy link
Copy Markdown
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 middleware layer to support writing AppInfra component version information into the device’s log area under /opt/logs, by adding a helper script and updating the thunder-startup-services source revision.

Changes:

  • Bump thunderstartupservices to a newer upstream commit via SRCREV.
  • Add pop_appinfra_version.sh script intended to update /opt/logs/version.txt with AppGateway/AppManagers/CPC version lines (without duplication).
  • Install/package the new script from the entservices-appgateway recipe into /usr/bin.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
recipes-extended/thunderstartupservices/thunderstartupservices.bb Updates SRCREV to pick up newer thunder-startup-services behavior.
recipes-extended/entservices/files/pop_appinfra_version.sh New script that cleans/rewrites plugin version lines in /opt/logs/version.txt.
recipes-extended/entservices/entservices-appgateway.bb Installs and packages the version population script alongside the AppGateway plugin.

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

Comment thread recipes-extended/entservices/entservices-appgateway.bb
Comment thread recipes-extended/entservices/entservices-appgateway.bb
Comment thread recipes-extended/entservices/files/pop_appinfra_version.sh
Comment thread recipes-extended/entservices/files/pop_appinfra_version.sh Outdated
Comment thread recipes-extended/entservices/files/pop_appinfra_version.sh Outdated
Comment thread recipes-extended/entservices/files/pop_appinfra_version.sh Outdated
Copilot AI review requested due to automatic review settings May 7, 2026 00:13
Copy link
Copy Markdown
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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

inherit cmake pkgconfig

SRC_URI = "${CMF_GITHUB_ROOT}/entservices-appgateway;${CMF_GITHUB_SRC_URI_SUFFIX}"
SRC_URI += "file://pop_appinfra_version.sh"
Comment on lines +7 to +9
APPGATEWAY_VERSION="/etc/appgatewayversion.txt"
APPMANAGER_VERSION="/etc/appmanagersversion.txt"
APPGATEWAY_CPC_VERSION="/etc/appgatewaycpcversion.txt"
Comment on lines +12 to +15
if [ -f /etc/device.properties ]; then
BUILD_TYPE=$(grep -m 1 "^BUILD_TYPE=" /etc/device.properties | cut -d '=' -f 2- | sed 's/^[[:space:]]*//; s/[[:space:]]*$//; s/^"//; s/"$//')
else
echo "Warning: /etc/device.properties not found."
@@ -0,0 +1,53 @@
#!/bin/bash
# Script to populate /opt/logs/version.txt with appgateway, appmanager, and cpc versions
Copilot AI review requested due to automatic review settings May 7, 2026 14:24
Copy link
Copy Markdown
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

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

Comment on lines +6 to +10
VERSION_FILE="/opt/logs/version.txt"
APPGATEWAY_VERSION="/etc/appgatewayversion.txt"
APPMANAGER_VERSION="/etc/appmanagersversion.txt"
APPGATEWAY_CPC_VERSION="/etc/appgatewaycpcversion.txt"

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