Skip to content

FR 101 - #102

Merged
dan-snelson merged 3 commits into
developmentfrom
FR-101
Sep 4, 2026
Merged

FR 101#102
dan-snelson merged 3 commits into
developmentfrom
FR-101

Conversation

@dan-snelson

Copy link
Copy Markdown
Owner

Addresses Feature Request #101

  • Added checkClockSkew() to Jamf Pro runs to detect local clock offset against time.apple.com before inventory submission and flag skew above 5 minutes

First draft
Ticky-tack tweaks
Copilot AI lite review requested due to automatic review settings September 4, 2026 11:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

checkClockSkew() needs mode-safe handling (avoid dialog updates/sleeps in Silent/Test while still recording results) and there are minor version/date/UI inconsistencies to resolve.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a new Jamf Pro–specific health check to detect meaningful local clock skew (via sntp time.apple.com) before attempting Jamf inventory submission, and updates the docs/diagrams/versioning to reflect the new check.

Changes:

  • Added checkClockSkew() and wired it into the Jamf Pro run sequence, plus Inspect Summary mappings (category, criticality, explanation/remediation).
  • Updated Jamf Pro list items / indices to include the new “Clock Skew” check.
  • Bumped documented version references and updated docs/diagrams/changelog to include the new check.
File summaries
File Description
README.md Updates version text and documents the new Clock Skew behavior for Jamf Pro runs.
Mac-Health-Check.zsh Implements checkClockSkew(), updates Jamf Pro list items and run order, and adds Inspect Summary support for the new check.
Diagrams/06-health-check-reference.md Updates Development-mode note and adds checkClockSkew() to the reference table.
Diagrams/03-health-check-categories.md Adds Clock Skew to the MDM category diagram/table.
CHANGELOG.md Updates the 4.2.0b2 section to include the new check.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Mac-Health-Check.zsh Outdated
Comment on lines +7665 to +7669
dialogUpdate "icon: SF=clock,${organizationColorScheme}"
dialogUpdate "listitem: index: ${1}, icon: SF=$(printf "%02d" $(($1+1))).circle.fill $(echo "${organizationColorScheme}" | tr ',' ' '), iconalpha: 1, status: wait, statustext: Checking …"
dialogUpdate "progress: increment"
dialogUpdate "progresstext: Determining ${humanReadableCheckName} …"

Comment thread Mac-Health-Check.zsh Outdated
Comment thread Mac-Health-Check.zsh Outdated
Post-Copilot review of PR 102
@dan-snelson
dan-snelson merged commit c40a50e into development Sep 4, 2026
8 checks passed
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.

2 participants