sfpowerscripts icon indicating copy to clipboard operation
sfpowerscripts copied to clipboard

sfpowerscripts:pool:delete: entity is deleted - February '23 Release Error Msg

Open vuha-acn opened this issue 2 years ago • 0 comments

Describe the bug During our scheduled daily clean-dev-pool job, if the are 0 unused scratch in the dev pool, and the used scratch org pool is fully consumed, we are getting the following error "entity is deleted" and the job is exiting with the ERROR: Job failed: exit code 1 in the pipeline. Our expectation is that this error is handled cleaner and not erroring out as this is a valid scenario and there are no scratch orgs in the dev pool that are required to be deleted.

To Reproduce Steps to reproduce the behavior:

  1. Create a small set of scratch org pools for dev
  2. Consume all of the dev pools
  3. Run the sfdx sfpowerscripts:pool:delete -t dev -v "$DEVHUB_ALIAS" command

Expected behavior Update message saying "No unused scratch orgs to delete from pool" or something similar and do not return exit code 1 for the command.

Screenshots image

Platform Details (please complete the following information):

  • OS: AWS Linux
  • Version [e.g. CLI Version eg: 1.6.6] - Latest in Feb '23 Container Image
  • Salesforce CLI(sfdx cli) Version: Latest in Feb '23 Container Image
  • CI Platform: GitLab

Additional context Add any other context about the problem here.

vuha-acn avatar Mar 15 '23 00:03 vuha-acn