Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped. Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container prepare 2026/07/30 05:58:19 Entrypoint initialization Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container place-scripts 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-0-qskcj 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-1-h82z8 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-2-hq6g6 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-3-g5pnp 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-4-nnm6f 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-5-lgnzm 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-6-wpg6d 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-7-cmmsz 2026/07/30 05:58:25 Decoded script /tekton/scripts/script-8-9tnpw Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/utils.git version refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/utils * [new ref] refs/pull/98/head -> PR-98 Switched to branch 'PR-98' HEAD is now at 74760bd test: run jest in parallel and ignore .worktrees copies checked out revision: refs/pull/98/head:PR-98@74760bddf6b17065a8de00107b02475c3ad945ed to dir: source Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d,98:74760bddf6b17065a8de00107b02475c3ad945ed:refs/pull/98/head using base branch main and base sha c8a16d3c0083cfe8c1acc0f45a228f7ba7164c4d merging sha: 74760bddf6b17065a8de00107b02475c3ad945ed Showing logs for build greencapitaltrade/utils/pr-98 #1 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-3665807350 in dir /tmp Cloning into '/tmp/jx-git-3665807350'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3665807350 about to run: git checkout in dir /tmp/jx-git-3665807350 Your branch is up to date with 'origin/main'. export APP_NAME='utils' export BRANCH_NAME='PR-98' export BUILD_NUMBER='1' 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-98/1' 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-98-1-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-98-1-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/utils/pr-98 #1 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/ioredis@5.0.0: This is a stub types definition. ioredis provides its own type definitions, so you do not need this installed. 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. > @greencapitaltrade/utils@9.2.22 prepare > husky || true git command not found added 802 packages in 1m 179 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-run-linting Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build > @greencapitaltrade/utils@9.2.22 build > tsc Showing logs for build greencapitaltrade/utils/pr-98 #1 stage from-build-pack and container step-build-npm-test > @greencapitaltrade/utils@9.2.22 test > jest PASS tests/kafka-guaranteed.test.ts (50.101 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301082_1s4ofzpsbfy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301183_gt066n1jnyb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301187_wkzqdrupdxq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301476_8ltnp10xaji', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301483_0biathl4nn3', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_o985c1nrphq', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rh8vqoc3jz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 42, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301777_zlz51whrr2', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Outbox row published but not marked delivered { outboxId: 42, error: 'db gone' } 1326 | // Published but not marked: the worker redelivers after the grace window. 1327 | // At-least-once, the same guarantee the worker itself gives. > 1328 | console.warn('Outbox row published but not marked delivered', { | ^ 1329 | outboxId, 1330 | error: 1331 | updateError instanceof Error at src/kafka.ts:1328:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301780_5cy2dqp6h4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301782_ni07r65qaz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301782_ipvfo179zgg', requestId: undefined, size: 50 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_i20pa1ds6io', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.error Kafka publish failed { topic: 'ironman.repayment.bill.completed', messageId: 'fallback_1785391301978_5g48hyc3wzj', requestId: undefined, error: 'broker unreachable', errorType: 'Error' } 1401 | } catch (error) { 1402 | // Always log errors > 1403 | console.error('Kafka publish failed', { | ^ 1404 | topic, 1405 | messageId: id, 1406 | requestId: context.get('requestId'), at src/kafka.ts:1403:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.warn Kafka publish failed, falling back to outbox { topic: 'ironman.repayment.bill.completed', eventType: 'repayment_created', error: 'broker unreachable' } 1486 | }); 1487 | } catch (kafkaError) { > 1488 | console.warn('Kafka publish failed, falling back to outbox', { | ^ 1489 | topic, 1490 | eventType: message.name, 1491 | error: at src/kafka.ts:1488:13 at Generator.throw () at rejected (src/kafka.ts:6:65) PASS tests/kafka-publish-defer.test.ts (51.097 s) ● Console console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301286_2s7h8p4cegx', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301490_jnbdv9cuov', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301578_uu7gfwu39hb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301677_rpya9qujsy', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.debug Kafka message published { topic: 't', messageId: 'fallback_1785391301677_0zmpkjyow73', requestId: undefined, size: 52 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301875_p35tnxsaa1j', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391301978_mvppv5ilvek', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302076_rpwcl6j1yz', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: null, durable: false, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.error Event dropped: no outbox_events table to retry from { topic: 't', messageId: 'fallback_1785391302077_uuayq6lozn' } 1279 | // Ordering tier: no row, so this event is now lost. Loud on purpose — 1280 | // this is the gap that createOutboxMigration closes. > 1281 | console.error('Event dropped: no outbox_events table to retry from', { | ^ 1282 | topic, 1283 | messageId: kafkaMessage.headers['x-message-id'], 1284 | }); at src/kafka.ts:1281:15 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302277_zkyo749i3y', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302382_jiw01q7nyp', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Dropping publish for a rolled-back transaction { topic: 't' } 1180 | // The writes this event describes are gone. Publishing now would be the 1181 | // phantom event the whole deferral exists to prevent. > 1182 | console.warn('Dropping publish for a rolled-back transaction', { topic }); | ^ 1183 | return { deferred: true as const }; 1184 | } 1185 | at src/kafka.ts:1182:13 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at deferToAfterCommit (src/kafka.ts:1166:57) at src/kafka.ts:1377:12 at src/kafka.ts:8:71 at Object..__awaiter (src/kafka.ts:4:12) at publish (src/kafka.ts:1350:29) at tests/kafka-publish-defer.test.ts:244:18 at fulfilled (tests/kafka-publish-defer.test.ts:19:58) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302477_b8kx07pr8dm', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302600_lzny00ez9oc', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'broker unreachable' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302677_b915tkhy2zb', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.warn Post-commit publish failed { topic: 't', outboxId: 7, durable: true, error: 'inline publish exceeded 10000ms' } 1269 | } catch (error) { 1270 | const errorMessage = error instanceof Error ? error.message : String(error); > 1271 | console.warn('Post-commit publish failed', { | ^ 1272 | topic, 1273 | outboxId, 1274 | durable: outboxId !== null, at src/kafka.ts:1271:13 at Generator.throw () at rejected (src/kafka.ts:6:65) console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302682_nhguhyvrt4', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302776_3qwms0yyhe8', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 console.info Kafka initialized with config { consumerCount: 0, brokers: [ 'localhost:9092', 'localhost:9092' ] } at src/kafka.ts:1640:13 console.debug Kafka message published { topic: 'warmup.topic', messageId: 'fallback_1785391302879_imv97pq3iub', requestId: undefined, size: 27 } at src/kafka.ts:1393:13 PASS tests/lazy-transaction.test.ts PASS tests/kafka-rack-retry.test.ts PASS tests/outbox-worker.test.ts (9.792 s) ● Console console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker: published 1/1 messages at src/outbox-worker.ts:168:19 console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15 console.info Outbox worker started (poll=50ms, batch=100, retention=7d) at startOutboxWorker (src/outbox-worker.ts:191:11) console.info Outbox worker stopped at src/outbox-worker.ts:203:15  Pipeline failed on stage 'from-build-pack' : container 'step-build-npm-test'. The execution of the pipeline has stopped.