1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-06 22:12:25 +00:00
git-k8s/pkg
Claude 502d96be74
Improve test coverage across all reconciler packages
Apply the differential coverage (diffcover) pattern to identify under-tested
components and add targeted tests. Coverage improved from 10.3% to 28.1%
overall, with key reconciler packages going from 0% to meaningful coverage.

Key changes:
- internal: 26.7% -> 100% (NewReconciler, Reconcile, Promote, Demote)
- sync: 0% -> 33% (findBranch, updateSyncStatus, createPushTransaction, ReconcileKind)
- push: 0% -> 24.1% (failTransaction, updateBranches, resolveAuth, ReconcileKind)
- resolver: 2.1% -> 32.9% (buildMergedTree, markManualIntervention, createMergePushTransactions)
- repowatcher: 10.1% -> 53.8% (resolveAuth, ReconcileKind, SetImpl, enqueueAfter)

Also fixes a bug in resolver.go where buildMergedTree did not sort tree
entries before encoding, causing "entries in tree are not sorted" errors.

https://claude.ai/code/session_013XXVjRk3cWjsMb8BSvntQK
2026-03-04 19:55:05 +00:00
..
apis/git/v1alpha1 Add repo-watcher-controller for polling remote Git refs 2026-02-28 14:09:58 +00:00
client Fix multiple code review issues: dedup splitKey, fix merge bug, remove dead code 2026-02-28 04:39:00 +00:00
reconciler Improve test coverage across all reconciler packages 2026-03-04 19:55:05 +00:00