You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Describe the bug
If we run the command >sfdx sfpowerscripts:orchestrator:validate for a branch that does not contain the commit id the validation scratch org was created from we get the following error:
Checking last known tags for mdapiPre to determine whether package is to be built...
Utilizing tag a1f3ec6a9632778aac29e370ba05e43a43f9e4a9 for mdapiPre
Deleting scratch org [email protected]
fatal: bad object a1f3ec6a9632778aac29e370ba05e43a43f9e4a9
When the validation scratch org pool is updated frequently it can contain scratch orgs that are built on commits that are not in your feature branch because you created that branch before the scratch org was created. If you then run the validation without rebasing or merging the integration branch you branched the feature branch from into your feature branch then you will get this error
To Reproduce
Create a feature branch from an integration branch.
Commit new changes to the integration branch.
Create a validation scratch org pool from the integration branch.
Commit new changes to the feature branch and run the sfdx sfpowerscripts:orchestrator:validate command.
Expected behavior
A more descriptive error of why the command is failing instead of displaying "fatal: bad object". This message could be e.g. "The commit was not found in your branch git history"
Because the command fails in the beginning it would help to not delete the scratch org but to make it available for another run of the validation command.
Platform Details (please complete the following information):
OS: Alpine Linux
Version: sfpowerscripts -- The DX@Scale CI/CD Orchestrator -Version:13.0.12 -Release:April 22
Activity
azlam-abdulsalam commentedon May 9, 2022
Thanks @gretarvp Will fix the error message in next release
gretarvp commentedon May 9, 2022
Good to hear, thank you :D