Skip to content

Rebase#680

Open
KTirumalaSrihari wants to merge 123 commits into
RDKEMW-13335from
develop
Open

Rebase#680
KTirumalaSrihari wants to merge 123 commits into
RDKEMW-13335from
develop

Conversation

@KTirumalaSrihari
Copy link
Copy Markdown
Contributor

No description provided.

tabbas651 and others added 14 commits March 2, 2026 22:26
Reason for change: Added forked version git hash id for testing
Test Procedure: please refer the ticket comments
Risks: Medium
Change-Id: Ie81f3292f451e48577ee30acecc96d7e623c9ed8
Signed-off-by: Gurdal Oruklu <gurdal_oruklu@comcast.com>
RDKEMW-14726 : Implement Chrony runtime selection for Time Sync (#632)
Signed-off-by: PriyaDharshini_Kathiravan <priyakathiravan05@gmail.com>
…-swap-limit

RDKEMW-15176: added dobby patch for increased swap limit for containers
RDKEMW-15233: Integrate 0.0.1 release for reboot-manager
* Update rfc_git.bb

* RDKEMW-15263: command injection via /lib/rdk/getRFC.sh

---------

Co-authored-by: Saranya2421 <saranya.suvi@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@KTirumalaSrihari KTirumalaSrihari requested a review from a team as a code owner March 23, 2026 15:18
Copilot AI review requested due to automatic review settings March 23, 2026 15:18
@KTirumalaSrihari KTirumalaSrihari requested a review from a team as a code owner March 23, 2026 15:18
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 several Yocto/OE recipes to new source revisions/versions as part of a rebase, and adjusts the chrony first-sync notification script behavior/logging.

Changes:

  • Bump systimemgr recipe PV and SRCREV.
  • Adjust rfc recipe PV/PR metadata.
  • Update reboot-manager recipe SRCREV (and PV).
  • Change chrony-sync-notify.sh logging format and NTP-flag creation behavior.

Reviewed changes

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

File Description
recipes-support/reboot-manager/reboot-manager.bb Updates reboot-manager PV and SRCREV to a new revision.
recipes-support/chrony/files/chrony-sync-notify.sh Changes logging format and alters creation/handling of the NTP flag file.
recipes-common/systimemgr/systimemgr_git.bb Bumps PV and advances SRCREV for systemtimemgr.
recipes-common/rfc/rfc_git.bb Updates PV/PR metadata for RFC recipe.

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

Comment on lines +69 to +77
if [ -d "$NTP_DIR" ]; then
if touch "$NTP_FILE" && chmod 644 "$NTP_FILE"; then
log "Created $NTP_FILE"
else
log "Failed to create or set permissions on $NTP_FILE"
exit 1
fi
else
log "Directory $NTP_DIR does not exist; cannot create $NTP_FILE"
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

The script used to create $NTP_DIR when missing, but now exits with an error if /tmp/systimemgr does not exist. Since this directory is only referenced in this script (no other creators found), this change can cause chrony-sync-notify to fail on first boot and never create the NTP flag. Consider restoring mkdir -p "$NTP_DIR" (and logging) when the directory is absent, instead of exiting.

Suggested change
if [ -d "$NTP_DIR" ]; then
if touch "$NTP_FILE" && chmod 644 "$NTP_FILE"; then
log "Created $NTP_FILE"
else
log "Failed to create or set permissions on $NTP_FILE"
exit 1
fi
else
log "Directory $NTP_DIR does not exist; cannot create $NTP_FILE"
if [ ! -d "$NTP_DIR" ]; then
log "Creating $NTP_DIR"
if ! mkdir -p "$NTP_DIR"; then
log "Failed to create $NTP_DIR"
exit 1
fi
fi
if touch "$NTP_FILE" && chmod 644 "$NTP_FILE"; then
log "Created $NTP_FILE"
else
log "Failed to create or set permissions on $NTP_FILE"

Copilot uses AI. Check for mistakes.
Comment on lines +69 to +74
if [ -d "$NTP_DIR" ]; then
if touch "$NTP_FILE" && chmod 644 "$NTP_FILE"; then
log "Created $NTP_FILE"
else
log "Failed to create or set permissions on $NTP_FILE"
exit 1
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

This block unconditionally runs touch "$NTP_FILE" and logs "Created" even if the file already exists, which changes the previous behavior (only create/log when missing) and may unnecessarily update mtime for any watcher. Consider keeping the old if [ ! -f "$NTP_FILE" ] guard or adjusting the log message to reflect whether the file was newly created.

Suggested change
if [ -d "$NTP_DIR" ]; then
if touch "$NTP_FILE" && chmod 644 "$NTP_FILE"; then
log "Created $NTP_FILE"
else
log "Failed to create or set permissions on $NTP_FILE"
exit 1
if [ -d "$NTP_DIR" ]; then
if [ ! -f "$NTP_FILE" ]; then
if touch "$NTP_FILE" && chmod 644 "$NTP_FILE"; then
log "Created $NTP_FILE"
else
log "Failed to create or set permissions on $NTP_FILE"
exit 1
fi
else
if chmod 644 "$NTP_FILE"; then
log "Updated permissions on existing $NTP_FILE"
else
log "Failed to set permissions on existing $NTP_FILE"
exit 1
fi

Copilot uses AI. Check for mistakes.
@@ -11,12 +11,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"

FILESEXTRAPATHS:prepend := "${THISDIR}:"

Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

PV is being lowered from 1.0.0 to 0.0.1. In Yocto/OE version comparisons, decreasing PV can prevent upgrades or cause downgrades in feeds/images unless PE is bumped. If this is intentional (e.g., previous PV was incorrect), consider adding/adjusting PE or keeping PV monotonic to avoid upgrade-path issues.

Suggested change
PE = "1"

Copilot uses AI. Check for mistakes.
PR = "r1"
PV = "1.2.3"
PR = "r0"

Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

PV/PR are updated (1.2.1-r1 -> 1.2.3-r0) but SRCREV is unchanged. If this is meant to be an upstream version bump, SRCREV should typically move to the corresponding revision/tag; otherwise consumers may assume new code when the source is identical. If the intent is only to correct the displayed version, please add a brief comment clarifying why the commit stays the same.

Suggested change
# Note: PV/PR updated for packaging/version display only; upstream source remains at this SRCREV.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings March 24, 2026 11:39
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 5 out of 5 changed files in this pull request and generated 2 comments.


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

Comment on lines +67 to +70
echo "Synchronized" > /tmp/ntp_status

if [ -d "$NTP_DIR" ]; then
if touch "$NTP_FILE" && chmod 644 "$NTP_FILE"; then
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

/tmp/ntp_status is written before the new $NTP_DIR/$NTP_FILE creation logic that can now fail and exit 1. That can leave ntp_status saying "Synchronized" even though the script reports failure. Consider only writing ntp_status after the $NTP_FILE step succeeds (or cleaning it up on failure).

Suggested change
echo "Synchronized" > /tmp/ntp_status
if [ -d "$NTP_DIR" ]; then
if touch "$NTP_FILE" && chmod 644 "$NTP_FILE"; then
if [ -d "$NTP_DIR" ]; then
if touch "$NTP_FILE" && chmod 644 "$NTP_FILE"; then
echo "Synchronized" > /tmp/ntp_status

Copilot uses AI. Check for mistakes.
Comment thread recipes-common/rfc/rfc_git.bb Outdated
Comment on lines 9 to 13
PV = "1.2.3"
PR = "r0"

SRCREV = "904a9167f2cbe87dc34d342e32f5ca16b177432c"
SRC_URI = "${CMF_GITHUB_ROOT}/rfc;${CMF_GITHUB_SRC_URI_SUFFIX};name=rfc"
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

PV was bumped to 1.2.3, but SRCREV is unchanged. As written, this will build the same source revision under a new version, which can confuse debugging and package feeds. Either update SRCREV to the commit that corresponds to 1.2.3, or keep PV aligned to the pinned revision (common pattern is PV = "<release>+git${SRCPV}").

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings May 18, 2026 12:27
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 40 out of 40 changed files in this pull request and generated 3 comments.

Comment on lines +10 to +21
SRC_URI = "git://github.com/gomathishankar37/ProcessMonitor.git;protocol=https;branch=exit-handler"

SRC_URI:append = " file://process-monitor.path \
file://process-monitor.service \
"

inherit cmake systemd

EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release"

# SRCREV = "63c19611d52cec3331bc9ea1bc82175f5d8a9c96"
SRCREV = "${AUTOREV}"
Comment on lines +179 to +201
parse_settings() {
local raw="$1"
s_type=$(echo "$raw" | cut -d',' -f1)
s_maxsources=$(echo "$raw" | cut -d',' -f2)
s_iburst=$(echo "$raw" | cut -d',' -f3)
s_minpoll=$(echo "$raw" | cut -d',' -f4)
s_maxpoll=$(echo "$raw" | cut -d',' -f5)

# Normalise type: only "pool" is special, everything else is "server"
[ "$s_type" = "pool" ] || s_type="server"

# Validate poll values; fall back to defaults if non-numeric or inverted
[[ "$s_minpoll" =~ ^[0-9]+$ ]] || s_minpoll="$DEFAULT_MINPOLL"
[[ "$s_maxpoll" =~ ^[0-9]+$ ]] || s_maxpoll="$DEFAULT_MAXPOLL"
if [ "$s_minpoll" -gt "$s_maxpoll" ]; then
ntpLog "WARNING: minpoll ($s_minpoll) > maxpoll ($s_maxpoll) in settings '$raw', using defaults"
s_minpoll="$DEFAULT_MINPOLL"
s_maxpoll="$DEFAULT_MAXPOLL"
fi

# Normalise iburst: only literal "true" enables it
[ "$s_iburst" = "true" ] || s_iburst="false"
}
Comment on lines +47 to +54
log_info() {
echo "[start_meminsight] [INFO] $*" >> $RDM_LOG_FILE
}

log_error() {
echo "[start_meminsight] [ERROR] $*" >> $RDM_LOG_FILE
}

Copilot AI review requested due to automatic review settings May 21, 2026 04:44
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 43 out of 43 changed files in this pull request and generated 3 comments.

Comment on lines +20 to +22
[Unit]
Description=Process Moniter
OnFailure=path-fail-notifier@%n.service
Comment on lines +24 to +31
Type=simple
RemainAfterExit=yes
EnvironmentFile=-/tmp/meminsight.env
ExecStart=/bin/sh -c 'PATH="/run/meminsight/usr/bin:/media/apps/meminsight:/media/apps/meminsight/usr/bin:$PATH"; meminsight $ARGS'
ExecStop=-/bin/rm /tmp/.meminsight_upload /tmp/.meminsight_inprogress
ExecStopPost=-/bin/rm /tmp/meminsight.env /tmp/.enable_meminsight /nvram/.enable_meminsight
Restart=on-failure
RestartSec=30
Comment on lines +47 to +53
log_info() {
echo "[start_meminsight] [INFO] $*" >> $RDM_LOG_FILE
}

log_error() {
echo "[start_meminsight] [ERROR] $*" >> $RDM_LOG_FILE
}
Copilot AI review requested due to automatic review settings May 26, 2026 09:44
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 48 out of 48 changed files in this pull request and generated 3 comments.

Comment on lines +47 to +53
log_info() {
echo "[start_meminsight] [INFO] $*" >> $RDM_LOG_FILE
}

log_error() {
echo "[start_meminsight] [ERROR] $*" >> $RDM_LOG_FILE
}

[Service]
Type=simple
RemainAfterExit=yes
Comment on lines +94 to +109
# Remove the upload trigger file so the systemd path unit does not
# immediately re-trigger the service after a graceful exit.
cleanup_upload_trigger() {
rm -f "$UPLOAD_TRIGGER_PATH" >/dev/null 2>&1 || true
}

# Acquire an exclusive instance lock via atomic mkdir.
# Registers cleanup_lock via trap so the lock is always released on exit.
# Exits with code 0 (not an error) if another instance already holds the lock.
acquire_lock() {
if ! mkdir "$LOCK_DIR" >/dev/null 2>&1; then
log "Another upload instance is already running; exiting."
exit 0
fi
trap cleanup_lock EXIT INT TERM
}
Copilot AI review requested due to automatic review settings May 28, 2026 00: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 48 out of 48 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

recipes-devtools/meminsight/files/meminsight-upload.service:27

  • This oneshot unit sets RemainAfterExit=yes. Because it is started by a .path trigger, keeping the service in "active" state after the script exits can prevent subsequent path events from starting it again (e.g., next meminsight run). Consider removing RemainAfterExit (default no) so the service returns to inactive after completion.

Comment on lines +1 to +2
SUMMARY = "Process Moniter utility and runner service"
DESCRIPTION = "Linux process monitor - track and record the execution times of all processes"
Comment on lines +23 to +30
[Service]
Type=simple
RemainAfterExit=yes
EnvironmentFile=-/tmp/meminsight.env
ExecStart=/bin/sh -c 'PATH="/run/meminsight/usr/bin:/media/apps/meminsight:/media/apps/meminsight/usr/bin:$PATH"; meminsight $ARGS'
ExecStop=-/bin/rm /tmp/.meminsight_upload /tmp/.meminsight_inprogress
ExecStopPost=-/bin/rm /tmp/meminsight.env /tmp/.enable_meminsight /nvram/.enable_meminsight
Restart=on-failure
Copilot AI review requested due to automatic review settings June 2, 2026 14:41
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 49 out of 49 changed files in this pull request and generated 6 comments.

Comments suppressed due to low confidence (1)

recipes-devtools/meminsight/files/meminsight-upload.service:26

  • RemainAfterExit=yes keeps this oneshot service in an ‘active’ state after it exits, which can prevent subsequent path-triggered starts (systemd won’t start an already-active unit). For a PathExists-triggered oneshot, this should typically be removed.

Comment on lines +53 to +62
do_install:append() {
install -d ${D}${bindir}
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${S}/services/update-reboot-info.path ${D}${systemd_unitdir}/system
install -m 0644 ${S}/services/update-reboot-info.service ${D}${systemd_unitdir}/system

if [ "${ENABLE_SYSLOGNG}" = "true" ]; then
echo "SYSLOG_NG_ENABLED=true" >> ${D}${sysconfdir}/device-middleware.properties
fi

@@ -0,0 +1,38 @@
SUMMARY = "Process Moniter utility and runner service"
Comment on lines +20 to +22
[Unit]
Description=Process Moniter
OnFailure=path-fail-notifier@%n.service
Comment on lines +27 to +32
do_install:append () {
install -d ${D}${systemd_unitdir}/system
rm -rf ${S}/process-monitor.service
install -m 0644 ${WORKDIR}/process-monitor.service ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/process-monitor.path ${D}${systemd_unitdir}/system
}
Comment on lines +23 to +26
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/media/apps/processmonitor/usr/bin/ProcessMonitor --duration 180 --output /opt/processMonitorResults.js -m /media/apps/processmonitor/usr/lib/libexithandler.so.1
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/media/apps/processmonitor/usr/bin/ProcessMonitor --duration 180 --output /opt/processMonitorResults.js -m /media/apps/processmonitor/usr/lib/libexithandler.so.1
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.