Skip to content

Add vitals monitoring to script output#545

Open
sffc wants to merge 3 commits intomainfrom
sffc-patch-2
Open

Add vitals monitoring to script output#545
sffc wants to merge 3 commits intomainfrom
sffc-patch-2

Conversation

@sffc
Copy link
Copy Markdown
Member

@sffc sffc commented Apr 29, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 29, 2026 02:21
Copy link
Copy Markdown

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 adds periodic “vitals” (memory, disk, CPU load) reporting to the end-to-end generateDataAndRun.sh script output to help monitor resource usage during long runs.

Changes:

  • Start a background loop that prints memory/disk/load stats every 30 seconds.
  • Stop the background monitor near the end of the script.

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

Comment thread generateDataAndRun.sh Outdated
Comment thread generateDataAndRun.sh
# Push testresults and test reports to Cloud Storge
# TODO
echo "End-to-end script finished successfully"
kill $MONITOR_PID
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a background monitoring loop to generateDataAndRun.sh for logging system vitals during execution. The review suggests using a trap to ensure the monitor process is cleaned up if the script fails and removing the now-redundant explicit kill command.

Comment thread generateDataAndRun.sh
Comment thread generateDataAndRun.sh
# Push testresults and test reports to Cloud Storge
# TODO
echo "End-to-end script finished successfully"
kill $MONITOR_PID
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.

medium

If a trap is implemented to handle the cleanup of the background monitor process, this explicit kill command becomes redundant and can be removed to avoid potential 'No such process' errors during exit.

@sffc sffc requested a review from echeran April 29, 2026 03:10
@sffc
Copy link
Copy Markdown
Member Author

sffc commented Apr 29, 2026

And now CI passes again.

Copy link
Copy Markdown
Collaborator

@echeran echeran left a comment

Choose a reason for hiding this comment

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

LGTM

sffc and others added 2 commits May 4, 2026 10:27
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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