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

[dependency]: Combine dependabot PRs #1255

Closed
wants to merge 8 commits into from

Merge dependabot/npm_and_yarn/faucet/authenticator/dev/chai-5.1.2 int…

373acbc
Select commit
Loading
Failed to load commit list.
Closed

[dependency]: Combine dependabot PRs #1255

Merge dependabot/npm_and_yarn/faucet/authenticator/dev/chai-5.1.2 int…
373acbc
Select commit
Loading
Failed to load commit list.
Symbol-Github-Bot / Jenkins CI - Faucet Authenticator failed Feb 3, 2025 in 6m 18s

CI pipeline/run tests: error in 'sh (scripts/ci/test.sh code-coverage arm64)' step

CI pipeline / run tests / scripts/ci/test.sh code-coverage arm64

Error in sh (scripts/ci/test.sh code-coverage arm64) step, with arguments bash -c 'scripts/ci/test.sh code-coverage arm64'.

script returned exit code 1
Build log
[2025-02-03T02:33:26.253Z] + bash -c scripts/ci/test.sh code-coverage arm64
[2025-02-03T02:33:26.253Z] ++ '[' code-coverage = code-coverage ']'
[2025-02-03T02:33:26.253Z] ++ echo test:jenkins
[2025-02-03T02:33:26.253Z] + TEST_MODE=test:jenkins
[2025-02-03T02:33:26.253Z] + npm run test:jenkins
[2025-02-03T02:33:26.530Z] 
[2025-02-03T02:33:26.530Z] > faucet-authenticator@1.0.1 test:jenkins
[2025-02-03T02:33:26.530Z] > c8 --require mocha --no-clean --reporter=lcov npm run test
[2025-02-03T02:33:26.530Z] 
[2025-02-03T02:33:27.094Z] 
[2025-02-03T02:33:27.094Z] > faucet-authenticator@1.0.1 test
[2025-02-03T02:33:27.094Z] > mocha --full-trace --recursive test --exit -r dotenv/config dotenv_config_path=./.env.test
[2025-02-03T02:33:27.094Z] 
[2025-02-03T02:33:27.360Z] Warning: Cannot find any files matching pattern "dotenv_config_path=./.env.test"
[2025-02-03T02:33:27.619Z] 
[2025-02-03T02:33:27.619Z]  Exception during run: Error [ERR_REQUIRE_ESM]: require() of ES Module /home/ubuntu/jenkins/workspace/faucet/authenticator/node_modules/chai/chai.js from /home/ubuntu/jenkins/workspace/faucet/authenticator/test/config/index_spec.js not supported.
[2025-02-03T02:33:27.619Z] Instead change the require of chai.js in /home/ubuntu/jenkins/workspace/faucet/authenticator/test/config/index_spec.js to a dynamic import() which is available in all CommonJS modules.
[2025-02-03T02:33:27.619Z]     at Object.<anonymous> (/home/ubuntu/jenkins/workspace/faucet/authenticator/test/config/index_spec.js:2:20)
[2025-02-03T02:33:27.619Z]     at async formattedImport (/home/ubuntu/jenkins/workspace/faucet/authenticator/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
[2025-02-03T02:33:27.619Z]     at async exports.requireOrImport (/home/ubuntu/jenkins/workspace/faucet/authenticator/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
[2025-02-03T02:33:27.619Z]     at async exports.loadFilesAsync (/home/ubuntu/jenkins/workspace/faucet/authenticator/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
[2025-02-03T02:33:27.619Z]     at async singleRun (/home/ubuntu/jenkins/workspace/faucet/authenticator/node_modules/mocha/lib/cli/run-helpers.js:162:3)
[2025-02-03T02:33:27.619Z]     at async exports.handler (/home/ubuntu/jenkins/workspace/faucet/authenticator/node_modules/mocha/lib/cli/run.js:375:5) {
[2025-02-03T02:33:27.619Z]   code: 'ERR_REQUIRE_ESM'
[2025-02-03T02:33:27.620Z] }

Details

  • Declarative: Checkout SCM (13 sec)
    • setup environment (2.5 sec)
    • CI pipeline (3 min 29 sec)
      • display environment (1.9 sec)
      • checkout (0.85 sec)
      • setup docker environment (10 sec)
      • verify conventional commit message (0.9 sec)
      • setup lint (1 min 56 sec)
      • run lint (5.1 sec)
      • setup build (1.9 sec)
      • run build (1 sec)
      • setup tests (0.9 sec)
      • run tests (3.6 sec)
        Error: script returned exit code 1
      • run tests (examples) (0.8 sec)
      • run tests (vectors) (0.76 sec)
      • code coverage (0.76 sec)
    • CD pipeline (2.8 sec)
      • publish RC (0.84 sec)
      • publish Release (0.88 sec)
    • Declarative: Post Actions (0.88 sec)