Skip to content

Conversation

@ainsleyclark
Copy link
Contributor

No description provided.

This fix addresses two issues:

1. Manifest Update Issue:
   - Modified tracker to preserve file-level GeneratedAt timestamps
     when file content hash hasn't changed
   - Modified tracker to preserve manifest-level GeneratedAt when
     no files have changed
   - Added WithOldManifest() method to pass previous manifest state
   - Updated update command to provide old manifest to tracker

2. Installer Script Enhancement:
   - Improved error handling for GitHub API calls
   - Added better error messages with troubleshooting hints
   - Added debugging output showing archive name being downloaded
   - Added comments clarifying GoReleaser naming compatibility

This prevents unnecessary git diffs when running webkit update with
no actual content changes, whilst still updating timestamps when
files are genuinely modified.

Includes comprehensive test coverage for timestamp preservation logic.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Updated method and field names for better clarity:
- WithOldManifest() → WithPreviousManifest()
- oldManifest field → previousManifest field
- Updated all references in tests and comments

"Previous" more clearly conveys the temporal relationship and
is more commonly used in version control contexts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 76.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.50%. Comparing base (7f6b060) to head (070221b).
⚠️ Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
internal/manifest/tracker.go 82.60% 2 Missing and 2 partials ⚠️
internal/cmd/update.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
- Coverage   64.59%   63.50%   -1.10%     
==========================================
  Files         154      154              
  Lines        6064     5069     -995     
==========================================
- Hits         3917     3219     -698     
+ Misses       2064     1764     -300     
- Partials       83       86       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

claude and others added 2 commits October 23, 2025 15:20
Commentary and Style:
- Added rule to AGENTS.md requiring all comments to end with full stops.
- Fixed all inline comments in tracker.go and update.go to end with full stops.

Test Organisation:
- Added test organisation guidelines to AGENTS.md.
- Consolidated TestTracker_WithPreviousManifest into TestTracker_Add.
- Consolidated TestTracker_Add_PreservesTimestamp tests into TestTracker_Add.
- Consolidated TestTracker_Save_PreservesManifestTimestamp into TestTracker_Save.
- Removed redundant TestManifestTimestamp function (now covered in TestTracker_Save).
- Fixed incomplete test in TestLoad for "FS Error" and "Invalid JSON" cases.

This improves test maintainability by keeping related tests together and
following the principle of one test function per exported function/method.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ainsleyclark ainsleyclark merged commit 0a69bad into main Oct 23, 2025
4 of 5 checks passed
@ainsleyclark ainsleyclark deleted the claude/fix-manifest-update-issues-011CUQ8cBe3MDwuGuhH8WrW2 branch October 23, 2025 15:27
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