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

sfdx force:apex:test:run hangs and provides no response #212

Open
stuartgrieve opened this issue Jun 28, 2021 · 18 comments
Open

sfdx force:apex:test:run hangs and provides no response #212

stuartgrieve opened this issue Jun 28, 2021 · 18 comments

Comments

@stuartgrieve
Copy link

Summary

We have nightly regression job run using Jenkins, which includes pushing our source to a scratch org and reporting on unit tests.
When we run sfdx force:apex:test:run --testlevel RunLocalTests --targetusername RegressionScratchOrg --json the command hangs and we receive no response. If the build is not aborted, it hits the timeout (currently 3 hours). All other sfdx commands work as expected, and sfdx force:apex:test:run -h outputs usage documentation. We've tried with and without the --json flag, but neither scenario is producing a response.

I'm unable to replicate this when running the command locally, and this user can execute apex tests through the UI.

Steps To Reproduce:

Repository to reproduce: N/A (private repository)

  1. Jenkins authenticates with Dev Hub, creates scratch org and pushes source
  2. Execute sfdx force:apex:test:run --testlevel RunLocalTests --targetusername RegressionScratchOrg

Expected result

Jenkins logs output details run ID, e.g. Run "sfdx force:apex:test:report -i 7032z000007S0o9" to retrieve test results.

Actual result

Jenkins hangs waiting for a response.

Additional information

apex-test-run

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.107.0 linux-x64 node-v14.17.1

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core):
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.2 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.10.0 (core)
@oclif/plugin-update 1.4.0-3 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
@salesforce/sfdx-scanner 2.9.2
@salesforce/sfdx-trust 3.6.0 (core)
alias 1.1.10 (core)
apex 0.2.2 (core)
auth 1.6.1 (core)
config 1.2.8 (core)
custom-metadata 1.0.12 (core)
data 0.4.12 (core)
generator 1.1.7 (core)
limits 1.2.1 (core)
org 1.6.7 (core)
salesforce-alm 52.0.2 (core)
schema 1.0.7 (core)
sfdx-cli 7.107.0 (core)
sfdx-git-delta 4.6.1
telemetry 1.2.2 (core)
templates 52.0.0 (core)
user 1.3.0 (core)

OS and version: Linux

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

@WillieRuemmele WillieRuemmele transferred this issue from forcedotcom/cli Jun 28, 2021
@AnanyaJha
Copy link
Contributor

Hi @stuartgrieve thanks for reporting this! Do you mind sharing how long these tests usually run for in Jenkins? And do you get any error messages?

@stuartgrieve
Copy link
Author

Hi @AnanyaJha we're seeing the spinner (shown in the screenshot) for as long as our pipeline is set to time out. So right now if it takes 20 minutes to run prior stages, the command to run tests will hang with no response for 2hr40.

We see no error message from the CLI whatsoever. Just the output from Jenkins to say the timeout has been met and it is interrupting the current process. I've tested this command pointing at a developer sandbox and also see the same behaviour - with no signs of tests being triggered in the UI.

@AnanyaJha
Copy link
Contributor

Thanks @stuartgrieve can you try running the command with the username set explicitly? And with only one or two tests if possible? I'd like to see if it has to do with the size of the test run or if all test runs are failing in your Jenkins builds.

@stuartgrieve
Copy link
Author

stuartgrieve commented Jul 1, 2021

Hi @AnanyaJha,

See below for command with the username set explicitly:

[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 30 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Update CLI)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx update
sfdx-cli: Updating CLI... fetching manifest
sfdx-cli: Updating CLI... already on latest version: 7.107.0-621a7d2
sfdx-cli: Updating plugins... yarn add v1.22.10
sfdx-cli: Updating plugins... [1/4] Resolving packages...sfdx-cli: Updating plugins... [2/4] Fetching packages...sfdx-cli: Updating plugins... [3/4] Linking dependencies...sfdx-cli: Updating plugins... [4/4] Building fresh packages...sfdx-cli: Updating plugins... info Direct dependenciessfdx-cli: Updating plugins... └─ [email protected]: Updating plugins... Done in 10.33s.sfdx-cli: Updating plugins... done
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (DEVCON Authorisation)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:auth:logout -p --targetusername [email protected]
Successfully logged out of orgs: [email protected]
[Pipeline] }
[Pipeline] // script
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:auth:jwt:grant --clientid **** --username [email protected] --jwtkeyfile **** --instanceurl ****
Successfully authorized [email protected] with org ID 00D2z0000008jqfEAA
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Unit Tests)
[Pipeline] timeout
Timeout set to expire in 20 min
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:org:list
WARNING: Starting in API version 52, the JSON output of this command no longer returns the property connectedStatus for scratch orgs.
=== Orgs
  ALIAS  USERNAME                                               ORG ID              CONNECTED STATUS
  ─────  ─────────────────────────────────────────────────────  ──────────────────  ────────────────
         [email protected]  00D8E000000G1AwUAK  ENOENT
         [email protected]                    00D2z0000008jqfEAA  Connected

No active scratch orgs found. Specify --all to see all scratch orgs
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:apex:test:run --testlevel RunLocalTests --targetusername [email protected] --json
Cancelling nested steps due to timeout
Sending interrupt signal to process
[Pipeline] readJSON
[Pipeline] echo
$Ex
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Logout)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:auth:logout -p --targetusername [email protected]
Successfully logged out of orgs: [email protected]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

And the logs when specifying one test only:

[Pipeline] timeout
Timeout set to expire in 30 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Update CLI)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx update
sfdx-cli: Updating CLI... fetching manifest
sfdx-cli: Updating CLI... already on latest version: 7.107.0-621a7d2
sfdx-cli: Updating plugins... yarn add v1.22.10
sfdx-cli: Updating plugins... [1/4] Resolving packages...sfdx-cli: Updating plugins... [2/4] Fetching packages...sfdx-cli: Updating plugins... [3/4] Linking dependencies...sfdx-cli: Updating plugins... [4/4] Building fresh packages...sfdx-cli: Updating plugins... success Saved 2 new dependencies.sfdx-cli: Updating plugins... info Direct dependenciessfdx-cli: Updating plugins... └─ [email protected]: Updating plugins... Done in 9.59s.sfdx-cli: Updating plugins... done
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (DEVCON Authorisation)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:auth:logout -p --targetusername [email protected]
ERROR running auth:logout:  No defaultusername org found 

