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 deploy metadata validate -l NoTestRun #2472

Closed
amanjareck opened this issue Sep 18, 2023 · 5 comments
Closed

sf deploy metadata validate -l NoTestRun #2472

amanjareck opened this issue Sep 18, 2023 · 5 comments
Labels
more information required Issue requires more information or a response from the customer

Comments

@amanjareck
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

Steps To Reproduce

IMPORTANT
Provide a repository that's configured to reproduce the issue. If you are unable to provide a repo, please explain why not. The more info we have from the start, the faster we can resolve your issue.
We may close your issue if you don't include proper instructions.

  • Generate a project with sf project generate or fork dreamhouse-lwc.
  • Provide detailed step-by-step instructions on how to reproduce the issue.

Expected result

Actual result

System Information

PASTE_VERSION_OUTPUT_HERE

Additional information

@amanjareck amanjareck added the investigating We're actively investigating this issue label Sep 18, 2023
@github-actions
Copy link

Hello @amanjareck 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

@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 Sep 18, 2023
@github-actions
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.

@mcarvin8
Copy link

mcarvin8 commented Sep 18, 2023

@amanjareck I submitted a similar issue via #2470

I was advised that by design, validate is a pre-cursor to quick-deploy and thus, enforces test coverage to run.

To "validate" without running any tests, use the --dry-run option on the sf project deploy start command and omit the test level to run a validation without tests. Salesforce will scan the package and set tests to Not Required when the package.xml doesn't contain Apex .

Something like this:
sf project deploy start --dry-run -x manifest/package.xml --verbose

@mshanemc
Copy link
Contributor

I came here to say exactly what @mcarvin8 said.

@amanjareck
Copy link
Author

Thanks a lot, and thanks for catching regardless of lack of explanation and a more verbose log. This is good, the command I am looking at is not well documented so have to go old school and use help in command prompt. Been fixing our pipelines and missed this one.

Thanks once again guys :)

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
Projects
None yet
Development

No branches or pull requests

3 participants