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

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

Closed
nnamacha opened this issue Apr 23, 2024 · 7 comments
Labels
more information required Issue requires more information or a response from the customer stale

Comments

@nnamacha
Copy link

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 nnamacha added the investigating We're actively investigating this issue label Apr 23, 2024
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.

Copy link

Hello @nnamacha 👋 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 github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Apr 23, 2024
@mshanemc
Copy link
Contributor

can you say more than Test classes expected?

What's the error that you're getting?

Copy link

github-actions bot commented May 1, 2024

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

@github-actions github-actions bot added the stale label May 1, 2024
@mshanemc
Copy link
Contributor

mshanemc commented May 1, 2024

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?

Copy link

github-actions bot commented May 1, 2024

Hello @nnamacha 👋 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 github-actions bot removed the stale label May 2, 2024
Copy link

github-actions bot commented May 9, 2024

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

@github-actions github-actions bot added the stale label May 9, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required Issue requires more information or a response from the customer stale
Projects
None yet
Development

No branches or pull requests

2 participants