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

force:apex:test:run fails with SFDX_IMPROVED_CODE_COVERAGE=true #530

Closed
jorgjanke opened this issue Jul 31, 2020 · 1 comment
Closed

force:apex:test:run fails with SFDX_IMPROVED_CODE_COVERAGE=true #530

jorgjanke opened this issue Jul 31, 2020 · 1 comment
Labels
duplicate Issue or pull request already exists

Comments

@jorgjanke
Copy link

jorgjanke commented Jul 31, 2020

Summary

  • we have 500+ tests in the org and run force:apex:test:run in GitLab
  • that worked fine until a few days ago after adding additional code/tests
  • the test works fine if SFDX_IMPROVED_CODE_COVERAGE is not set
  • from the error message, it seems it hit a size limit

Steps To Reproduce:

Repository to reproduce:

Cannot reproduce in test repositories as too small.

  • export SFDX_IMPROVED_CODE_COVERAGE=true
  • sfdx force:apex:test:run --targetusername [email protected] --wait 25 --resultformat human --codecoverage
  • org id 00D80000000bRL6 - access granted

Expected result

Usual test result

Actual result

Unhandled rejection ERROR_HTTP_431: <h1>Bad Message 431</h1><pre>reason: Request Header Fields Too Large</pre>
    at HttpApi.getError (/Users/jorg/.local/share/sfdx/client/7.66.2-4f159a1d07/node_modules/jsforce/lib/http-api.js:250:13)
    at /Users/jorg/.local/share/sfdx/client/7.66.2-4f159a1d07/node_modules/jsforce/lib/http-api.js:95:22
    at tryCallOne (/Users/jorg/.local/share/sfdx/client/7.66.2-4f159a1d07/node_modules/promise/lib/core.js:37:12)
    at /Users/jorg/.local/share/sfdx/client/7.66.2-4f159a1d07/node_modules/promise/lib/core.js:123:15
    at flush (/Users/jorg/.local/share/sfdx/client/7.66.2-4f159a1d07/node_modules/asap/raw.js:50:29)
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

ERROR running force:apex:test:run:  Cannot read property 'message' of undefined

Additional information

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.66.2-4f159a1d07 darwin-x64 node-v12.13.0

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.7.10 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/lwc-dev-server 2.5.0
├─ @oclif/plugin-help 2.2.3
└─ @oclif/plugin-update 1.3.10
@salesforce/sfdx-trust 3.0.7 (core)
analytics 1.12.0 (core)
generator 1.1.3 (core)
isvte-sfdx-plugin 1.1.6
salesforcedx 49.2.3 (core)
├─ salesforcedx-templates 48.32.0 (core)
├─ salesforce-alm 49.3.0 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
└─ custom-metadata 1.0.7 (core)
sfdx-cli 7.66.2 (core)

OS and version:
MacOS 10.15.6 and GitLab runner with Ubuntu

@amphro
Copy link
Contributor

amphro commented Sep 17, 2020

dup of #346

@amphro amphro closed this as completed Sep 17, 2020
@amphro amphro added the duplicate Issue or pull request already exists label Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants