Skip to content

Update Fleet-maintained apps - #47036

Closed
fleet-release wants to merge 1 commit into
mainfrom
fma-2606071326
Closed

Update Fleet-maintained apps#47036
fleet-release wants to merge 1 commit into
mainfrom
fma-2606071326

Conversation

@fleet-release

@fleet-release fleet-release commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Automated ingestion of latest Fleet-maintained app data.

Summary by CodeRabbit

Release Notes

  • Chores
    • Comet: Updated to version 145.2.7632.4581
    • Kitty: Updated to version 0.47.2
    • Stats: Updated to version 3.0.0 with improved installation process, enhanced backup handling, and refined application recovery

Generated automatically with cmd/maintained-apps.

@claude claude Bot 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.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai

coderabbitai Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

This PR updates three maintained macOS app definitions. Comet is adjusted from version 148.0.7778.1016 to 145.2.7632.4581 with corresponding SQL query updates. Kitty is bumped from 0.47.1 to 0.47.2, including installer URL and checksum updates. Stats is upgraded from 2.12.16 to 3.0.0 with version metadata changes and a refactored install script that uses new helper functions, improves DMG handling with backup logic, and adds root-aware session management for relaunching the application.

Possibly related PRs

  • fleetdm/fleet#46547: Updates Fleet-maintained app macOS darwin.json entries by bumping versions and adjusting queries.patched SQL to compare against new bundle versions.
  • fleetdm/fleet#46721: Updates macOS maintained-app JSON metadata by changing queries.patched version comparisons and associated installer URLs and checksums for app entries.
  • fleetdm/fleet#45680: Modifies ee/maintained-apps/outputs/stats/darwin.json for Stats by updating version-targeted version comparisons and installer metadata.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is vague and lacks required checklist items. It only provides 'Automated ingestion of latest Fleet-maintained app data' without filling out any of the template's required validation, testing, or database migration checklist items. Add details about which checklist items apply to this change and complete relevant sections such as testing and validation procedures.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Update Fleet-maintained apps' directly summarizes the main change across all three files, which update version definitions for Comet, Kitty, and Stats maintained apps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fma-2606071326

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
ee/maintained-apps/outputs/stats/darwin.json (1)

20-20: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Add rollback when new app copy fails after moving existing Stats.app.

At Line 20 (embedded install script), the old app is moved to Stats.app.bkp before install, but a failed cp leaves the app absent with no restore path.

Proposed fix
- if [ -d "$APPDIR/Stats.app" ]; then
- 	sudo mv "$APPDIR/Stats.app" "$TMPDIR/Stats.app.bkp"
- fi
- sudo cp -R "$TMPDIR/Stats.app" "$APPDIR"
+ had_backup=0
+ if [ -d "$APPDIR/Stats.app" ]; then
+   sudo mv "$APPDIR/Stats.app" "$TMPDIR/Stats.app.bkp"
+   had_backup=1
+ fi
+
+ if ! sudo cp -R "$TMPDIR/Stats.app" "$APPDIR"; then
+   echo "Failed to install new Stats.app"
+   if [ "$had_backup" -eq 1 ] && [ -d "$TMPDIR/Stats.app.bkp" ]; then
+     sudo mv "$TMPDIR/Stats.app.bkp" "$APPDIR/Stats.app"
+     echo "Restored previous Stats.app from backup."
+   fi
+   exit 1
+ fi
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@ee/maintained-apps/outputs/stats/darwin.json` at line 20, The install script
moves the existing app to a backup ("sudo mv \"$APPDIR/Stats.app\"
\"$TMPDIR/Stats.app.bkp\"") and then copies the new app, but if the subsequent
sudo cp -R "$TMPDIR/Stats.app" "$APPDIR" fails the original is lost; update the
install sequence to perform the copy first into a temporary location (or check
cp exit status) and, on cp failure, restore the backup by moving
"$TMPDIR/Stats.app.bkp" back to "$APPDIR/Stats.app" and remove the failed
partial copy; ensure you handle errors and exit non‑zero when both copy and
restore fail, referencing the existing logic around quit_and_track_application
and relaunch_application so relaunch only runs after successful install.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@ee/maintained-apps/outputs/stats/darwin.json`:
- Line 20: The install script moves the existing app to a backup ("sudo mv
\"$APPDIR/Stats.app\" \"$TMPDIR/Stats.app.bkp\"") and then copies the new app,
but if the subsequent sudo cp -R "$TMPDIR/Stats.app" "$APPDIR" fails the
original is lost; update the install sequence to perform the copy first into a
temporary location (or check cp exit status) and, on cp failure, restore the
backup by moving "$TMPDIR/Stats.app.bkp" back to "$APPDIR/Stats.app" and remove
the failed partial copy; ensure you handle errors and exit non‑zero when both
copy and restore fail, referencing the existing logic around
quit_and_track_application and relaunch_application so relaunch only runs after
successful install.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4b52c5de-49a9-4bbc-82ff-f54a6bcbcc25

📥 Commits

Reviewing files that changed from the base of the PR and between b1395ed and 4ac2606.

📒 Files selected for processing (3)
  • ee/maintained-apps/outputs/comet/darwin.json
  • ee/maintained-apps/outputs/kitty/darwin.json
  • ee/maintained-apps/outputs/stats/darwin.json

@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Closing in favor of #47038.

@github-actions github-actions Bot closed this Jun 7, 2026
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