'sf project deploy quick' is not waiting for the quick deployment to complete and returns the result of the original validation #2537
Labels
bug
Issue or pull request that identifies or fixes a bug
investigating
We're actively investigating this issue
validated
Version information for this issue has been validated
Summary
Running
sf project deploy quick
to quick deploy a recent validation doesn't wait for the quick deployment to finish before returning (even with the --wait parameter). The deploy result it returns is the result of the original validation, NOT the quick deploy deployment. Presumably that indicates the code is waiting for the initial validation to complete (which has already completed long ago), hence the command completing prematurely.I've tested the original
sfdx force:mdapi:deploy
and the behaviour there is as expected, it waits for the quick deploy and returns the quick deploy result.Steps To Reproduce
sf project deploy quick --api-version 58.0 --target-org [ALIAS] --job-id [VALIDATION ID] --wait 100 --json
(you don't need the --json but it's helpful to see the deploy result to see the bug there)You can run
sfdx force:mdapi:deploy --apiversion 58.0 --targetusername [ALIAS] --wait -1 --validateddeployrequestid [VALIDATION ID] --json
to see the expected behaviour.P.S. Thanks for changing --validateddeployrequestid to --job-id - much nicer.
Expected result
Command waits for quick deploy to complete and returns the result of the quick deploy
Actual result
Command doesn't wait for quick deploy to complete and returns the result of the original validation instead
System Information
(Updated to latest version)
The text was updated successfully, but these errors were encountered: