Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container prepare 2026/05/06 12:56:38 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container place-scripts 2026/05/06 12:56:50 Decoded script /tekton/scripts/script-0-m79bx 2026/05/06 12:56:50 Decoded script /tekton/scripts/script-1-2h6gh 2026/05/06 12:56:50 Decoded script /tekton/scripts/script-2-27f6g 2026/05/06 12:56:50 Decoded script /tekton/scripts/script-3-8lq4w 2026/05/06 12:56:50 Decoded script /tekton/scripts/script-4-kxfhv 2026/05/06 12:56:50 Decoded script /tekton/scripts/script-5-jm9fg 2026/05/06 12:56:51 Decoded script /tekton/scripts/script-6-hxz7q 2026/05/06 12:56:51 Decoded script /tekton/scripts/script-7-d5m78 Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/78/head:PR-78@f1daa4a44f00ac5eb0d4f708a6e29d065d5330d2 to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/78/head -> PR-78 Switched to branch 'PR-78' HEAD is now at f1daa4a fix: prettier formatting for all changed files checked out revision: refs/pull/78/head:PR-78@f1daa4a44f00ac5eb0d4f708a6e29d065d5330d2 to dir: source Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:54d909242dd5a4033334d05fa23285c1a26b8658,78:f1daa4a44f00ac5eb0d4f708a6e29d065d5330d2:refs/pull/78/head using base branch main and base sha 54d909242dd5a4033334d05fa23285c1a26b8658 merging sha: f1daa4a44f00ac5eb0d4f708a6e29d065d5330d2 Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container step-jx-variables WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set about to run: git clone --no-checkout --filter=blob:none --depth=1 https://github.com/greencapitaltrade/mcu.git /tmp/jx-git-3070476545 in dir /tmp Cloning into '/tmp/jx-git-3070476545'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3070476545 about to run: git checkout in dir /tmp/jx-git-3070476545 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-78' export BUILD_NUMBER='6' export DOCKERFILE_PATH='Dockerfile' export DOCKER_REGISTRY='417755753340.dkr.ecr.ap-south-1.amazonaws.com' export DOCKER_REGISTRY_ORG='greencapitaltrade' export DOMAIN='gc-t.in' about to run: git rev-parse --abbrev-ref HEAD in dir . main export GIT_BRANCH='main' export JENKINS_X_URL='https://dashboard-jx.gc-t.in/greencapitaltrade/utils/PR-78/6' export JX_CHART_REPOSITORY='http://jenkins-x-chartmuseum.jx.svc.cluster.local:8080' export KANIKO_FLAGS='--skip-unused-stages --snapshotMode=redo' export MINK_AS='tekton-bot' version file VERSION does not exist export MINK_IMAGE='417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/utils:0.0.0-PR-78-6-SNAPSHOT' export NAMESPACE_SUB_DOMAIN='-jx.' export PIPELINE_KIND='pullrequest' export PUSH_CONTAINER_REGISTRY='417755753340.dkr.ecr.ap-south-1.amazonaws.com' export REPO_NAME='utils' export REPO_OWNER='greencapitaltrade' version file VERSION does not exist export VERSION='0.0.0-PR-78-6-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container step-build-npm-install npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated @types/kafkajs@1.9.0: This is a stub types definition. kafkajs provides its own type definitions, so you do not need this installed. npm warn deprecated @types/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 33s 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-78 #6 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/lazy-transaction.test.ts (40.29 s) FAIL tests/outbox.test.ts (49.006 s) ● outbox › enqueues a generic outbox event expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: ObjectContaining {"aggregate_id": "account-1", "aggregate_type": "account", "destination": "bifrost", "event_type": "loan.disbursal_posted", "payload": {"amount": 100000}} Received: {"aggregate_id": "account-1", "aggregate_type": "account", "destination": "bifrost", "event_type": "loan.disbursal_posted", "expires_at": null, "headers": {}, "next_attempt_at": 2026-05-06T12:59:02.064Z, "payload": {"amount": 100000}}, undefined Number of calls: 1   79 |  80 | expect(result).toBe(createdEvent); > 81 | expect(outbox.create).toHaveBeenCalledWith(  | ^  82 | expect.objectContaining({  83 | destination: 'bifrost',  84 | event_type: 'loan.disbursal_posted', at tests/outbox.test.ts:81:27 at fulfilled (tests/outbox.test.ts:5:58) PASS tests/koa.test.ts (12.692 s) ● Console console.info Starting traceID=undefined method=POST url=/test body={"name":"test","value":123} headers={} at src/koa.ts:109:17 console.info traceID=undefined method=POST url=/test status=404 responseTime=0ms at src/koa.ts:184:17 console.info Starting traceID=undefined method=POST url=/test body={"arbitrary":"data","nested":{"foo":"bar"}} headers={} at src/koa.ts:109:17 console.info traceID=undefined method=POST url=/test status=404 responseTime=0ms at src/koa.ts:184:17 PASS tests/tracing.test.ts ● Console console.debug PostgreSQL (pg) or PostgreSQL instrumentation not installed - skipping PostgreSQL instrumentation at Object. (src/tracing.ts:72:11) console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (src/tracing.ts:109:13) FAIL tests/outbox-worker.test.ts (70.19 s) ● Console console.info Outbox worker started (poll=100ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:195:11) console.info Outbox worker started (poll=100ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:195:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:172:19 console.info Outbox worker started (poll=100ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:195:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:172:19 console.info Outbox worker started (poll=100ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:195:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:172:19 console.info Outbox worker started (poll=100ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:195:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:172:19 ● outbox-worker › starts and stops without errors thrown: "Exceeded timeout of 5000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."   43 | });  44 | > 45 | it('starts and stops without errors', async () => {  | ^  46 | mockQuery.mockResolvedValue([[]]);  47 | const worker = startOutboxWorker({ pollInterval: 100 });  48 | jest.advanceTimersByTime(100); at tests/outbox-worker.test.ts:45:3 at Object. (tests/outbox-worker.test.ts:35:1) ● outbox-worker › publishes claimed rows to Kafka and marks delivered thrown: "Exceeded timeout of 5000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."   50 | });  51 | > 52 | it('publishes claimed rows to Kafka and marks delivered', async () => {  | ^  53 | const row = {  54 | id: 42,  55 | destination: 'ironman.repayment.completed', at tests/outbox-worker.test.ts:52:3 at Object. (tests/outbox-worker.test.ts:35:1) ● outbox-worker › marks row as failed with backoff on Kafka error thrown: "Exceeded timeout of 5000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."   90 | });  91 | > 92 | it('marks row as failed with backoff on Kafka error', async () => {  | ^  93 | const row = {  94 | id: 7,  95 | destination: 'test.topic', at tests/outbox-worker.test.ts:92:3 at Object. (tests/outbox-worker.test.ts:35:1) ● outbox-worker › skips expired messages without publishing thrown: "Exceeded timeout of 5000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."   122 | });  123 | > 124 | it('skips expired messages without publishing', async () => {  | ^  125 | const row = {  126 | id: 99,  127 | destination: 'expired.topic', at tests/outbox-worker.test.ts:124:3 at Object. (tests/outbox-worker.test.ts:35:1) ● outbox-worker › uses row.id as Kafka key when aggregate_id is null thrown: "Exceeded timeout of 5000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."   151 | });  152 | > 153 | it('uses row.id as Kafka key when aggregate_id is null', async () => {  | ^  154 | const row = {  155 | id: 55,  156 | destination: 'test.topic', at tests/outbox-worker.test.ts:153:3 at Object. (tests/outbox-worker.test.ts:35:1) Test Suites: 2 failed, 3 passed, 5 total Tests: 6 failed, 21 passed, 27 total Snapshots: 0 total Time: 71.403 s Ran all test suites.  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped.