Skip to content

Release/4.0.1 - #362

Closed
tdeva14 wants to merge 5 commits into
mainfrom
release/4.0.1
Closed

Release/4.0.1#362
tdeva14 wants to merge 5 commits into
mainfrom
release/4.0.1

Conversation

@tdeva14

@tdeva14 tdeva14 commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 10, 2025 09:31
@tdeva14
tdeva14 requested a review from a team as a code owner November 10, 2025 09:31

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

This PR releases version 4.0.1 with improvements to network connectivity management and reboot information handling.

  • Replaces network-online.target with network-up.target across upload service files
  • Introduces a new connectivity check script that polls for HTTP 204 responses
  • Updates warehouse reset to clean NetworkManager directories
  • Reorders reboot information parameters for consistency

Reviewed Changes

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

Show a summary per file
File Description
systemd_units/notify-network-ready.service Removes obsolete connectivity check service
systemd_units/minidump-upload.service Updates network dependency target
systemd_units/minidump-secure-upload.service Updates network dependency target
systemd_units/coredump-upload.service Updates network dependency target
systemd_units/coredump-secure-upload.service Updates network dependency target
lib/rdk/warehouse-reset.sh Adds cleanup of NetworkManager directories
lib/rdk/update_previous_reboot_info.sh Reorders parameters in reboot log format
lib/rdk/connectivitycheck.sh New script to poll URL for connectivity verification
lib/rdk/NM_Dispatcher.sh Integrates connectivity check on interface up
CHANGELOG.md Documents version 4.0.1 release notes

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


HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" "$URL")

if [ "$HTTP_CODE" -eq 204 ]; then

Copilot AI Nov 10, 2025

Copy link

Choose a reason for hiding this comment

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

The -eq operator requires numeric operands, but if curl fails or returns an error, $HTTP_CODE may be empty or non-numeric, causing a test error. Add a check to ensure HTTP_CODE is numeric before comparison, or use a default value: if [ \"${HTTP_CODE:-0}\" -eq 204 ]; then

Suggested change
if [ "$HTTP_CODE" -eq 204 ]; then
if [ "${HTTP_CODE:-0}" -eq 204 ]; then

Copilot uses AI. Check for mistakes.
Comment on lines +42 to +44
if [ ! -f $CONNCHECK_FILE ]; then
touch $CONNCHECK_FILE
fi

Copilot AI Nov 10, 2025

Copy link

Choose a reason for hiding this comment

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

This file existence check and touch pattern is repeated three times (lines 42-44, 58-60, 69-71). Consider extracting this into a helper function to reduce duplication and improve maintainability.

Copilot uses AI. Check for mistakes.
Comment on lines +106 to +107
if [ -d /opt/NetworkManager ];then rm -rf /opt/NetworkManager ; fi
if [ -d /opt/secure/NetworkManager ];then rm -rf /opt/secure/NetworkManager ; fi

Copilot AI Nov 10, 2025

Copy link

Choose a reason for hiding this comment

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

Lines 106-107 remove entire NetworkManager directories, which makes line 95's removal of /opt/NetworkManager/system-connections/* redundant. Since the parent directory is being removed, the earlier cleanup of the subdirectory is unnecessary. Consider removing line 95 or documenting why both are needed.

Copilot uses AI. Check for mistakes.
@tdeva14 tdeva14 closed this Nov 10, 2025
@tdeva14
tdeva14 deleted the release/4.0.1 branch November 10, 2025 09:35
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants