cli icon indicating copy to clipboard operation
cli copied to clipboard

sf project deploy into production expecting test classes to run when when not deploying classes

Open nnamacha opened this issue 1 year ago • 7 comments

Note Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

sf project deploy into production expecting test classes to run even when we are not deploying classes

Steps To Reproduce

run the command sf project deploy start --metadata Flows:Myflow

Expected result

No need to specify test classes run

Actual result

Test classes expected

System Information

Using Bash

$ sf version --verbose --json
{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.29.5",
  "nodeVersion": "node-v20.11.0",
  "osVersion": "Windows_NT 10.0.19045",
  "rootPath": "C:\\Users\\ab0247z\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli",
  "shell": "C:\\Users\\ab0247z\\AppData\\Local\\Programs\\Git\\usr\\bin\\bash.exe",
  "pluginVersions": [
    "@copado/copado-cli 3.1.0 (user)",
    "@oclif/plugin-autocomplete 3.0.8 (core)",
    "@oclif/plugin-commands 3.1.3 (core)",
    "@oclif/plugin-help 6.0.12 (core)",
    "@oclif/plugin-not-found 3.0.10 (core)",
    "@oclif/plugin-plugins 4.2.2 (core)",
    "@oclif/plugin-search 1.0.14 (core)",
    "@oclif/plugin-update 4.1.11 (core)",
    "@oclif/plugin-version 2.0.12 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.10 (core)",
    "@oclif/plugin-which 3.0.15 (core)",
    "@salesforce/cli 2.29.5 (core)",
    "apex 3.0.23 (core)",
    "auth 3.3.11 (core)",
    "data 3.0.20 (core)",
    "deploy-retrieve 3.2.14 (core)",
    "info 3.0.24 (core)",
    "limits 3.1.8 (core)",
    "marketplace 1.0.22 (core)",
    "org 3.3.12 (core)",
    "packaging 2.1.7 (core)",
    "schema 3.1.3 (core)",
    "settings 2.0.24 (core)",
    "sobject 1.1.11 (core)",
    "source 3.1.13 (core)",
    "telemetry 3.1.11 (core)",
    "templates 56.0.14 (core)",
    "trust 3.3.8 (core)",
    "user 3.2.8 (core)",
    "dependencies-cli 2.0.1 (user)",
    "sfdx-git-delta 5.34.0 (user)",
    "sfdx-hardis 4.5.1 (user)",
    "sfdx-plugin-source-read 1.2.0 (user)"
  ]
}

Additional information

nnamacha avatar Apr 23 '24 04:04 nnamacha

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[bot] avatar Apr 23 '24 04:04 github-actions[bot]

Hello @nnamacha :wave: None of the versions of sf you shared match the latest release.

Shared: 2.29.5 Latest: 2.37.4

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

github-actions[bot] avatar Apr 23 '24 04:04 github-actions[bot]

can you say more than Test classes expected?

What's the error that you're getting?

mshanemc avatar Apr 23 '24 17:04 mshanemc

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

github-actions[bot] avatar May 01 '24 01:05 github-actions[bot]

FYI, Flow is sometimes a special case, depending on the flow being deployed and your org's settings.
https://help.salesforce.com/s/articleView?id=sf.flow_distribute_deploy_active.htm&type=5

Is that the only non-Apex type you see this "behavior" with?

mshanemc avatar May 01 '24 16:05 mshanemc

Hello @nnamacha :wave: None of the versions of sf you shared match the latest release.

Shared: 2.29.5 Latest: 2.38.7

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

github-actions[bot] avatar May 01 '24 16:05 github-actions[bot]

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

github-actions[bot] avatar May 09 '24 01:05 github-actions[bot]