Try this: 
Run the "sfdx auth" commands with --setdefaultusername to connect to an org and set it as your default org.
Run "force:org:create" with --setdefaultusername to create a scratch org and set it as your default org.
Run "sfdx config:set defaultusername=<username>" to set your default username.
[Pipeline] echo
$Ex
[Pipeline] }
[Pipeline] // script
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:auth:jwt:grant --clientid **** --username [email protected] --jwtkeyfile **** --instanceurl ****
Successfully authorized [email protected] with org ID 00D2z0000008jqfEAA
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Unit Tests)
[Pipeline] timeout
Timeout set to expire in 20 min
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:org:list
WARNING: Starting in API version 52, the JSON output of this command no longer returns the property connectedStatus for scratch orgs.
=== Orgs
  ALIAS  USERNAME                                               ORG ID              CONNECTED STATUS
  ─────  ─────────────────────────────────────────────────────  ──────────────────  ────────────────
         [email protected]  00D8E000000G1AwUAK  ENOENT
         [email protected]                    00D2z0000008jqfEAA  Connected

No active scratch orgs found. Specify --all to see all scratch orgs
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:apex:test:run -n EventTriggerHelperTest --targetusername [email protected] --json

Cancelling nested steps due to timeout
Sending interrupt signal to process
[Pipeline] readJSON
[Pipeline] echo
$Ex
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Logout)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:auth:logout -p --targetusername [email protected]
Successfully logged out of orgs: [email protected]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

@xyc xyc transferred this issue from forcedotcom/salesforcedx-vscode Jul 6, 2021
@xyc
Copy link
Contributor

xyc commented Jul 6, 2021

@stuartgrieve If you go to the org's setup page -> Apex Test Execution, do you see the test execution results? Want to confirm if this is an issue with the CLI client receiving the test result status.

@stuartgrieve
Copy link
Author

Hey @xyc, seeing no executions triggered in 'Apex Test Execution'.
In 'Apex Test History', I can only see tests run by a different pipeline when executing force:source:deploy with tests (this job has no issues executing tests when deploying).

@xyc
Copy link
Contributor

xyc commented Jul 7, 2021

Thanks so it looks like the tests are not submitted to Salesforce.
Do you have similar outputs locally when running sfdx force:org:list before running the tests? It seems that in CI it can't find an active scratch org.

No active scratch orgs found

@stuartgrieve
Copy link
Author

Hi @xyc, just to confirm - the output you're referring to was from executing a singular test on a sandbox (as requested by AnanyaJha).

Dumping logs from a job which does use a scratch org:

Started by timer
Checking out git [email protected]:salesforce-dev/pipelines.git into /opt/jenkins/workspace/SFDC/nightly-regression-job@script to read nightly-regression-job
The recommended git tool is: NONE
using credential 0f1af08b-fb3c-4766-b595-ad59917944af
 > git rev-parse --resolve-git-dir /opt/jenkins/workspace/SFDC/nightly-regression-job@script/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url [email protected]:salesforce-dev/pipelines.git # timeout=10
Fetching upstream changes from [email protected]:salesforce-dev/pipelines.git
 > git --version # timeout=10
 > git --version # 'git version 1.8.3.1'
using GIT_ASKPASS to set credentials gitops jenkins details
 > git fetch --tags --progress [email protected]:salesforce-dev/pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse refs/remotes/origin/refs/remotes/origin/develop^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/develop^{commit} # timeout=10
Checking out Revision 68da5245d9a11f8e0270775bc4aaec8b56433b6e (refs/remotes/origin/develop)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 68da5245d9a11f8e0270775bc4aaec8b56433b6e # timeout=10
 > git rev-list --no-walk 68da5245d9a11f8e0270775bc4aaec8b56433b6e # timeout=10
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /opt/jenkins/workspace/SFDC/nightly-regression-job
[Pipeline] {
[Pipeline] withCredentials
Masking supported pattern matches of $SFDC_PROXY or $SFDC_PROXY_USR or $SFDC_PROXY_PSW or $SFDC_CLIENT_ID or $SFDC_USERNAME or $JWT_KEY or $SFDC_URL
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 3 hr 0 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout SCM)
[Pipeline] echo
Checking out develop
[Pipeline] git
The recommended git tool is: NONE
using credential 0f1af08b-fb3c-4766-b595-ad59917944af
 > git rev-parse --resolve-git-dir /opt/jenkins/workspace/SFDC/nightly-regression-job/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://gitops.test.myCompany.com/salesforce-dev/sfdc_ci.git # timeout=10
Fetching upstream changes from https://gitops.test.myCompany.com/salesforce-dev/sfdc_ci.git
 > git --version # timeout=10
 > git --version # 'git version 1.8.3.1'
using GIT_ASKPASS to set credentials myCompany jenkins details
 > git fetch --tags --progress https://gitops.test.myCompany.com/salesforce-dev/sfdc_ci.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse refs/remotes/origin/develop^{commit} # timeout=10
Checking out Revision 03c737801b23f8dd5b080c2cbc329376fa7c1707 (refs/remotes/origin/develop)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 03c737801b23f8dd5b080c2cbc329376fa7c1707 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D develop # timeout=10
 > git checkout -b develop 03c737801b23f8dd5b080c2cbc329376fa7c1707 # timeout=10
Commit message: "Merge branch 'feature/somethingSomething' into 'develop'"
 > git rev-list --no-walk dd3a01aac7f47c642b9347e829a99aed9904bc4a # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Update CLI)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx update
sfdx-cli: Updating CLI... fetching manifest
sfdx-cli: Updating CLI... already on latest version: 7.108.0-d2f9bbd
sfdx-cli: Updating plugins... yarn add v1.22.10
sfdx-cli: Updating plugins... [1/4] Resolving packages...sfdx-cli: Updating plugins... [2/4] Fetching packages...sfdx-cli: Updating plugins... [3/4] Linking dependencies...sfdx-cli: Updating plugins... [4/4] Building fresh packages...sfdx-cli: Updating plugins... success Saved lockfile.sfdx-cli: Updating plugins... Done in 10.19s.sfdx-cli: Updating plugins... done
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx plugins:install @salesforce/sfdx-scanner
Successfully validated digital signature for @salesforce/sfdx-scanner.
Finished digital signature check.
Installing plugin @salesforce/sfdx-scanner... yarn add v1.22.10
Installing plugin @salesforce/sfdx-scanner... [1/4] Resolving packages...Installing plugin @salesforce/sfdx-scanner... [2/4] Fetching packages...Installing plugin @salesforce/sfdx-scanner... [3/4] Linking dependencies...Installing plugin @salesforce/sfdx-scanner... [4/4] Building fresh packages...Installing plugin @salesforce/sfdx-scanner... Done in 4.82s.Installing plugin @salesforce/sfdx-scanner... installed v2.9.2
[Pipeline] }
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Prod Authorisation)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:auth:logout -p --targetusername ****
ERROR running auth:logout:  No authorization information can be found.
[Pipeline] echo
hudson.AbortException: script returned exit code 1
[Pipeline] }
[Pipeline] // script
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:auth:jwt:grant --clientid **** --username **** --jwtkeyfile **** --instanceurl **** --setdefaultdevhubusername --setalias DevHub
Successfully authorized **** with org ID 00D0N000001br9XUAQ
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:org:list --clean --noprompt
WARNING: Starting in API version 52, the JSON output of this command no longer returns the property connectedStatus for scratch orgs.
=== Orgs
     ALIAS   USERNAME                                        ORG ID              CONNECTED STATUS
───  ──────  ──────────────────────────────────────────────  ──────────────────  ────────────────
(D)  DevHub  ****  00D0N000001br9XUAQ  Connected

No active scratch orgs found. Specify --all to see all scratch orgs
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Create Scratch Org)
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:org:list
WARNING: Starting in API version 52, the JSON output of this command no longer returns the property connectedStatus for scratch orgs.
=== Orgs
     ALIAS   USERNAME                                        ORG ID              CONNECTED STATUS
───  ──────  ──────────────────────────────────────────────  ──────────────────  ────────────────
(D)  DevHub  ****  00D0V005001br9UUAQ  Connected

No active scratch orgs found. Specify --all to see all scratch orgs
[Pipeline] sh
+ chmod 755 ./scripts/create_scratch_org.sh
[Pipeline] sh
+ ./scripts/create_scratch_org.sh /opt/sfcli/latest/bin/sfdx DevHub RegressionScratchOrg 1
00:02:45: Creating scratch org...
Successfully created scratch org: 00D8E000000GHMaUAO, username: [email protected]
Displaying scratch org details...
=== Org Description
KEY              VALUE
───────────────  ────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Access Token     00D8E000000GHJa!ASAAQJfvG7oycSQN9PbtahopuIR.MuUjDfdF.PAS_guaCsxFxgmSbrMUwVshV.XRBKADue6q4JZKQMqzukCZ2i.RPBeKs6Op
Alias            RegressionScratchOrg
Client Id        ****
Created By       ****
Created Date     2021-07-07T23:03:18.000+0000
Dev Hub Id       ****
Edition          Enterprise
Expiration Date  2021-07-08
Id               00D8E000000GHMaUAO
Instance Url     https://customer-dream-6427.cs87.my.salesforce.com/
Org Name         Demo Company
Status           Active
Username         [email protected]
Installing Pardot Managed Package...

Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Successfully installed package [04t1W000000kpCQ]
Installing Tableau Viz Managed Package...
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Successfully installed package [04t5w000005diA4]
Installing Trail Tracker Managed Package...
Waiting for the package install request to complete. Status = IN_PROGRESS
Waiting for the package install request to complete. Status = IN_PROGRESS
Successfully installed package [04t1Q000001QhuGQAS]

00:08:27: Scratch org ready for push!
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:source:push -f -u RegressionScratchOrg
*** Deploying with SOAP ***
Job ID | 0Af8E00002KCeMYSA1
SOURCE PROGRESS | ████████████████████████████████████████ | 0/0 Components
SOURCE PROGRESS | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 2/1940 Components
...
<push progress removed>
...
SOURCE PROGRESS | ████████████████████████████████████████ | 1943/1943 Components

Updating source tracking for 1943 pushed components...
=== Pushed Source
STATE  FULL NAME                                                                                           TYPE                     PROJECT PATH
─────  ──────────────────────────────────────────────────────────────────────────────────────────────────  ───────────────────────  ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Add    LeadConvertSettings                                                                                 LeadConvertSettings      force-app/main/default/LeadConvertSettings/LeadConvertSettings.LeadConvertSetting-meta.xml
...
<source tracking removed>
...
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Unit Tests)
[Pipeline] timeout
Timeout set to expire in 20 min
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:org:list
WARNING: Starting in API version 52, the JSON output of this command no longer returns the property connectedStatus for scratch orgs.
=== Orgs
     ALIAS   USERNAME                                        ORG ID              CONNECTED STATUS
───  ──────  ──────────────────────────────────────────────  ──────────────────  ────────────────
(D)  DevHub  ****  00D0N000001br9XUAQ  Connected

     ALIAS                 USERNAME                       ORG ID              EXPIRATION DATE
───  ────────────────────  ─────────────────────────────  ──────────────────  ───────────────
(U)  RegressionScratchOrg  [email protected]  00D2E000000GHLaUAO  2021-07-08
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:apex:test:run --testlevel RunLocalTests --targetusername RegressionScratchOrg --json
Cancelling nested steps due to timeout
Sending interrupt signal to process
[Pipeline] readJSON
[Pipeline] echo
$Ex
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Delete Scratch Org)
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:org:list
WARNING: Starting in API version 52, the JSON output of this command no longer returns the property connectedStatus for scratch orgs.
=== Orgs
     ALIAS   USERNAME                                        ORG ID              CONNECTED STATUS
───  ──────  ──────────────────────────────────────────────  ──────────────────  ────────────────
(D)  DevHub  ****  00D0N000901br1UAQ  Connected

     ALIAS                 USERNAME                       ORG ID              EXPIRATION DATE
───  ────────────────────  ─────────────────────────────  ──────────────────  ───────────────
(U)  RegressionScratchOrg  [email protected]  00D8E000000GHMaUAO  2021-07-08
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:org:delete --targetusername RegressionScratchOrg --noprompt
Successfully marked scratch org RegressionScratchOrg for deletion
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Logout)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ /opt/sfcli/latest/bin/sfdx force:auth:logout -p --targetusername ****
Successfully logged out of orgs: ****
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] emailext
Sending email to: 

@AnanyaJha
Copy link
Contributor

Hi @stuartgrieve could you share what plugin version you're currently using? We released a fix for part of the "hanging" issue with the latest release of the Apex plugin. You can find the version number by running sfdx plugins --core. Please run the sfdx plugins:install apex command if your Apex plugin is below version 0.2.3.

@JDysonCB
Copy link

