Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Failed to delete scratch org after validation #838

Closed
rubiatoEJ opened this issue Feb 10, 2022 · 11 comments
Closed

Failed to delete scratch org after validation #838

rubiatoEJ opened this issue Feb 10, 2022 · 11 comments
Assignees
Labels
bug Something isn't working hotfix

Comments

@rubiatoEJ
Copy link
Contributor

rubiatoEJ commented Feb 10, 2022

Describe the bug
When a PR validation is failed, an error also occurs that is unable to delete the scratch org.

When PR validation is successful, the deletion of scratch org after the run is successful as well.

I have checked this on every PR starting yesterday as the unusual error started yesterday, I noticed that it only occurs when a PR validation is failed.

I have attached the full raw logs as well.

Failed PR Validation (failed to delete scratchorg after validation).txt
Successful PR Validation (successful deletion of scratchorg after validation).txt

To Reproduce
Steps to reproduce the behavior:

  • Run a validation that will success using the sfpowerscripts:orchestrator:validate
  • Run a validation that will fail using the sfpowerscripts:orchestrator:validate

Expected behavior
When a PR validation is failed the deletion of scratch should not fail as well.

Screenshots
Failed PR validation:
image

Successful PR validation:
image

Platform Details (please complete the following information):

  • OS:
  • Version [e.g. CLI Version eg: 1.6.6]: 10.2.13
  • Salesforce CLI(sfdx cli) Version:
  • CI Platform: Github

Additional context
Add any other context about the problem here.

@azlam-abdulsalam azlam-abdulsalam added the analysis To be decided on how to solution/fix label Feb 10, 2022
@azlam-abdulsalam
Copy link
Contributor

@rubiatoEJ It could be a erroneous log, Can you confirm whether the org is active in DevHub?

@thvd
Copy link

thvd commented Feb 10, 2022

@azlam-abdulsalam we are seeing the same thing, a scratch org taken from the pool cannot be deleted, seeing the same error here. Use latest SFDX CLI version

@rubiatoEJ
Copy link
Contributor Author

rubiatoEJ commented Feb 11, 2022

@rubiatoEJ It could be a erroneous log, Can you confirm whether the org is active in DevHub?

@azlam-abdulsalam I have checked a latest failed PR validation as the previous org has already expired.

this is the latest failed PR validation and failed to delete the scratch org

I have asked to check if the org is active in DevHub and it shows as active
image

@azlam-abdulsalam azlam-abdulsalam added bug Something isn't working hotfix and removed analysis To be decided on how to solution/fix labels Feb 11, 2022
@azlam-abdulsalam azlam-abdulsalam self-assigned this Feb 11, 2022
@azlam-abdulsalam azlam-abdulsalam pinned this issue Feb 11, 2022
@azlam-abdulsalam
Copy link
Contributor

Folks, this will need further investigation, as something with sfdx-cli 7.136.2 has changed. We advise all of you to rollback into release-dec21 docker image or 7.129.0 until we figure out a work around.

@azlam-abdulsalam
Copy link
Contributor

@thvd @rubiatoEJ do you have the same issue with orgs fetched from developer pool? Locally everything works. :(

@azlam-abdulsalam
Copy link
Contributor

@mshanemc any ideas here?

@rubiatoEJ
Copy link
Contributor Author

rubiatoEJ commented Feb 11, 2022

@thvd @rubiatoEJ do you have the same issue with orgs fetched from developer pool? Locally everything works. :(

@azlam-abdulsalam I have tried fetching from developer pool and delete with the same command used in validate
image

and it shows that it is successfully deleted.

Additional info:
sfdx-cli version used is below:
$ sfdx --version
sfdx-cli/7.129.0 win32-x64 node-v16.13.0

@azlam-abdulsalam
Copy link
Contributor

@aly76 I cant reproduce this locally, so it happens in docker image only. Probably the auth file is written to a plugin space?

@rubiatoEJ
Copy link
Contributor Author

Updated the sfdx-cli to the latest version and tried to delete the org again but it is still successful

image

$ sfdx --version
sfdx-cli/7.137.1 win32-x64 node-v16.13.0

@sumanth-bolledla-acn
Copy link

I'm able to reproduce this as well, attaching screenshot here
s0-deletion-failure

azlam-abdulsalam pushed a commit that referenced this issue Feb 11, 2022
@azlam-abdulsalam
Copy link
Contributor

Fixed in 10.2.15

@azlam-abdulsalam azlam-abdulsalam unpinned this issue Feb 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working hotfix
Projects
None yet
Development

No branches or pull requests

5 participants