← Back to PRs

#22702: fix(appcast): correct sparkle:version for 2026.2.13

by lbo728 open 2026-02-21 14:50 View on GitHub →
size: XS
## 🤖 AI-Assisted (Claude via OpenClaw) **Testing:** Fully tested — added comprehensive validation test + verified fix locally **Understanding:** Root cause identified (legacy build number vs date-based format), fix validated with test coverage to prevent future regressions. --- ## Problem Version 2026.2.13 in `appcast.xml` had `sparkle:version` set to `9846` instead of the expected date-based format `202602130`. This caused Sparkle's version comparison to malfunction, potentially offering older versions as updates to users with newer builds (as reported in #22657). ## Root Cause The `sparkle:version` must follow the date-based format: ``` YYYY + MM (zero-padded) + DD (zero-padded) + 0 ``` Example: - `2026.2.15` → `202602150` ✅ - `2026.2.13` → `202602130` ✅ (expected) - `2026.2.13` → `9846` ❌ (actual, legacy build number) ## Solution 1. **Fix appcast.xml:** Changed `9846` → `202602130` for v2026.2.13 2. **Add validation test:** New test validates ALL versions in appcast.xml use correct date-based `sparkle:version` format, preventing future regressions ## Testing ```bash pnpm test appcast.test.ts # ✓ All tests passing ``` The new test would have caught this bug before it reached production. ## Fixes Closes #22657 <!-- greptile_comment --> <h3>Greptile Summary</h3> Fixed `sparkle:version` for v2026.2.13 from legacy build number `9846` to correct date-based format `202602130`. Added comprehensive validation test that checks ALL versions in `appcast.xml` use the expected `YYYYMMDD0` format, preventing future regressions. <h3>Confidence Score: 5/5</h3> - This PR is safe to merge with no risk - The fix is surgical and correct - it changes a single hardcoded version string from an incorrect legacy build number to the proper date-based format. The new test provides comprehensive validation coverage and would have caught this bug before production. All three versions in the appcast now follow the correct format. - No files require special attention <sub>Last reviewed commit: 7a156bf</sub> <!-- greptile_other_comments_section --> <!-- /greptile_comment -->

Most Similar PRs