Git Product home page Git Product logo

Comments (6)

bdovh avatar bdovh commented on June 12, 2024 1

trying to replace npm install -g sfdx-cli by npm install -g [email protected] in the CI script file to downgrade the SFDX CLI version and avoid the error

from salesforcedx-apex.

bdovh avatar bdovh commented on June 12, 2024

Affects me

from salesforcedx-apex.

bdovh avatar bdovh commented on June 12, 2024

I am executing a SFDX CLI command to run apex tests

sfdx force:apex:test:run -l RunLocalTests --loglevel=trace -y -c -r json -d ./tests/apex -w 20

but it fails with a Timeout error. Even when I tried to increase the -wait parameter like this

sfdx force:apex:test:run -l RunLocalTests --loglevel=trace -y -c -r json -d ./tests/apex -w 999999

it still fails with the same error:

echo $(sfdx force:apex:test:run -l RunLocalTests --loglevel=trace -y -c -r json -d ./tests/apex -w 999999) > tests.json
WARNING: WARNING: In the Summer ’21 release, we'll rename or remove some of the output files that are created when you run force:apex:test:run or force:apex:test:report with the --outputdir (-d) parameter. This breaking change could impact your CI/CD scripts if they reference specific filenames. See https://sfdc.co/apex-test-updates for details

CLIError: timed out
at Object.error (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/errors/index.js:28:15)
at /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/cli-ux/index.js:25:66
at async flush (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/cli-ux/index.js:124:9) {
oclif: { exit: 2 },
code: undefined
}
ERROR running force:apex:test:run: Unknown error in Apex Library: timed out

from salesforcedx-apex.

waltonzt avatar waltonzt commented on June 12, 2024

This affects me as well. It just started happening in our CI.

CLIError: timed out
    at Object.error (/opt/hostedtoolcache/node/18.13.0/x64/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/errors/index.js:28:15)
    at /opt/hostedtoolcache/node/18.13.0/x64/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/cli-ux/index.js:25:66
    at async flush (/opt/hostedtoolcache/node/18.13.0/x64/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/cli-ux/index.js:124:9) {
  oclif: { exit: 2 },
  code: undefined
}

from salesforcedx-apex.

waltonzt avatar waltonzt commented on June 12, 2024

@bdovh Yeah that is what I am having to do until this is resolved. Thanks for suggestion though!

from salesforcedx-apex.

klewis-sfdc avatar klewis-sfdc commented on June 12, 2024

Closing this as fixed via an update to the sfdx cli. The update should be included in the cli latest release candidate, which is 7.186.2.

from salesforcedx-apex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.