feat: Prune all orphan branches (#461)
Schedule logic has been refactored to enable the pruning of all orphan branches. Now, schedules aren't checked at package-time, instead package upgrades are queued regardless of schedule. At branch time, it is checked whether the *branch* is scheduled and then the branch is not created/updated if it's off-schedule. This enables the repository worker to know all possible branches and hence be able to determine which remaining branches in the repository are "orphans" to be deleted. Closes #428, Closes #426
Showing
- lib/workers/branch/index.js 13 additions, 15 deletionslib/workers/branch/index.js
- lib/workers/branch/schedule.js 0 additions, 0 deletionslib/workers/branch/schedule.js
- lib/workers/package-file/index.js 16 additions, 10 deletionslib/workers/package-file/index.js
- lib/workers/package/index.js 0 additions, 11 deletionslib/workers/package/index.js
- lib/workers/repository/cleanup.js 5 additions, 40 deletionslib/workers/repository/cleanup.js
- lib/workers/repository/index.js 3 additions, 5 deletionslib/workers/repository/index.js
- lib/workers/repository/onboarding.js 12 additions, 10 deletionslib/workers/repository/onboarding.js
- lib/workers/repository/upgrades.js 14 additions, 1 deletionlib/workers/repository/upgrades.js
- test/workers/branch/index.spec.js 8 additions, 0 deletionstest/workers/branch/index.spec.js
- test/workers/branch/schedule.spec.js 2 additions, 2 deletionstest/workers/branch/schedule.spec.js
- test/workers/package-file/index.spec.js 6 additions, 11 deletionstest/workers/package-file/index.spec.js
- test/workers/package/index.spec.js 1 addition, 11 deletionstest/workers/package/index.spec.js
- test/workers/repository/__snapshots__/onboarding.spec.js.snap 38 additions, 0 deletions.../workers/repository/__snapshots__/onboarding.spec.js.snap
- test/workers/repository/__snapshots__/upgrades.spec.js.snap 29 additions, 0 deletionstest/workers/repository/__snapshots__/upgrades.spec.js.snap
- test/workers/repository/cleanup.spec.js 1 addition, 44 deletionstest/workers/repository/cleanup.spec.js
- test/workers/repository/onboarding.spec.js 18 additions, 0 deletionstest/workers/repository/onboarding.spec.js
- test/workers/repository/upgrades.spec.js 22 additions, 0 deletionstest/workers/repository/upgrades.spec.js
Loading
Please register or sign in to comment