Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No Changes to Deploy" No Longer Registers as an Error #2621

Closed
mcarvin8 opened this issue Dec 28, 2023 · 5 comments · Fixed by salesforcecli/plugin-deploy-retrieve#862
Closed
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated

Comments

@mcarvin8
Copy link

mcarvin8 commented Dec 28, 2023

Summary

In previous CLI builds, when you attempt to deploy an empty package.xml file, you would get the following Error with Exit Code 1:

Error (1): No local changes to deploy.
Try this:
To see conflicts and ignored files, run "sf project deploy preview" with any of the manifest, directory, or metadata flags.

With the latest CLI build, when you deploy an empty package.xml, you get the following message without the Error (1) message and the exit code will be 0.

No changes to deploy

I've confirmed the same behavior running locally in VS code and running in a CI/CD pipeline with the same CLI version.

Please revert this behavior so an empty package.xml will exit with error code 1.

Steps To Reproduce

  1. Deploy a package.xml with no metadata types.
  2. Confirm No local changes to deploy. and its exit code.

Expected result

Exit Code in previous CLI builds was Exit Code 1, which could be used to fail a CI/CD pipeline.

Actual result

Exit Code with the latest build is 0, which makes the CI/CD pipeline end with no failure.

System Information

Tested locally on Windows 11 (PowerShell) and in GitLab CI/CD with the latest Ubuntu container (bash shell).

{
  "architecture": "linux-x64",
  "cliVersion": "@salesforce/cli/2.21.8",
  "nodeVersion": "node-v20.10.0",
  "osVersion": "Linux 5.15.108",
  "rootPath": "/usr/lib/node_modules/@salesforce/cli",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.2 (core)",
    "@oclif/plugin-commands 3.0.7 (core)",
    "@oclif/plugin-help 6.0.7 (core)",
    "@oclif/plugin-not-found 3.0.4 (core)",
    "@oclif/plugin-plugins 4.1.9 (core)",
    "@oclif/plugin-search 1.0.8 (core)",
    "@oclif/plugin-update 4.1.4 (core)",
    "@oclif/plugin-version 2.0.8 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.5 (core)",
    "@oclif/plugin-which 3.0.11 (core)",
    "@salesforce/cli 2.21.8 (core)",
    "apex 3.0.8 (core)",
    "auth 3.0.10 (core)",
    "data 3.0.5 (core)",
    "deploy-retrieve 2.2.3 (core)",
    "info 3.0.7 (core)",
    "limits 3.0.5 (core)",
    "marketplace 1.0.10 (core)",
    "org 3.1.1 (core)",
    "packaging 1.27.10 (core)",
    "schema 3.0.8 (core)",
    "settings 2.0.9 (core)",
    "sobject 1.0.5 (core)",
    "source 3.0.3 (core)",
    "telemetry 3.1.4 (core)",
    "templates 56.0.4 (core)",
    "trust 3.1.2 (core)",
    "user 3.1.0 (core)"
  ]
}

Additional information

CLI Build 2.10.2 - Exit Code 1
previous-build-2 10 2

Latest CLI build 2.21.8 - Exit Code 0
current-build

@mcarvin8 mcarvin8 added the investigating We're actively investigating this issue label Dec 28, 2023
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@github-actions github-actions bot added the validated Version information for this issue has been validated label Dec 28, 2023
@cristiand391 cristiand391 added bug Issue or pull request that identifies or fixes a bug and removed investigating We're actively investigating this issue labels Jan 2, 2024
Copy link

git2gus bot commented Jan 2, 2024

This issue has been linked to a new work item: W-14739817

@cristiand391
Copy link
Member

Re-opening b/c the fix wasn't released yet (we close GH issues once the feature/fix land in our stable/latest channel).

The fix is available in the nightly channel, will be included in the next RC (Wed. 10) and promoted the following week.

Thanks for reporting this!

@shetzel
Copy link
Contributor

shetzel commented Jan 10, 2024

The fix is now in the sf CLI release candidate v2.24.4.

@shetzel
Copy link
Contributor

shetzel commented Jan 18, 2024

The fix is now in the production sf CLI release, v2.24.4.

@shetzel shetzel closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants