A handful of things we can do here. imo this is the biggest win available -- keeping all the dependency steps in a separate file. Makes them easier to maintain, makes dependency building more portable across templates.
Details
Details
- Reviewers
- None
- Group Reviewers
Restricted Project
./contrib/teamcity/build-configurations.py mock-chronik-client-tests ./contrib/teamcity/build-configurations.py alias-server-tests ./contrib/teamcity/build-configurations.py cashtab-tests ./contrib/teamcity/build-configurations.py ecash-lib-tests ./contrib/teamcity/build-configurations.py ecash-herald-tests ./contrib/teamcity/build-configurations.py token-server-tests ./contrib/teamcity/build-configurations.py ecash-agora-integration-tests
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- clean-up-CI
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 31753 Build 63000: Build Diff Build 62999: arc lint + arc unit
Event Timeline
Comment Actions
@bot ecashaddrjs-tests ecash-script-tests ecash-coinselect-tests alias-server-tests ecash-herald-tests token-server-tests mock-chronik-client-tests b58-ts-tests chronik-client-tests ecash-lib-tests ecash-agora-tests ecash-agora-integration-tests ecash-lib-integration-tests chronik-client-integration-tests
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (ecash-herald-tests) failed.
Tail of the build log:
Build 'Bitcoin ABC Diffs / Diff Testing' #88790, branch 'refs/tags/phabricator/diff/51734'
Triggered 2024-12-24 00:05:12 by 'Phabricator Staging (phabricator-staging)'
Started 2024-12-24 00:05:20 on agent 'buildagent1'
Finished 2024-12-24 00:05:20 with status FAILURE 'Unable to collect changes'
VCS revisions: 'BitcoinABC_BitcoinAbcStaging' (Git, instance id 22): 'N/A' (checkout rules: '+:. => ./bitcoin-abc')
TeamCity URL https://build.bitcoinabc.org/buildConfiguration/BitcoinABC_BitcoinAbcStaging/874998
TeamCity server version is 2024.12 (build 174331), server timezone: GMT (UTC)
[00:05:12]E: bt15 (7s)
[00:05:12]i: TeamCity server version is 2024.12 (build 174331)
[00:05:12] : Finalize build settings
[00:05:12] : Collecting changes in 2 VCS roots
[00:05:12] : [Collecting changes in 2 VCS roots] VCS Root details
[00:05:12] : [VCS Root details] "Bitcoin ABC Staging" {instance id=22, parent internal id=3, parent id=BitcoinABC_BitcoinAbcStaging, description: "ssh://vcs@reviews.bitcoinabc.org:2221/source/bitcoin-abc-staging.git#refs/heads/master"}
[00:05:12] : [VCS Root details] "abc-infrastructure" {instance id=24, parent internal id=7, parent id=AutomatedDeployments_BitcoinAbcDeveloperTools_AbcInfrastructure, description: "ssh://vcs@reviews.bitcoinabc.org:2221/source/infrastructure.git#refs/heads/master"}
[00:05:12]i: Loading current repository state for VCS root 'Bitcoin ABC Staging' (running for 7s)
[00:05:12]i: [Loading current repository state for VCS root 'Bitcoin ABC Staging'] VCS root 'Bitcoin ABC Staging': git -c credential.helper= -c credential.helper=/opt/teamcity/temp/credHelper16736493045688424101.sh ls-remote origin
[00:05:13]i: [Loading current repository state for VCS root 'Bitcoin ABC Staging'] Loading current repository state for VCS root 'abc-infrastructure' (running for 7s)
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] VCS root 'abc-infrastructure': git -c credential.helper= -c credential.helper=/opt/teamcity/temp/credHelper14128136975910159148.sh ls-remote origin
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] VCS root 'Bitcoin ABC Staging': kex_exchange_identification: Connection closed by remote host
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] VCS root 'Bitcoin ABC Staging': Connection closed by 51.161.87.173 port 2221
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] VCS root 'Bitcoin ABC Staging': fatal: Could not read from remote repository.
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] VCS root 'Bitcoin ABC Staging':
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] VCS root 'Bitcoin ABC Staging': Please make sure you have the correct access rights
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] VCS root 'Bitcoin ABC Staging': and the repository exists.
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] VCS root 'abc-infrastructure': Warning: Permanently added '[reviews.bitcoinabc.org]:2221' (ED25519) to the list of known hosts.
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] Detecting changes in VCS root 'abc-infrastructure' (used in 'Bitcoin-ABC Infra Checkout', 'Extract Electrum ABC from ABC' and 5 other configurations)
[00:05:13]i: [Loading current repository state for VCS root 'abc-infrastructure'] Will collect changes for 'abc-infrastructure' starting from revision 12d41b310f3393c8558065adbfa98f1a09578d1c
[00:05:13] : Compute revision for 'abc-infrastructure' in Automated Deployments / Bitcoin ABC Infra / Bitcoin-ABC Infra Checkout
[00:05:13] : [Compute revision for 'abc-infrastructure' in Automated Deployments / Bitcoin ABC Infra / Bitcoin-ABC Infra Checkout] Upper limit revision: 12d41b310f3393c8558065adbfa98f1a09578d1c
[00:05:13]i: [Compute revision for 'abc-infrastructure' in Automated Deployments / Bitcoin ABC Infra / Bitcoin-ABC Infra Checkout] MaxModId = 74135
[00:05:13] : [Compute revision for 'abc-infrastructure' in Automated Deployments / Bitcoin ABC Infra / Bitcoin-ABC Infra Checkout] Computed revision: 12d41b310f3393c8558065adbfa98f1a09578d1c
[00:05:20] : The build is removed from the queue to be prepared for the start
[00:05:20]E: Failed to collect changes, error: git -c credential.helper= -c credential.helper=/opt/teamcity/temp/credHelper16736493045688424101.sh ls-remote origin command failed.
exit code: 128
stderr: kex_exchange_identification: Connection closed by remote host
Connection closed by 51.161.87.173 port 2221
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists., VCS root: "Bitcoin ABC Staging" {instance id=22, parent internal id=3, parent id=BitcoinABC_BitcoinAbcStaging, description: "ssh://vcs@reviews.bitcoinabc.org:2221/source/bitcoin-abc-staging.git#refs/heads/master"}
[00:05:20]E: Failed to collect changes, error: git -c credential.helper= -c credential.helper=/opt/teamcity/temp/credHelper16736493045688424101.sh ls-remote origin command failed.
exit code: 128
stderr: kex_exchange_identification: Connection closed by remote host
Connection closed by 51.161.87.173 port 2221
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists., VCS root: "Bitcoin ABC Staging" {instance id=22, parent internal id=3, parent id=BitcoinABC_BitcoinAbcStaging, description: "ssh://vcs@reviews.bitcoinabc.org:2221/source/bitcoin-abc-staging.git#refs/heads/master"}
[00:05:20] : Build finishedComment Actions
Build Bitcoin ABC Diffs / Diff Testing (chronik-client-tests) failed.
Tail of the build log:
/work/modules/chronik-client /work/abc-ci-builds/chronik-client-tests > chronik-client@2.1.1 prepublish > npm run build > chronik-client@2.1.1 build > tsc src/ChronikClient.ts(5,35): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. test/integration/mempool_conflicts.ts(7,48): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. test/integration/script_endpoints.ts(7,63): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. test/integration/websocket.ts(7,35): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. npm error code 2 npm error path /work/modules/chronik-client npm error command failed npm error command sh -c npm run build npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-24T00_06_09_688Z-debug-0.log Build chronik-client-tests failed with exit code 2
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (alias-server-tests) failed.
Tail of the build log:
94 packages are looking for funding
run `npm fund` for details
15 vulnerabilities (3 low, 7 moderate, 5 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
CI not configured to test build.
> alias-server@1.0.0 test
> mocha --reporter mocha-junit-reporter --reporter-options mochaFile=test_results/alias-server-junit.xml --reporter-options testsuitesTitle=Alias Server Unit Tests --reporter-options rootSuiteTitle=Alias Server
Error: Cannot find module '/work/apps/alias-server/node_modules/ecashaddrjs/dist/cashaddr.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/work/apps/alias-server/test/alias.test.js:7:40)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module.replacementCompile (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:60:13)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Object.<anonymous> (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:64:4)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async formattedImport (/work/apps/alias-server/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
at async exports.requireOrImport (/work/apps/alias-server/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
at async exports.loadFilesAsync (/work/apps/alias-server/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
at async singleRun (/work/apps/alias-server/node_modules/mocha/lib/cli/run-helpers.js:125:3)
at async exports.handler (/work/apps/alias-server/node_modules/mocha/lib/cli/run.js:370:5)
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='0']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/alias-server-junit.xml': No such file or directory
Build alias-server-tests failed with exit code 1Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (ecash-lib-tests) failed.
Tail of the build log:
/work/modules/ecash-lib /work/abc-ci-builds/ecash-lib-tests added 365 packages, and audited 369 packages in 2s 60 packages are looking for funding run `npm fund` for details 2 vulnerabilities (1 moderate, 1 high) To address all issues, run: npm audit fix Run `npm audit` for details. CI configured to test build. Building... > ecash-lib@1.2.0 build > tsc && tsc -p ./tsconfig.build.json && cp -r ./src/ffi ./dist ../chronik-client/proto/chronik.ts(2,18): error TS2307: Cannot find module 'long' or its corresponding type declarations. ../chronik-client/proto/chronik.ts(3,17): error TS2307: Cannot find module 'protobufjs/minimal' or its corresponding type declarations. ../chronik-client/src/ChronikClient.ts(5,35): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. ../chronik-client/src/ChronikClient.ts(6,23): error TS2307: Cannot find module 'isomorphic-ws' or its corresponding type declarations. ../chronik-client/src/ChronikClient.ts(7,21): error TS2307: Cannot find module 'ws' or its corresponding type declarations. ../chronik-client/src/failoverProxy.ts(5,38): error TS2307: Cannot find module 'axios' or its corresponding type declarations. ../chronik-client/src/failoverProxy.ts(6,23): error TS2307: Cannot find module 'isomorphic-ws' or its corresponding type declarations. ../chronik-client/src/failoverProxy.ts(7,21): error TS2307: Cannot find module 'ws' or its corresponding type declarations. ../chronik-client/src/failoverProxy.ts(186,35): error TS7006: Parameter 'x' implicitly has an 'any' type. ../chronik-client/src/failoverProxy.ts(270,32): error TS7006: Parameter 'e' implicitly has an 'any' type. ../chronik-client/src/failoverProxy.ts(276,30): error TS7006: Parameter 'e' implicitly has an 'any' type. ../chronik-client/src/failoverProxy.ts(294,33): error TS7006: Parameter 'msg' implicitly has an 'any' type. src/address/address.test.ts(9,51): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. src/address/address.ts(11,8): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. src/initBrowser.ts(6,34): error TS2307: Cannot find module './ffi/ecash_lib_wasm_browser.js' or its corresponding type declarations. src/initNodeJs.ts(6,22): error TS2307: Cannot find module './ffi/ecash_lib_wasm_nodejs.js' or its corresponding type declarations. tests/txBuilder.test.ts(36,35): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. Build ecash-lib-tests failed with exit code 2
Comment Actions
Tail of the build log:
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at m._resolveFilename (file:///work/modules/mock-chronik-client/node_modules/tsx/dist/register-RyGUjI6j.mjs:1:789)
at nextResolveSimple (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:942)
at /work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:2550
at /work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1624
at resolveTsPaths (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:760)
at Function._resolveFilename (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:1038)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at TOKEN_ID_PREFIX (/work/modules/mock-chronik-client/index.ts:9:8)
at Object.<anonymous> (/work/modules/mock-chronik-client/index.ts:974:1)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module.replacementCompile (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:60:13)
at transformer (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1186)
at Object.<anonymous> (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:64:4)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at mocks (/work/modules/mock-chronik-client/index.test.ts:15:8)
at Object.<anonymous> (/work/modules/mock-chronik-client/index.test.ts:427:2)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module.replacementCompile (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:60:13)
at transformer (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1186)
at Object.<anonymous> (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:64:4)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async formattedImport (/work/modules/mock-chronik-client/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
at async exports.requireOrImport (/work/modules/mock-chronik-client/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
at async exports.loadFilesAsync (/work/modules/mock-chronik-client/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
at async singleRun (/work/modules/mock-chronik-client/node_modules/mocha/lib/cli/run-helpers.js:162:3)
at async exports.handler (/work/modules/mock-chronik-client/node_modules/mocha/lib/cli/run.js:375:5) {
code: 'MODULE_NOT_FOUND',
path: '/work/modules/mock-chronik-client/node_modules/ecashaddrjs/package.json',
requestPath: 'ecashaddrjs'
}
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0.9 | 9.8 | 1.2 | 0.9 |
index.ts | 0.9 | 9.8 | 1.2 | 0.9 | 27-974
----------|---------|----------|---------|---------|-------------------
##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='2']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='222']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='5']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='51']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='1']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='83']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='2']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='221']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/mock-chronik-client-junit.xml': No such file or directory
Build mock-chronik-client-tests failed with exit code 1Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (token-server-tests) failed.
Tail of the build log:
/work/apps/token-server /work/abc-ci-builds/token-server-tests npm warn deprecated har-validator@5.1.5: this library is no longer supported npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. added 647 packages, and audited 652 packages in 6s 126 packages are looking for funding run `npm fund` for details 12 vulnerabilities (3 low, 5 moderate, 4 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. CI configured to test build. Building... > token-server@0.0.0 prebuild > ts-node scripts/prepSecrets.ts secrets.ts does not exist, copying secrets.sample.ts... > token-server@0.0.0 build > tsc -p ./tsconfig.build.json index.ts(12,31): error TS2307: Cannot find module 'ecash-lib' or its corresponding type declarations. index.ts(95,5): error TS7006: Parameter 'err' implicitly has an 'any' type. src/chronik/parse.ts(6,44): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. src/routes.ts(22,64): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. src/routes.ts(23,21): error TS2307: Cannot find module 'ecash-lib' or its corresponding type declarations. src/transactions.ts(22,8): error TS2307: Cannot find module 'ecash-lib' or its corresponding type declarations. src/wallet.ts(14,35): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. ../../modules/chronik-client/proto/chronik.ts(2,18): error TS2307: Cannot find module 'long' or its corresponding type declarations. ../../modules/chronik-client/proto/chronik.ts(3,17): error TS2307: Cannot find module 'protobufjs/minimal' or its corresponding type declarations. ../../modules/chronik-client/src/ChronikClient.ts(5,35): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. ../../modules/chronik-client/src/ChronikClient.ts(6,23): error TS2307: Cannot find module 'isomorphic-ws' or its corresponding type declarations. ../../modules/chronik-client/src/ChronikClient.ts(7,21): error TS2307: Cannot find module 'ws' or its corresponding type declarations. ../../modules/chronik-client/src/failoverProxy.ts(5,38): error TS2307: Cannot find module 'axios' or its corresponding type declarations. ../../modules/chronik-client/src/failoverProxy.ts(6,23): error TS2307: Cannot find module 'isomorphic-ws' or its corresponding type declarations. ../../modules/chronik-client/src/failoverProxy.ts(7,21): error TS2307: Cannot find module 'ws' or its corresponding type declarations. ../../modules/chronik-client/src/failoverProxy.ts(186,35): error TS7006: Parameter 'x' implicitly has an 'any' type. ../../modules/chronik-client/src/failoverProxy.ts(270,32): error TS7006: Parameter 'e' implicitly has an 'any' type. ../../modules/chronik-client/src/failoverProxy.ts(276,30): error TS7006: Parameter 'e' implicitly has an 'any' type. ../../modules/chronik-client/src/failoverProxy.ts(294,33): error TS7006: Parameter 'msg' implicitly has an 'any' type. Build token-server-tests failed with exit code 2
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (ecash-agora-tests) failed.
Tail of the build log:
Run `npm audit` for details.
CI not configured to test build.
> ecash-agora@0.2.0 test
> mocha --import=tsx ./src/*.test.ts ./src/**/*.test.ts --reporter mocha-junit-reporter --reporter-options mochaFile=test_results/ecash-agora-junit.xml --reporter-options testsuitesTitle=Ecash Agora Unit Tests --reporter-options rootSuiteTitle=Ecash Agora
Exception during run: Error: Cannot find module '/work/modules/ecash-agora/node_modules/ecash-lib/dist/indexNodeJs.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at a._resolveFilename (/work/modules/ecash-agora/node_modules/tsx/dist/cjs/index.cjs:1:1729)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at <anonymous> (/work/modules/ecash-agora/src/partial.approx.test.ts:6:64)
at Object.<anonymous> (/work/modules/ecash-agora/src/partial.approx.test.ts:1161:2)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module.replacementCompile (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:60:13)
at S (/work/modules/ecash-agora/node_modules/tsx/dist/cjs/index.cjs:1:1292)
at Object.<anonymous> (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:64:4)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async formattedImport (/work/modules/ecash-agora/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
at async exports.requireOrImport (/work/modules/ecash-agora/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
at async exports.loadFilesAsync (/work/modules/ecash-agora/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
at async singleRun (/work/modules/ecash-agora/node_modules/mocha/lib/cli/run-helpers.js:125:3)
at async exports.handler (/work/modules/ecash-agora/node_modules/mocha/lib/cli/run.js:370:5) {
code: 'MODULE_NOT_FOUND',
path: '/work/modules/ecash-agora/node_modules/ecash-lib/package.json',
requestPath: 'ecash-lib'
}
------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
ad.ts | 0 | 0 | 0 | 0 | 33-146
agora.ts | 0 | 0 | 0 | 0 | 54-914
consts.ts | 0 | 100 | 100 | 0 | 8-11
index.ts | 0 | 0 | 0 | 0 |
oneshot.ts | 0 | 0 | 0 | 0 | 65-286
partial.ts | 0 | 0 | 0 | 0 | 204-1406
------------|---------|----------|---------|---------|-------------------
##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='514']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='207']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='77']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='514']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-agora-junit.xml': No such file or directory
Build ecash-agora-tests failed with exit code 1Comment Actions
Tail of the build log:
[549/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/peertablemodel.cpp.o [550/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/utilitydialog.cpp.o [551/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/trafficgraphwidget.cpp.o [552/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/qrc_bitcoin_locale.cpp.o [553/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/addressbookpage.cpp.o [554/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/splashscreen.cpp.o [555/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/addresstablemodel.cpp.o [556/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/askpassphrasedialog.cpp.o [557/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/coincontroltreewidget.cpp.o [558/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/createwalletdialog.cpp.o [559/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/rpcconsole.cpp.o [560/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/editaddressdialog.cpp.o [561/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/openuridialog.cpp.o [562/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/overviewpage.cpp.o [563/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/coincontroldialog.cpp.o [564/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/qrimagewidget.cpp.o [565/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactionfilterproxy.cpp.o [566/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/receiverequestdialog.cpp.o [567/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/recentrequeststablemodel.cpp.o [568/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/sendcoinsentry.cpp.o [569/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactiondescdialog.cpp.o [570/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/paymentserver.cpp.o [571/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/receivecoinsdialog.cpp.o [572/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/signverifymessagedialog.cpp.o [573/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactionrecord.cpp.o [574/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactiontablemodel.cpp.o [575/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/sendcoinsdialog.cpp.o [576/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletframe.cpp.o [577/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletmodeltransaction.cpp.o [578/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactionview.cpp.o [579/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactiondesc.cpp.o [580/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/paymentrequestplus.cpp.o [581/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletcontroller.cpp.o [582/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletmodel.cpp.o [583/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletview.cpp.o [584/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/qrc_bitcoin.cpp.o [585/589] Linking CXX static library src/qt/libbitcoin-qt-base.a [586/589] Automatic MOC for target bitcoin-qt [587/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt.dir/bitcoin-qt_autogen/mocs_compilation.cpp.o [588/589] Building CXX object src/qt/CMakeFiles/bitcoin-qt.dir/main.cpp.o [589/589] Linking CXX executable src/qt/bitcoin-qt /work/modules/chronik-client /work/abc-ci-builds/chronik-client-integration-tests > chronik-client@2.1.1 prepublish > npm run build > chronik-client@2.1.1 build > tsc src/ChronikClient.ts(5,35): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. test/integration/mempool_conflicts.ts(7,48): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. test/integration/script_endpoints.ts(7,63): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. test/integration/websocket.ts(7,35): error TS2307: Cannot find module 'ecashaddrjs' or its corresponding type declarations. npm error code 2 npm error path /work/modules/chronik-client npm error command failed npm error command sh -c npm run build npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-24T00_11_19_449Z-debug-0.log Build chronik-client-integration-tests failed with exit code 2
Comment Actions
Tail of the build log:
requireStack: [
'/work/modules/ecash-lib/src/initNodeJs.ts',
'/work/modules/ecash-lib/tests/alp.test.ts'
]
}
-----------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------------------|---------|----------|---------|---------|-------------------
All files | 1.15 | 3.9 | 1.81 | 1.17 |
ecash-lib | 0 | 0 | 0 | 0 |
eslint.config.js | 0 | 0 | 0 | 0 |
ecash-lib/src | 2.11 | 6.6 | 3.89 | 2.14 |
consts.ts | 0 | 100 | 100 | 0 | 6-8
ecc.ts | 42.85 | 83.33 | 20 | 42.85 | 23-31,36
hash.ts | 55.55 | 83.33 | 20 | 55.55 | 14,17,20,24
index.ts | 0 | 0 | 0 | 0 |
indexBrowser.ts | 0 | 0 | 0 | 0 |
indexNodeJs.ts | 0 | 0 | 0 | 0 |
initBrowser.ts | 0 | 100 | 0 | 0 | 11-13
initNodeJs.ts | 42.85 | 83.33 | 50 | 50 | 7-11
op.ts | 0 | 0 | 0 | 0 | 33-161
opcode.ts | 0 | 100 | 100 | 0 | 10-154
script.ts | 0 | 0 | 0 | 0 | 28-186
sigHashType.ts | 0 | 0 | 0 | 0 | 19-183
tx.ts | 0 | 0 | 0 | 0 | 21-176
txBuilder.ts | 0 | 0 | 0 | 0 | 74-257
unsignedTx.ts | 0 | 0 | 0 | 0 | 41-357
ecash-lib/src/address | 0 | 0 | 0 | 0 |
address.ts | 0 | 0 | 0 | 0 | 22-344
legacyaddr.ts | 0 | 0 | 0 | 0 | 14-128
ecash-lib/src/io | 0 | 0 | 0 | 0 |
bytes.ts | 0 | 0 | 0 | 0 | 13-64
hex.ts | 0 | 0 | 0 | 0 | 5-68
int.ts | 0 | 0 | 0 | 0 |
str.ts | 0 | 100 | 0 | 0 | 5-15
varsize.ts | 0 | 0 | 0 | 0 | 14-47
writer.ts | 0 | 0 | 0 | 0 |
writerbytes.ts | 0 | 0 | 0 | 0 | 21-79
writerlength.ts | 0 | 100 | 0 | 0 | 16-41
ecash-lib/src/test | 0 | 0 | 0 | 0 |
testRunner.ts | 0 | 0 | 0 | 0 | 17-207
ecash-lib/src/token | 0 | 0 | 0 | 0 |
alp.ts | 0 | 0 | 0 | 0 | 13-145
common.ts | 0 | 100 | 100 | 0 | 9-12
empp.ts | 0 | 0 | 0 | 0 | 11-28
slp.ts | 0 | 0 | 0 | 0 | 13-211
-----------------------|---------|----------|---------|---------|-------------------
##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='11']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='952']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='15']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='384']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='3']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='165']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='11']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='937']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-lib-integration-tests-junit.xml': No such file or directory
Build ecash-lib-integration-tests failed with exit code 1Comment Actions
Tail of the build log:
Run `npm audit` for details.
> ecash-agora@0.2.0 integration-tests
> mocha --import=tsx ./tests/*.test.ts --timeout 60000 --reporter mocha-junit-reporter --reporter-options mochaFile=test_results/ecash-agora-integration-tests-junit.xml --reporter-options testsuitesTitle=Ecash Agora Integration Tests --reporter-options rootSuiteTitle=Ecash Agora
Exception during run: Error: Cannot find module '/work/modules/ecash-agora/node_modules/ecash-lib/dist/indexNodeJs.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at a._resolveFilename (/work/modules/ecash-agora/node_modules/tsx/dist/cjs/index.cjs:1:1729)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at chaiAsPromised (/work/modules/ecash-agora/tests/oneshot.test.ts:25:8)
at Object.<anonymous> (/work/modules/ecash-agora/tests/oneshot.test.ts:706:2)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module.replacementCompile (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:60:13)
at S (/work/modules/ecash-agora/node_modules/tsx/dist/cjs/index.cjs:1:1292)
at Object.<anonymous> (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:64:4)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async formattedImport (/work/modules/ecash-agora/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
at async exports.requireOrImport (/work/modules/ecash-agora/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
at async exports.loadFilesAsync (/work/modules/ecash-agora/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
at async singleRun (/work/modules/ecash-agora/node_modules/mocha/lib/cli/run-helpers.js:125:3)
at async exports.handler (/work/modules/ecash-agora/node_modules/mocha/lib/cli/run.js:370:5) {
code: 'MODULE_NOT_FOUND',
path: '/work/modules/ecash-agora/node_modules/ecash-lib/package.json',
requestPath: 'ecash-lib'
}
------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
ad.ts | 0 | 0 | 0 | 0 | 33-146
agora.ts | 0 | 0 | 0 | 0 | 54-914
consts.ts | 0 | 100 | 100 | 0 | 8-11
index.ts | 0 | 0 | 0 | 0 |
oneshot.ts | 0 | 0 | 0 | 0 | 65-286
partial.ts | 0 | 0 | 0 | 0 | 204-1406
------------|---------|----------|---------|---------|-------------------
##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='514']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='207']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='77']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='514']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-agora-integration-tests-junit.xml': No such file or directory
Build ecash-agora-integration-tests failed with exit code 1Comment Actions
Tail of the build log:
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at m._resolveFilename (file:///work/modules/mock-chronik-client/node_modules/tsx/dist/register-RyGUjI6j.mjs:1:789)
at nextResolveSimple (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:942)
at /work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:2550
at /work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1624
at resolveTsPaths (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:760)
at Function._resolveFilename (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:1038)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at TOKEN_ID_PREFIX (/work/modules/mock-chronik-client/index.ts:9:8)
at Object.<anonymous> (/work/modules/mock-chronik-client/index.ts:974:1)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module.replacementCompile (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:60:13)
at transformer (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1186)
at Object.<anonymous> (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:64:4)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at mocks (/work/modules/mock-chronik-client/index.test.ts:15:8)
at Object.<anonymous> (/work/modules/mock-chronik-client/index.test.ts:427:2)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module.replacementCompile (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:60:13)
at transformer (/work/modules/mock-chronik-client/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1186)
at Object.<anonymous> (/usr/lib/node_modules/nyc/node_modules/append-transform/index.js:64:4)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async formattedImport (/work/modules/mock-chronik-client/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
at async exports.requireOrImport (/work/modules/mock-chronik-client/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
at async exports.loadFilesAsync (/work/modules/mock-chronik-client/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
at async singleRun (/work/modules/mock-chronik-client/node_modules/mocha/lib/cli/run-helpers.js:162:3)
at async exports.handler (/work/modules/mock-chronik-client/node_modules/mocha/lib/cli/run.js:375:5) {
code: 'MODULE_NOT_FOUND',
path: '/work/modules/mock-chronik-client/node_modules/ecashaddrjs/package.json',
requestPath: 'ecashaddrjs'
}
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0.9 | 9.8 | 1.2 | 0.9 |
index.ts | 0.9 | 9.8 | 1.2 | 0.9 | 27-974
----------|---------|----------|---------|---------|-------------------
##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='2']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='222']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='5']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='51']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='1']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='83']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='2']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='221']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/mock-chronik-client-junit.xml': No such file or directory
Build mock-chronik-client-tests failed with exit code 1