Beta Source plugin incorrectly records failed deployments as successful in local source tracking #1401
Labels
bug
Issue or pull request that identifies or fixes a bug
investigating
We're actively investigating this issue
Summary
When a
force:source:beta:push
fails due to a deployment failure, the output of the CLI reports that some of the metadata was pushed successfully (even though they haven't been). If you try to push again (after fixing the source of your deployment error), the files that were previously reported as successfully deployed are not included in the deploy (nor will they ever be). The user is told that everything was successfully pushed but some metadata is missing from the scratch org.Also note that the number of metadata components differs between the beta and non-beta plugin (3 versus 2) in the initial push output.
Steps To Reproduce:
Repository to reproduce:
https://github.com/patronmanager/beta-source-plugin-tracking-bug
The README includes the repro steps but to repeat:
<enableClickjackSetup>
element)Expected result
This is what the GA plugin reports (the first push fails, then, after fixing the metadata, the second push pushes all of the metadata)
Actual result
In the
beta
plugin, the first push reports that the Apex class deployments were successful (they weren't) and the second deployment only pushes the Settings metada (the Apex classes are never pushed)System Information
{
"cliVersion": "sfdx-cli/7.136.2",
"architecture": "win32-x64",
"nodeVersion": "node-v16.13.2",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.3.1 (core)",
"@oclif/plugin-not-found 1.2.6 (core)",
"@oclif/plugin-plugins 1.10.11 (core)",
"@oclif/plugin-update 1.5.0 (core)",
"@oclif/plugin-warn-if-update-available 1.7.3 (core)",
"@oclif/plugin-which 1.0.4 (core)",
"@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
"alias 1.2.0 (core)",
"apex 0.8.0 (core)",
"auth 1.8.1 (core)",
"config 1.3.15 (core)",
"custom-metadata 1.0.12 (core)",
"data 0.6.8 (core)",
"etcopydata 0.6.6-Beta (beta)",
"generator 1.2.1 (core)",
"info 1.2.0 (core)",
"limits 1.3.0 (core)",
"org 1.11.1 (core)",
"salesforce-alm 53.7.6 (core)",
"schema 1.1.0 (core)",
"sfdmu 4.12.7",
"sfdx-cli 7.136.2 (core)",
"shane-sfdx-plugins 4.43.0",
"├─ @mshanemc/plugin-streaming 1.1.7",
"└─ @mshanemc/sfdx-sosl 1.1.0",
"source 1.8.9 (core)",
"telemetry 1.4.0 (core)",
"templates 53.3.0 (core)",
"trust 1.1.0 (core)",
"user 1.7.0 (core)"
],
"osVersion": "Windows_NT 10.0.19042"
}
The text was updated successfully, but these errors were encountered: