-
Notifications
You must be signed in to change notification settings - Fork 93
feat(pool): recover orphaned scratch orgs #1234
Conversation
Scratch orgs when created during prepare can be timed out at the client side (aka at the execution of prepare), however these scratch orgs might get created in the backend and consume an active limit, but is not recovered by sfpowerscripts upon delete. Users have to manually delete thes orgs out or wait till these orgs are expired, so that the active limits are back. This functionality uses description filed to determine which scratch orgs were requested by sfpowerscripts and then proceed to delete during an execution of prepare command before and after the pools are created
Codecov ReportBase: 60.48% // Head: 60.48% // No change to project coverage 👍
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #1234 +/- ##
=======================================
Coverage 60.48% 60.48%
=======================================
Files 64 64
Lines 2126 2126
Branches 453 453
=======================================
Hits 1286 1286
Misses 788 788
Partials 52 52 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
packages/core/src/scratchorg/pool/services/fetchers/ScratchOrgInfoFetcher.ts
Outdated
Show resolved
Hide resolved
packages/core/src/scratchorg/pool/services/fetchers/ScratchOrgInfoFetcher.ts
Outdated
Show resolved
Hide resolved
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1234 +/- ##
=======================================
Coverage ? 60.48%
=======================================
Files ? 64
Lines ? 2126
Branches ? 453
=======================================
Hits ? 1286
Misses ? 788
Partials ? 52 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This reverts commit 0c18540.
* feat(pool): recover orphaned scratch orgs Scratch orgs when created during prepare can be timed out at the client side (aka at the execution of prepare), however these scratch orgs might get created in the backend and consume an active limit, but is not recovered by sfpowerscripts upon delete. Users have to manually delete thes orgs out or wait till these orgs are expired, so that the active limits are back. This functionality uses description filed to determine which scratch orgs were requested by sfpowerscripts and then proceed to delete during an execution of prepare command before and after the pools are created * [CodeFactor] Apply fixes * Apply suggestions from code review --------- Co-authored-by: codefactor-io <support@codefactor.io>
* feat(pool): recover orphaned scratch orgs (#1234) * feat(pool): recover orphaned scratch orgs Scratch orgs when created during prepare can be timed out at the client side (aka at the execution of prepare), however these scratch orgs might get created in the backend and consume an active limit, but is not recovered by sfpowerscripts upon delete. Users have to manually delete thes orgs out or wait till these orgs are expired, so that the active limits are back. This functionality uses description filed to determine which scratch orgs were requested by sfpowerscripts and then proceed to delete during an execution of prepare command before and after the pools are created * [CodeFactor] Apply fixes * Apply suggestions from code review --------- Co-authored-by: codefactor-io <support@codefactor.io> * fix(pool): move recovery of orphaned orgs to delete recovery of oprhaned scratch orgs are moved to the delete command, with an addition of '-o' flag. This will alllow the user to run dur --------- Co-authored-by: codefactor-io <support@codefactor.io>
Scratch orgs when created during prepare can be timed out at the client side (aka at the execution
of prepare), however these scratch orgs might get created in the backend and consume an active
limit, but is not recovered by sfpowerscripts upon delete. Users have to manually delete thes orgs
out or wait till these orgs are expired, so that the active limits are back.
This functionality uses description field to determine which scratch orgs were requested by sfpowerscripts and then
proceed to delete during an execution of prepare command before and after the pools are created
Checklist
All items have to be completed before a PR is merged