Skip to content

Reboot_Health_ Check: Add run script, service file & README #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sai-teja573
Copy link
Contributor

Reboot Health Check - Validation Feature

This PR introduces a new reboot validation feature under the Kernel Functional Area. The objective of this test is to verify if the system successfully reboots, enters the root shell, and maintains health integrity using marker and retry logic.


What’s Added

File Description

run.sh Main script to trigger and validate reboot health status
reboot_health_check.sh Executable health checker script placed in /var/common/
reboot-health.service systemd service placed in /etc/systemd/system/
README.md Complete test explanation and run instructions


Paths Used

Component Path

Health Check Script /var/common/reboot_health_check.sh
Service File /etc/systemd/system/reboot-health.service
Log Folder /var/reboot_health/reboot_test.log, /var/reboot_marker


Validation Done

Tested the full reboot cycle with auto-retry.

Logs validated at each stage.

systemd service enabled and verified on reboot.


Notes

Appends logs on each test run.

Marker file auto-cleared post successful reboot.

Copy link
Contributor

@smuppand smuppand left a comment

Choose a reason for hiding this comment

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

Remove duplicate commits. Also you have to provide a sign off, refer guidelines https://github.com/qualcomm-linux/qcom-linux-testkit/blob/main/CONTRIBUTING.md

@Sai-teja573 Sai-teja573 force-pushed the reboot_health_check_update branch from abf69c6 to c3f0ec1 Compare June 5, 2025 11:09
@Sai-teja573 Sai-teja573 force-pushed the reboot_health_check_update branch 8 times, most recently from 567e8ce to 61d36ff Compare June 6, 2025 08:10
… file and readme

   Added Reboot Health Check test script, service file, and
   README to automate system reboot validation and ensure post-reboot
   stability.

Signed-off-by: Sai-teja573 <122cs0573@nitrkl.ac.in>
@Sai-teja573 Sai-teja573 force-pushed the reboot_health_check_update branch from 61d36ff to 1abb6ae Compare June 6, 2025 08:19
@@ -41,7 +47,9 @@ log_info "=== Test Initialization ==="

# Directory for health check files
HEALTH_DIR="/var/reboot_health"
Copy link
Contributor

Choose a reason for hiding this comment

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

remove var

RETRY_FILE="$HEALTH_DIR/reboot_retry_count"
MARKER_FILE="/var/reboot_marker"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove /var/ and handle using current directory

@@ -41,7 +47,9 @@ log_info "=== Test Initialization ==="

# Directory for health check files
HEALTH_DIR="/var/reboot_health"
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove /var/

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