Hi @AnanyaJha, I've been looking at this issue along with Stuart. It looks like we are currently using version 0.2.3 of the apex plugin, After running sfdx plugins --core we get the following list. We were also advised to try appending --dev-debug to the apex test run command which has yielded the following additional logging:

@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.2 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.10.1 (core)
@oclif/plugin-update 1.4.0-3 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
@salesforce/sfdx-scanner 2.11.0
@salesforce/sfdx-trust 3.6.0 (core)
alias 1.1.10 (core)
apex 0.2.3 (core)
auth 1.7.1 (core)
config 1.2.23 (core)
custom-metadata 1.0.12 (core)
data 0.6.0 (core)
generator 1.1.7 (core)
limits 1.2.1 (core)
org 1.6.9 (core)
salesforce-alm 52.2.4 (core)
schema 1.0.8 (core)
sfdx-cli 7.113.0 (core)
sfdx-git-delta 4.8.1
source 1.0.7 (core)
telemetry 1.2.3 (core)
templates 52.1.0 (core)
user 1.4.0 (core)

Additional logging omitted as it duplicates what has already been provided

/opt/sfcli/latest/bin/sfdx force:apex:test:run --testlevel RunLocalTests --targetusername RegressionScratchOrg --json --dev-debug
Executing: /home/jenkins-user/.local/share/sfdx/client/bin/sfdx force:apex:test:run --testlevel RunLocalTests --targetusername RegressionScratchOrg --json --dev-debug
2021-08-19T10:01:43.847Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219
2021-08-19T10:01:43.848Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/package.json
2021-08-19T10:01:43.850Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/oclif.manifest.json
2021-08-19T10:01:43.850Z @oclif/config:sfdx-cli using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/oclif.manifest.json
2021-08-19T10:01:43.851Z @oclif/config reading user plugins pjson /home/jenkins-user/.local/share/sfdx/package.json
2021-08-19T10:01:43.851Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/package.json
2021-08-19T10:01:43.851Z @oclif/config loading plugins [
  { name: 'sfdx-git-delta', tag: 'latest', type: 'user' },
  { name: '@salesforce/sfdx-scanner', tag: 'latest', type: 'user' }
]
2021-08-19T10:01:43.853Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/package.json/package.json
2021-08-19T10:01:43.853Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/package.json/package.json
2021-08-19T10:01:43.853Z @oclif/config reading user plugin /home/jenkins-user/.local/share/sfdx/node_modules/sfdx-git-delta
2021-08-19T10:01:43.853Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/node_modules/sfdx-git-delta/package.json
2021-08-19T10:01:43.853Z @oclif/config reading user plugin /home/jenkins-user/.local/share/sfdx/node_modules/@salesforce/sfdx-scanner
2021-08-19T10:01:43.853Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/node_modules/@salesforce/sfdx-scanner/package.json
2021-08-19T10:01:43.854Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/node_modules/sfdx-git-delta/oclif.manifest.json
2021-08-19T10:01:43.854Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/node_modules/@salesforce/sfdx-scanner/oclif.manifest.json
2021-08-19T10:01:43.854Z @oclif/config:sfdx-git-delta using manifest from /home/jenkins-user/.local/share/sfdx/node_modules/sfdx-git-delta/oclif.manifest.json
2021-08-19T10:01:43.855Z @oclif/config:@salesforce/sfdx-scanner using manifest from /home/jenkins-user/.local/share/sfdx/node_modules/@salesforce/sfdx-scanner/oclif.manifest.json
2021-08-19T10:01:43.855Z @oclif/config loading plugins [
  '@oclif/plugin-autocomplete',
  '@oclif/plugin-commands',
  '@oclif/plugin-help',
  '@oclif/plugin-not-found',
  '@oclif/plugin-plugins',
  '@oclif/plugin-update',
  '@oclif/plugin-warn-if-update-available',
  '@oclif/plugin-which',
  '@salesforce/plugin-alias',
  '@salesforce/plugin-apex',
  '@salesforce/plugin-auth',
  '@salesforce/plugin-config',
  '@salesforce/plugin-custom-metadata',
  '@salesforce/plugin-data',
  '@salesforce/plugin-generator',
  '@salesforce/plugin-limits',
  '@salesforce/plugin-org',
  '@salesforce/plugin-source',
  '@salesforce/plugin-schema',
  '@salesforce/plugin-telemetry',
  '@salesforce/plugin-templates',
  '@salesforce/sfdx-trust',
  '@salesforce/plugin-user',
  '@salesforce/sfdx-plugin-lwc-test',
  'salesforce-alm'
]
2021-08-19T10:01:43.857Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-autocomplete
2021-08-19T10:01:43.857Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-autocomplete/package.json
2021-08-19T10:01:43.857Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-commands
2021-08-19T10:01:43.857Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-commands/package.json
2021-08-19T10:01:43.857Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-help
2021-08-19T10:01:43.857Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-help/package.json
2021-08-19T10:01:43.857Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-not-found
2021-08-19T10:01:43.857Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-not-found/package.json
2021-08-19T10:01:43.857Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-plugins
2021-08-19T10:01:43.857Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-plugins/package.json
2021-08-19T10:01:43.857Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-update
2021-08-19T10:01:43.857Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-update/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-warn-if-update-available
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-warn-if-update-available/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-which
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-which/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-alias
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-alias/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-apex
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-apex/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-auth
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-auth/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-config
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-config/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-custom-metadata
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-custom-metadata/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-limits
2021-08-19T10:01:43.858Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-limits/package.json
2021-08-19T10:01:43.858Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-org
2021-08-19T10:01:43.859Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-org/package.json
2021-08-19T10:01:43.859Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-source
2021-08-19T10:01:43.859Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-source/package.json
2021-08-19T10:01:43.859Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-schema
2021-08-19T10:01:43.859Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-schema/package.json
2021-08-19T10:01:43.859Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-telemetry
2021-08-19T10:01:43.859Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-telemetry/package.json
2021-08-19T10:01:43.859Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-templates
2021-08-19T10:01:43.859Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-templates/package.json
2021-08-19T10:01:43.859Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/sfdx-trust
2021-08-19T10:01:43.859Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/sfdx-trust/package.json
2021-08-19T10:01:43.859Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-user
2021-08-19T10:01:43.859Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-user/package.json
2021-08-19T10:01:43.859Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/sfdx-plugin-lwc-test
2021-08-19T10:01:43.859Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/sfdx-plugin-lwc-test/package.json
2021-08-19T10:01:43.859Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/salesforce-alm
2021-08-19T10:01:43.859Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/salesforce-alm/package.json
2021-08-19T10:01:43.861Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-autocomplete/oclif.manifest.json
2021-08-19T10:01:43.862Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-commands/oclif.manifest.json
2021-08-19T10:01:43.862Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-help/oclif.manifest.json
2021-08-19T10:01:43.862Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-not-found/oclif.manifest.json
2021-08-19T10:01:43.863Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-plugins/oclif.manifest.json
2021-08-19T10:01:43.863Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-update/oclif.manifest.json
2021-08-19T10:01:43.863Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json
2021-08-19T10:01:43.864Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-which/oclif.manifest.json
2021-08-19T10:01:43.864Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-alias/oclif.manifest.json
2021-08-19T10:01:43.865Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-apex/oclif.manifest.json
2021-08-19T10:01:43.865Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-auth/oclif.manifest.json
2021-08-19T10:01:43.866Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-config/oclif.manifest.json
2021-08-19T10:01:43.866Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-custom-metadata/oclif.manifest.json
2021-08-19T10:01:43.866Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/oclif.manifest.json
2021-08-19T10:01:43.867Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/oclif.manifest.json
2021-08-19T10:01:43.867Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-limits/oclif.manifest.json
2021-08-19T10:01:43.868Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-org/oclif.manifest.json
2021-08-19T10:01:43.868Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-source/oclif.manifest.json
2021-08-19T10:01:43.869Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-schema/oclif.manifest.json
2021-08-19T10:01:43.869Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-telemetry/oclif.manifest.json
2021-08-19T10:01:43.870Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-templates/oclif.manifest.json
2021-08-19T10:01:43.870Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/sfdx-trust/oclif.manifest.json
2021-08-19T10:01:43.870Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-user/oclif.manifest.json
2021-08-19T10:01:43.871Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/sfdx-plugin-lwc-test/oclif.manifest.json
2021-08-19T10:01:43.873Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/salesforce-alm/oclif.manifest.json
2021-08-19T10:01:43.873Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/.oclif.manifest.json
2021-08-19T10:01:43.873Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/.oclif.manifest.json
2021-08-19T10:01:43.988Z @oclif/config:@salesforce/plugin-data loading IDs from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands
2021-08-19T10:01:43.996Z @oclif/config:@salesforce/plugin-data found commands [
  'force:data:bulk:delete',
  'force:data:bulk:status',
  'force:data:bulk:upsert',
  'force:data:record:create',
  'force:data:record:delete',
  'force:data:record:get',
  'force:data:record:update',
  'force:data:soql:query',
  'force:data:tree:export',
  'force:data:tree:import'
]
2021-08-19T10:01:43.996Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/bulk/delete.js
2021-08-19T10:01:44.167Z sfdx:core TRACE Setup child 'core:config' logger instance
2021-08-19T10:01:44.225Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/bulk/status.js
2021-08-19T10:01:44.226Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/bulk/upsert.js
2021-08-19T10:01:44.228Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/record/create.js
2021-08-19T10:01:44.229Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/record/delete.js
2021-08-19T10:01:44.231Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/record/get.js
2021-08-19T10:01:44.232Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/record/update.js
2021-08-19T10:01:44.234Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/soql/query.js
2021-08-19T10:01:44.239Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/tree/export.js
2021-08-19T10:01:44.242Z @oclif/config:@salesforce/plugin-data require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-data/lib/commands/force/data/tree/import.js
2021-08-19T10:01:44.244Z @oclif/config:@oclif/plugin-autocomplete using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-autocomplete/oclif.manifest.json
2021-08-19T10:01:44.244Z @oclif/config:@oclif/plugin-commands using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-commands/oclif.manifest.json
2021-08-19T10:01:44.244Z @oclif/config:@oclif/plugin-help using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-help/oclif.manifest.json
2021-08-19T10:01:44.244Z @oclif/config:@oclif/plugin-not-found using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-not-found/oclif.manifest.json
2021-08-19T10:01:44.244Z @oclif/config:@oclif/plugin-plugins using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-plugins/oclif.manifest.json
2021-08-19T10:01:44.245Z @oclif/config:@oclif/plugin-update using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-update/oclif.manifest.json
2021-08-19T10:01:44.245Z @oclif/config:@oclif/plugin-warn-if-update-available using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json
2021-08-19T10:01:44.245Z @oclif/config:@oclif/plugin-which using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-which/oclif.manifest.json
2021-08-19T10:01:44.245Z @oclif/config:@salesforce/plugin-alias using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-alias/oclif.manifest.json
2021-08-19T10:01:44.245Z @oclif/config:@salesforce/plugin-apex using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-apex/oclif.manifest.json
2021-08-19T10:01:44.245Z @oclif/config:@salesforce/plugin-auth using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-auth/oclif.manifest.json
2021-08-19T10:01:44.245Z @oclif/config:@salesforce/plugin-config using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-config/oclif.manifest.json
2021-08-19T10:01:44.245Z @oclif/config:@salesforce/plugin-custom-metadata using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-custom-metadata/oclif.manifest.json
2021-08-19T10:01:44.246Z @oclif/config:@salesforce/plugin-limits using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-limits/oclif.manifest.json
2021-08-19T10:01:44.246Z @oclif/config:@salesforce/plugin-org using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-org/oclif.manifest.json
2021-08-19T10:01:44.246Z @oclif/config:@salesforce/plugin-source using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-source/oclif.manifest.json
2021-08-19T10:01:44.246Z @oclif/config:@salesforce/plugin-schema using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-schema/oclif.manifest.json
2021-08-19T10:01:44.246Z @oclif/config:@salesforce/plugin-telemetry using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-telemetry/oclif.manifest.json
2021-08-19T10:01:44.246Z @oclif/config:@salesforce/plugin-templates using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-templates/oclif.manifest.json
2021-08-19T10:01:44.246Z @oclif/config:@salesforce/sfdx-trust using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/sfdx-trust/oclif.manifest.json
2021-08-19T10:01:44.246Z @oclif/config:@salesforce/sfdx-plugin-lwc-test using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/sfdx-plugin-lwc-test/oclif.manifest.json
2021-08-19T10:01:44.246Z @oclif/config:@salesforce/plugin-user using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-user/oclif.manifest.json
2021-08-19T10:01:44.248Z @oclif/config:salesforce-alm using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/salesforce-alm/oclif.manifest.json
2021-08-19T10:01:44.248Z @oclif/config:@salesforce/plugin-generator using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/.oclif.manifest.json
2021-08-19T10:01:44.248Z @oclif/config loading plugins [
  '@oclif/plugin-help',
  '@oclif/plugin-warn-if-update-available',
  '@oclif/plugin-not-found'
]
2021-08-19T10:01:44.248Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/package.json
2021-08-19T10:01:44.248Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/package.json
2021-08-19T10:01:44.248Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/node_modules/@oclif/plugin-help
2021-08-19T10:01:44.248Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/node_modules/@oclif/plugin-help/package.json
2021-08-19T10:01:44.248Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/package.json
2021-08-19T10:01:44.249Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/package.json
2021-08-19T10:01:44.249Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/node_modules/@oclif/plugin-help/oclif.manifest.json
2021-08-19T10:01:44.249Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/package.json
2021-08-19T10:01:44.249Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/package.json
2021-08-19T10:01:44.249Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-warn-if-update-available
2021-08-19T10:01:44.249Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-warn-if-update-available/package.json
2021-08-19T10:01:44.249Z @oclif/config reading core plugin /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-not-found
2021-08-19T10:01:44.249Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-not-found/package.json
2021-08-19T10:01:44.249Z @oclif/config:@oclif/plugin-help using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-generator/node_modules/@oclif/plugin-help/oclif.manifest.json
2021-08-19T10:01:44.250Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json
2021-08-19T10:01:44.250Z @oclif/config loadJSON /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-not-found/oclif.manifest.json
2021-08-19T10:01:44.250Z @oclif/config:@oclif/plugin-warn-if-update-available using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json
2021-08-19T10:01:44.250Z @oclif/config:@oclif/plugin-not-found using manifest from /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-not-found/oclif.manifest.json
2021-08-19T10:01:44.250Z @oclif/config config done
2021-08-19T10:01:44.251Z sfdx                        OS:
2021-08-19T10:01:44.251Z sfdx                  platform: linux
2021-08-19T10:01:44.251Z sfdx              architecture: x64
2021-08-19T10:01:44.251Z sfdx                   release: 3.10.0-1160.36.2.el7.x86_64
2021-08-19T10:01:44.251Z sfdx                     shell: bash
2021-08-19T10:01:44.251Z sfdx                      NODE:
2021-08-19T10:01:44.251Z sfdx                   version: 14.17.4
2021-08-19T10:01:44.251Z sfdx                       CLI:
2021-08-19T10:01:44.251Z sfdx                   version: 7.113.0
2021-08-19T10:01:44.251Z sfdx                   channel: stable
2021-08-19T10:01:44.251Z sfdx                       bin: sfdx
2021-08-19T10:01:44.251Z sfdx                      data: /home/jenkins-user/.local/share/sfdx
2021-08-19T10:01:44.251Z sfdx                     cache: /home/jenkins-user/.cache/sfdx
2021-08-19T10:01:44.251Z sfdx                    config: /home/jenkins-user/.config/sfdx
2021-08-19T10:01:44.251Z sfdx                       ENV:
2021-08-19T10:01:44.251Z sfdx              NODE_OPTIONS: <not set>
2021-08-19T10:01:44.251Z sfdx   SFDX_AUTOUPDATE_DISABLE: <not set>
2021-08-19T10:01:44.251Z sfdx              SFDX_BINPATH: /home/jenkins-user/.local/share/sfdx/client/bin/sfdx
2021-08-19T10:01:44.251Z sfdx        SFDX_COMPILE_CACHE: <not set>
2021-08-19T10:01:44.251Z sfdx   SFDX_DISABLE_AUTOUPDATE: <not set>
2021-08-19T10:01:44.251Z sfdx                  SFDX_ENV: development
2021-08-19T10:01:44.251Z sfdx            SFDX_INSTALLER: true
2021-08-19T10:01:44.251Z sfdx    SFDX_LAZY_LOAD_MODULES: true
2021-08-19T10:01:44.251Z sfdx         SFDX_NPM_REGISTRY: <not set>
2021-08-19T10:01:44.251Z sfdx           SFDX_REDIRECTED: 1
2021-08-19T10:01:44.251Z sfdx              SFDX_S3_HOST: <not set>
2021-08-19T10:01:44.251Z sfdx  SFDX_UPDATE_INSTRUCTIONS: <not set>
2021-08-19T10:01:44.252Z sfdx                      ARGS:
2021-08-19T10:01:44.252Z sfdx                         0: /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/bin/node
2021-08-19T10:01:44.252Z sfdx                         1: /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/bin/run
2021-08-19T10:01:44.252Z sfdx                         2: force:apex:test:run
2021-08-19T10:01:44.252Z sfdx                         3: --testlevel
2021-08-19T10:01:44.252Z sfdx                         4: RunLocalTests
2021-08-19T10:01:44.252Z sfdx                         5: --targetusername
2021-08-19T10:01:44.252Z sfdx                         6: RegressionScratchOrg
2021-08-19T10:01:44.252Z sfdx                         7: --json
2021-08-19T10:01:44.253Z lazy-require loading type cache from /home/jenkins-user/.cache/sfdx/module-types.json
2021-08-19T10:01:44.253Z lazy-require loaded type cache
2021-08-19T10:01:44.253Z lazy-require parsing type cache
2021-08-19T10:01:44.253Z lazy-require parsed type cache
2021-08-19T10:01:44.253Z lazy-require enabled
2021-08-19T10:01:44.255Z @oclif/config start init hook
2021-08-19T10:01:44.255Z sfdx:@salesforce/sfdx-scanner:hooks:init start /home/jenkins-user/.local/share/sfdx/node_modules/@salesforce/sfdx-scanner/lib/lib/hooks/init
2021-08-19T10:01:44.314Z sfdx:core TRACE Setup child 'core:config' logger instance
2021-08-19T10:01:44.350Z sfdx:@oclif/plugin-update:hooks:init start /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-update/lib/hooks/init
2021-08-19T10:01:44.362Z sfdx:@oclif/plugin-warn-if-update-available:hooks:init start /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@oclif/plugin-warn-if-update-available/lib/hooks/init/check-update
2021-08-19T10:01:44.373Z sfdx:@salesforce/plugin-config:hooks:init start /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-config/lib/hooks/init/load_config_meta
2021-08-19T10:01:44.374Z sfdx:core TRACE Setup child 'plugin-config:load_config_meta' logger instance
2021-08-19T10:01:44.375Z sfdx:plugin-config:load_config_meta INFO No config meta found for sfdx-cli
2021-08-19T10:01:44.375Z sfdx:plugin-config:load_config_meta INFO No config meta found for sfdx-git-delta
2021-08-19T10:01:44.375Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/sfdx-scanner
2021-08-19T10:01:44.375Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-data
2021-08-19T10:01:44.375Z sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-autocomplete
2021-08-19T10:01:44.375Z sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-commands
2021-08-19T10:01:44.375Z sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-help
2021-08-19T10:01:44.375Z sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-not-found
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-plugins
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-update
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-warn-if-update-available
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-which
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-alias
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-apex
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-auth
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-config
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-custom-metadata
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-limits
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-org
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-source
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-schema
2021-08-19T10:01:44.376Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-telemetry
2021-08-19T10:01:44.377Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-templates
2021-08-19T10:01:44.377Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/sfdx-trust
2021-08-19T10:01:44.377Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/sfdx-plugin-lwc-test
2021-08-19T10:01:44.377Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-user
2021-08-19T10:01:44.377Z sfdx:plugin-config:load_config_meta INFO No config meta found for salesforce-alm
2021-08-19T10:01:44.377Z sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-generator
2021-08-19T10:01:44.377Z sfdx:@salesforce/plugin-telemetry:hooks:init start /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-telemetry/lib/hooks/telemetryInit.js
2021-08-19T10:01:44.378Z sfdx:@salesforce/sfdx-scanner:hooks:init done
2021-08-19T10:01:44.378Z sfdx:@salesforce/plugin-config:hooks:init done
2021-08-19T10:01:44.378Z sfdx:@salesforce/plugin-telemetry:hooks:init done
2021-08-19T10:01:44.383Z sfdx:@oclif/plugin-update:hooks:init done
2021-08-19T10:01:44.384Z sfdx:@oclif/plugin-warn-if-update-available:hooks:init done
2021-08-19T10:01:44.384Z @oclif/config init hook done
2021-08-19T10:01:44.384Z sfdx init version: @oclif/[email protected] argv: [ 'force:apex:test:run', '--testlevel', 'RunLocalTests', '--targetusername', 'RegressionScratchOrg', '--json' ]
2021-08-19T10:01:44.386Z @oclif/config runCommand force:apex:test:run [ '--testlevel', 'RunLocalTests', '--targetusername', 'RegressionScratchOrg', '--json' ]
2021-08-19T10:01:44.387Z @oclif/config:@salesforce/plugin-apex require /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-apex/lib/commands/force/apex/test/run.js
2021-08-19T10:01:44.409Z sfdx:core TRACE Setup child 'core:config' logger instance
2021-08-19T10:01:44.430Z sfdx:core TRACE Setup child 'core:config' logger instance
2021-08-19T10:01:44.441Z @oclif/config start prerun hook
2021-08-19T10:01:44.442Z sfdx:@salesforce/plugin-telemetry:hooks:prerun start /home/jenkins-user/.local/share/sfdx/client/7.113.0-1159219/node_modules/@salesforce/plugin-telemetry/lib/hooks/telemetryPrerun.js
2021-08-19T10:01:44.447Z sfdx:core TRACE Setup child 'Config' logger instance
2021-08-19T10:01:44.447Z sfdx:core TRACE Setup child 'Config' logger instance
2021-08-19T10:01:44.448Z sfdx:Config INFO Reading config file: /home/jenkins-user/.sfdx/sfdx-config.json
2021-08-19T10:01:44.449Z sfdx:Config INFO Reading config file: /opt/jenkins/workspace/Motor/SFDC/nightly-regression-job/.sfdx/sfdx-config.json
2021-08-19T10:01:44.451Z sfdx:[email protected] Usage acknowledgement file already exists
2021-08-19T10:01:44.451Z sfdx:[email protected] Using telemetry logging file /tmp/sfdx-telemetry/telemetry-740416e30ee042ab4c4c1ff60cb459127b68ffad.log
2021-08-19T10:01:44.453Z sfdx:[email protected] Setting up process exit handler
2021-08-19T10:01:44.453Z sfdx:@salesforce/plugin-telemetry:hooks:prerun done
2021-08-19T10:01:44.453Z @oclif/config prerun hook done
2021-08-19T10:01:44.454Z sfdx:core TRACE Setup child 'Run' logger instance
2021-08-19T10:01:44.460Z sfdx:force:apex:test:run init version: @oclif/[email protected] argv: [ '--testlevel', 'RunLocalTests', '--targetusername', 'RegressionScratchOrg', '--json' ]
2021-08-19T10:01:44.461Z sfdx:Run INFO Running command [Run] with flags [{"testlevel":"RunLocalTests","targetusername":"RegressionScratchOrg","json":true,"loglevel":"warn"}] and args [{}]
2021-08-19T10:01:44.462Z sfdx:core TRACE Setup child 'Config' logger instance
2021-08-19T10:01:44.462Z sfdx:core TRACE Setup child 'Config' logger instance
2021-08-19T10:01:44.463Z sfdx:Config INFO Reading config file: /home/jenkins-user/.sfdx/sfdx-config.json
2021-08-19T10:01:44.467Z sfdx:Config INFO Reading config file: /opt/jenkins/workspace/Motor/SFDC/nightly-regression-job/.sfdx/sfdx-config.json
2021-08-19T10:01:44.468Z sfdx:core TRACE Setup child 'Org' logger instance
2021-08-19T10:01:44.468Z sfdx:core TRACE Setup child 'Aliases' logger instance
2021-08-19T10:01:44.469Z sfdx:Aliases INFO Reading config file: /home/jenkins-user/.sfdx/alias.json
2021-08-19T10:01:44.470Z sfdx:core TRACE Setup child 'AuthInfo' logger instance
2021-08-19T10:01:44.470Z sfdx:core TRACE Setup child 'crypto' logger instance
2021-08-19T10:01:44.470Z sfdx:crypto DEBUG retryStatus: undefined
2021-08-19T10:01:44.471Z sfdx:core TRACE Setup child 'keyChain' logger instance
2021-08-19T10:01:44.471Z sfdx:keyChain DEBUG platform: linux
2021-08-19T10:01:44.472Z sfdx:core TRACE Setup child 'KeychainConfig' logger instance
2021-08-19T10:01:44.472Z sfdx:KeychainConfig INFO Reading config file: /home/jenkins-user/.sfdx/key.json
2021-08-19T10:01:44.473Z sfdx:core TRACE Setup child 'KeychainConfig' logger instance
2021-08-19T10:01:44.473Z sfdx:KeychainConfig INFO Reading config file: /home/jenkins-user/.sfdx/key.json
2021-08-19T10:01:44.474Z sfdx:core TRACE Setup child 'AuthInfoConfig' logger instance
2021-08-19T10:01:44.474Z sfdx:AuthInfoConfig INFO Reading config file: /home/jenkins-user/.sfdx/[email protected]
2021-08-19T10:01:44.474Z sfdx:AuthInfo INFO Updated auth info for username: [email protected]
2021-08-19T10:01:44.475Z sfdx:AuthInfo INFO Returning fields for a connection using JWT config.
2021-08-19T10:01:44.477Z sfdx:core TRACE Setup child 'connection' logger instance
2021-08-19T10:01:44.491Z sfdx:connection DEBUG Last checked on 8/19/2021, 10:51:12 AM (now is 8/19/2021, 11:01:44 AM) - not getting latest
2021-08-19T10:01:44.491Z sfdx:connection DEBUG Loaded latest apiVersion 52.0
2021-08-19T10:01:44.491Z sfdx:connection DEBUG Using apiVersion 52.0
2021-08-19T10:01:44.498Z sfdx:connection DEBUG request: {"url":"https://enterprise-drive-2905.cs119.my.salesforce.com/services/data/v52.0","method":"GET","headers":{"content-type":"application/json","user-agent":"sfdx toolbelt:"}}
2021-08-19T10:01:45.018Z sfdx:AuthInfo INFO Returning fields for a connection using JWT config.
Cancelling nested steps due to timeout
Sending interrupt signal to process```

@JohanJohanson
Copy link

@AnanyaJha Any update on this one? I'm getting a similar issue using Bamboo as a CI tool. In my case I'm running all tests against a Sandbox with a deployment. Build jobs are stuck as no response is received. Commands are working if executed locally just as @stuartgrieve described.
Currently using sfdx-cli version 7.118.1

sfdx --version
sfdx-cli/7.118.1 linux-x64 node-v14.17.6
sfdx plugins --core

@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.3 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.10.1 (core)
@oclif/plugin-update 1.4.0-3 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
alias 1.1.10 (core)
apex 0.2.8 (core)
auth 1.7.1 (core)
config 1.2.34 (core)
custom-metadata 1.0.12 (core)
data 0.6.1 (core)
generator 1.2.0 (core)
limits 1.2.1 (core)
org 1.7.0 (core)
salesforce-alm 52.3.3 (core)
schema 1.0.8 (core)
sfdx-cli 7.118.1 (core)
sfdx-git-delta 4.9.0
source 1.0.15 (core)
telemetry 1.2.3 (core)
templates 52.1.0 (core)
trust 1.0.7 (core)
user 1.4.0 (core)

@irfidel
Copy link

irfidel commented Oct 12, 2021

Hi @AnanyaJha Any update on this issue? We are facing the same issue with the latest CLI version and running in Jenkins CI.

 CLI Version :
        sfdx-cli/7.121.8

 Architecture:
        linux-x64

 Node Version :
        node-v14.18.0

 Plugin Version:
        @oclif/plugin-autocomplete 0.3.0 (core)
        @oclif/plugin-commands 1.3.0 (core)
        @oclif/plugin-help 3.2.3 (core)
        @oclif/plugin-not-found 1.2.4 (core)
        @oclif/plugin-plugins 1.10.1 (core)
        @oclif/plugin-update 1.5.0 (core)
        @oclif/plugin-warn-if-update-available 1.7.0 (core)
        @oclif/plugin-which 1.0.3 (core)
        @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
        alias 1.1.21 (core)
        apex 0.3.0 (core)
        auth 1.7.2 (core)
        config 1.2.40 (core)
        custom-metadata 1.0.12 (core)
        data 0.6.2 (core)
        generator 1.2.0 (core)
        limits 1.2.2 (core)
        org 1.8.1 (core)
        salesforce-alm 52.5.0 (core)
        schema 1.0.8 (core)
        sfdx-cli 7.121.8 (core)
        source 1.2.2 (core)
        telemetry 1.2.6 (core)
        templates 52.3.0 (core)
        trust 1.0.8 (core)
        user 1.5.0 (core)

 OS and Version:
        Linux 5.4.0-88-generic

When running tests, we don't get any output/no timeout

sfdx force:apex:test:run --testlevel RunLocalTests --codecoverage --resultformat tap  --wait 2 --targetusername myorg

It seems that the --wait parameter is not working. The command is running till all the tests are complete running in the org. Combined with #211 above command is not working in our CI system. Is there any ETA on resolving this issue?

@AnanyaJha
Copy link
Contributor

Hi all, thanks for the patience on this issue. We've logged a bug for this internally and will start working on repro'ing this issue. @irfidel can you share what you mean by #211 not working - what behavior do you see? that issue should be resolved with the latest version of the Apex plugin 0.3.0

@irfidel
Copy link

irfidel commented Oct 13, 2021

Hi @AnanyaJha When we use --resultformat tap in force:apex:test:run the earlier versions of CLI(7.86.3) would print the unit test result on the fly as they run in the org asynchronously. But now with the latest versions of the CLI, the test results are printed out only when they have fully completed running.

@NarangAshish
Copy link

Hi @AnanyaJha linked issue #211 is already closed. We are facing this issue. Any updates on this ?

@viriatis
Copy link

Hi @AnanyaJha linked issue #211 is already closed. We are facing this issue. Any updates on this ?

I tried this Large number of apex tests causing CICD failures and worked. But I would like to know if there is any command to clear test data to automate this in cicd.

@rmathewsbeyond
Copy link

rmathewsbeyond commented Sep 20, 2023

This issue is occurring for us as well. Here's my observations

On running the below cli
sf apex run test --result-format human --wait 200 --code-coverage --test-level RunLocalTest --output-dir tests/test --target-org ${SCRATCH_ORG_NAME} --synchronous

Observations

  • the cli times out at 20 minutes (since we've added a wait for 20 mins) (our Apex tests usually completes in 3-4 minutes)
  • opening the scratch org these are additional observations
  • All local Apex test classes and methods were executed
  • Quite a lot of test classes had the result - 'Code coverage from running this test class was not applied due to a conflicting recompilation task running at the same time. Please rerun this test class to recalculate code coverage.'
  • Few Test classes had status of FAIL, but all the test methods had PASS status
  • Looking at output of ApexTestRunResult, status is Processing

My inference is, since the cli is looking for codecoverage to get calculated, and apex test execution is not actually able to complete that task in the 20 mins

Next Observation:

  • Cleared the Test Data by clicking the 'Clear Test Data' button
  • Reran the cli scripts, and it executed in ~4 mins with no timeouts

So Workaround is to Clear the test data, now like @viriatis mentioned, need to figure how to clear test data in our ci pipeline (via apex or cli scripts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants