Skip to content

MacOS diag scripts#497

Merged
rajatarya merged 2 commits intomainfrom
rajat/macos-diag-scripts
Sep 17, 2025
Merged

MacOS diag scripts#497
rajatarya merged 2 commits intomainfrom
rajat/macos-diag-scripts

Conversation

@rajatarya
Copy link
Collaborator

Adds corresponding Diagnostics script for MacOS.

Lightly tested with hf-xet 1.1.10 and MacOS 15.6.1 - correctly takes stack traces on interval and writes out to diagnostics folder as expected.

@rajatarya rajatarya requested review from Copilot and jsulz September 17, 2025 17:51
Copy link
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

Adds a macOS-specific diagnostics script to complement existing diagnostic tools. The script enables monitoring of hf-xet processes by capturing periodic stack traces and detecting hangs, with automatic debug symbol installation for better debugging capabilities.

  • Implements macOS-specific process monitoring using sample and lldb tools
  • Adds automatic detection and core dump generation for hung processes
  • Includes automatic download and installation of debug symbols for the installed hf-xet version

Reviewed Changes

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

File Description
hf-xet-diag-macos.sh New macOS diagnostics script with stack tracing, hang detection, and core dump functionality
README.md Documentation update describing the new macOS diagnostics script usage and requirements

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@jsulz jsulz left a comment

Choose a reason for hiding this comment

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

Nice! Works for me as well on MacOS 14.5. Did not test on latest MacOS - need to find a good time to walk away from my computer for an hour 😅

@rajatarya
Copy link
Collaborator Author

Nice! Works for me as well on MacOS 14.5. Did not test on latest MacOS - need to find a good time to walk away from my computer for an hour 😅

I tested on MacOS Sequoia 15.6.1 (24G90) so that is a newer one. My computer is now asking me to update to latest MacOS (renumbered, now 26.0 - sigh.)

@rajatarya rajatarya merged commit f612564 into main Sep 17, 2025
6 checks passed
@rajatarya rajatarya deleted the rajat/macos-diag-scripts branch September 17, 2025 22:07
seanses pushed a commit that referenced this pull request Sep 23, 2025
Adds corresponding Diagnostics script for MacOS.

Lightly tested with hf-xet 1.1.10 and MacOS 15.6.1 - correctly takes
stack traces on interval and writes out to diagnostics folder as
expected.
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