fix: write skills state timestamps in local time - #1384
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR changes how ChangesTimestamp formatting
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@ee5868be78aeb9a93e5dd8dd716cd49c9ceaf7c1🧩 Skill updatenpx skills add larksuite/cli#fix/skills-state-local-time -y -g |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1384 +/- ##
==========================================
+ Coverage 71.20% 71.95% +0.74%
==========================================
Files 688 699 +11
Lines 65997 66285 +288
==========================================
+ Hits 46996 47695 +699
+ Misses 15340 14883 -457
- Partials 3661 3707 +46 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
lark-cli updatewroteskills-state.json.updated_atin UTC even when thesync ran in a local timezone. This PR preserves the local RFC3339 offset for
both incremental sync and full-install fallback state writes.
Changes
time.Timeoffset ininternal/skillscheck/sync.gofor incremental sync state writes
time.Timeoffset ininternal/skillscheck/sync.gofor full-install fallback state writes
internal/skillscheck/sync_test.gofor+08:00and-07:00Test Plan
make unit-testpassedapplicable sandbox E2E or skillave layer)
make build,./lark-cli update --help,go test ./internal/skillscheck -run '^TestSyncSkills_WritesStateAndDoesNotWriteStamp$' -count=1 -v,go test ./internal/skillscheck -run '^TestSyncSkills_ParseEmptyLocalListsFallBackToFullInstall$' -count=1 -vRelated Issues
N/A
Summary by CodeRabbit
Bug Fixes