Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container prepare 2026/05/08 16:40:20 Entrypoint initialization Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container place-scripts 2026/05/08 16:40:22 Decoded script /tekton/scripts/script-0-lbxvv 2026/05/08 16:40:22 Decoded script /tekton/scripts/script-1-7x8k5 2026/05/08 16:40:22 Decoded script /tekton/scripts/script-2-hds78 2026/05/08 16:40:22 Decoded script /tekton/scripts/script-3-tvrqb 2026/05/08 16:40:22 Decoded script /tekton/scripts/script-4-nfpf9 2026/05/08 16:40:22 Decoded script /tekton/scripts/script-5-5gm2z 2026/05/08 16:40:22 Decoded script /tekton/scripts/script-6-zt2dd 2026/05/08 16:40:22 Decoded script /tekton/scripts/script-7-4lzpw 2026/05/08 16:40:22 Decoded script /tekton/scripts/script-8-5sxkc Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/destiny.git version refs/pull/1100/head:PR-1100@80444ee49a9fbd1b96ee74fb15a92467f92762c4 to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/destiny * [new ref] refs/pull/1100/head -> PR-1100 Switched to branch 'PR-1100' HEAD is now at 80444ee4 fix: test failures — missing user_id and wrong model name checked out revision: refs/pull/1100/head:PR-1100@80444ee49a9fbd1b96ee74fb15a92467f92762c4 to dir: source Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:d1e6245ca1d6e16e1c254171a125c01c2a3048b9,1100:80444ee49a9fbd1b96ee74fb15a92467f92762c4:refs/pull/1100/head using base branch main and base sha d1e6245ca1d6e16e1c254171a125c01c2a3048b9 merging sha: 80444ee49a9fbd1b96ee74fb15a92467f92762c4 Showing logs for build greencapitaltrade/destiny/pr-1100 #41 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-2437735891 in dir /tmp Cloning into '/tmp/jx-git-2437735891'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-2437735891 about to run: git checkout in dir /tmp/jx-git-2437735891 Your branch is up to date with 'origin/main'. export APP_NAME='destiny' export BRANCH_NAME='PR-1100' export BUILD_NUMBER='41' 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/destiny/PR-1100/41' 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/destiny:0.0.0-PR-1100-41-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='destiny' export REPO_OWNER='greencapitaltrade' version file VERSION does not exist export VERSION='0.0.0-PR-1100-41-SNAPSHOT' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container step-build-npm-install npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated koa-views@8.1.0: This package is deprecated, please use the new fork @ladjs/koa-views. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/koa-views for updates and release changelog > destiny@0.0.1 postinstall > patch-package patch-package 8.0.0 Applying patches... No patch files found > destiny@0.0.1 prepare > husky install install command is deprecated git command not found added 862 packages in 1m 133 packages are looking for funding run `npm fund` for details Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container step-build-run-linting Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB] Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB] Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8792 kB] Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [6924 B] Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [299 kB] Fetched 9352 kB in 3s (2889 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: git-man libbrotli1 libcurl3-gnutls liberror-perl libexpat1 libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.5-0 libnghttp2-14 libperl5.36 libpsl5 librtmp1 libsasl2-2 libsasl2-modules-db libssh2-1 libssl3 perl perl-modules-5.36 Suggested packages: gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n krb5-doc krb5-user sensible-utils perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libtap-harness-archive-perl Recommended packages: ca-certificates patch less ssh-client krb5-locales libldap-common publicsuffix libsasl2-modules netbase The following NEW packages will be installed: git git-man libbrotli1 libcurl3-gnutls liberror-perl libexpat1 libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.5-0 libnghttp2-14 libperl5.36 libpsl5 librtmp1 libsasl2-2 libsasl2-modules-db libssh2-1 libssl3 perl perl-modules-5.36 0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded. Need to get 20.7 MB of archives. After this operation, 109 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian bookworm/main amd64 perl-modules-5.36 all 5.36.0-7+deb12u3 [2815 kB] Get:2 http://deb.debian.org/debian bookworm/main amd64 libgdbm6 amd64 1.23-3 [72.2 kB] Get:3 http://deb.debian.org/debian bookworm/main amd64 libgdbm-compat4 amd64 1.23-3 [48.2 kB] Get:4 http://deb.debian.org/debian bookworm/main amd64 libperl5.36 amd64 5.36.0-7+deb12u3 [4196 kB] Get:5 http://deb.debian.org/debian bookworm/main amd64 perl amd64 5.36.0-7+deb12u3 [239 kB] Get:6 http://deb.debian.org/debian bookworm/main amd64 libbrotli1 amd64 1.0.9-2+b6 [275 kB] Get:7 http://deb.debian.org/debian bookworm/main amd64 libkrb5support0 amd64 1.20.1-2+deb12u4 [33.2 kB] Get:8 http://deb.debian.org/debian bookworm/main amd64 libk5crypto3 amd64 1.20.1-2+deb12u4 [79.8 kB] Get:9 http://deb.debian.org/debian bookworm/main amd64 libkeyutils1 amd64 1.6.3-2 [8808 B] Get:10 http://deb.debian.org/debian-security bookworm-security/main amd64 libssl3 amd64 3.0.19-1~deb12u2 [2032 kB] Get:11 http://deb.debian.org/debian bookworm/main amd64 libkrb5-3 amd64 1.20.1-2+deb12u4 [334 kB] Get:12 http://deb.debian.org/debian bookworm/main amd64 libgssapi-krb5-2 amd64 1.20.1-2+deb12u4 [135 kB] Get:13 http://deb.debian.org/debian bookworm/main amd64 libsasl2-modules-db amd64 2.1.28+dfsg-10 [20.3 kB] Get:14 http://deb.debian.org/debian bookworm/main amd64 libsasl2-2 amd64 2.1.28+dfsg-10 [59.7 kB] Get:15 http://deb.debian.org/debian bookworm/main amd64 libldap-2.5-0 amd64 2.5.13+dfsg-5 [183 kB] Get:16 http://deb.debian.org/debian bookworm/main amd64 libnghttp2-14 amd64 1.52.0-1+deb12u2 [73.0 kB] Get:17 http://deb.debian.org/debian bookworm/main amd64 libpsl5 amd64 0.21.2-1 [58.7 kB] Get:18 http://deb.debian.org/debian bookworm/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2+b2 [60.8 kB] Get:19 http://deb.debian.org/debian bookworm/main amd64 libssh2-1 amd64 1.10.0-3+b1 [179 kB] Get:20 http://deb.debian.org/debian bookworm/main amd64 libcurl3-gnutls amd64 7.88.1-10+deb12u14 [386 kB] Get:21 http://deb.debian.org/debian bookworm/main amd64 libexpat1 amd64 2.5.0-1+deb12u2 [99.9 kB] Get:22 http://deb.debian.org/debian bookworm/main amd64 liberror-perl all 0.17029-2 [29.0 kB] Get:23 http://deb.debian.org/debian bookworm/main amd64 git-man all 1:2.39.5-0+deb12u3 [2053 kB] Get:24 http://deb.debian.org/debian bookworm/main amd64 git amd64 1:2.39.5-0+deb12u3 [7264 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 20.7 MB in 0s (67.8 MB/s) Selecting previously unselected package perl-modules-5.36. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 6099 files and directories currently installed.) Preparing to unpack .../00-perl-modules-5.36_5.36.0-7+deb12u3_all.deb ... Unpacking perl-modules-5.36 (5.36.0-7+deb12u3) ... Selecting previously unselected package libgdbm6:amd64. Preparing to unpack .../01-libgdbm6_1.23-3_amd64.deb ... Unpacking libgdbm6:amd64 (1.23-3) ... Selecting previously unselected package libgdbm-compat4:amd64. Preparing to unpack .../02-libgdbm-compat4_1.23-3_amd64.deb ... Unpacking libgdbm-compat4:amd64 (1.23-3) ... Selecting previously unselected package libperl5.36:amd64. Preparing to unpack .../03-libperl5.36_5.36.0-7+deb12u3_amd64.deb ... Unpacking libperl5.36:amd64 (5.36.0-7+deb12u3) ... Selecting previously unselected package perl. Preparing to unpack .../04-perl_5.36.0-7+deb12u3_amd64.deb ... Unpacking perl (5.36.0-7+deb12u3) ... Selecting previously unselected package libbrotli1:amd64. Preparing to unpack .../05-libbrotli1_1.0.9-2+b6_amd64.deb ... Unpacking libbrotli1:amd64 (1.0.9-2+b6) ... Selecting previously unselected package libkrb5support0:amd64. Preparing to unpack .../06-libkrb5support0_1.20.1-2+deb12u4_amd64.deb ... Unpacking libkrb5support0:amd64 (1.20.1-2+deb12u4) ... Selecting previously unselected package libk5crypto3:amd64. Preparing to unpack .../07-libk5crypto3_1.20.1-2+deb12u4_amd64.deb ... Unpacking libk5crypto3:amd64 (1.20.1-2+deb12u4) ... Selecting previously unselected package libkeyutils1:amd64. Preparing to unpack .../08-libkeyutils1_1.6.3-2_amd64.deb ... Unpacking libkeyutils1:amd64 (1.6.3-2) ... Selecting previously unselected package libssl3:amd64. Preparing to unpack .../09-libssl3_3.0.19-1~deb12u2_amd64.deb ... Unpacking libssl3:amd64 (3.0.19-1~deb12u2) ... Selecting previously unselected package libkrb5-3:amd64. Preparing to unpack .../10-libkrb5-3_1.20.1-2+deb12u4_amd64.deb ... Unpacking libkrb5-3:amd64 (1.20.1-2+deb12u4) ... Selecting previously unselected package libgssapi-krb5-2:amd64. Preparing to unpack .../11-libgssapi-krb5-2_1.20.1-2+deb12u4_amd64.deb ... Unpacking libgssapi-krb5-2:amd64 (1.20.1-2+deb12u4) ... Selecting previously unselected package libsasl2-modules-db:amd64. Preparing to unpack .../12-libsasl2-modules-db_2.1.28+dfsg-10_amd64.deb ... Unpacking libsasl2-modules-db:amd64 (2.1.28+dfsg-10) ... Selecting previously unselected package libsasl2-2:amd64. Preparing to unpack .../13-libsasl2-2_2.1.28+dfsg-10_amd64.deb ... Unpacking libsasl2-2:amd64 (2.1.28+dfsg-10) ... Selecting previously unselected package libldap-2.5-0:amd64. Preparing to unpack .../14-libldap-2.5-0_2.5.13+dfsg-5_amd64.deb ... Unpacking libldap-2.5-0:amd64 (2.5.13+dfsg-5) ... Selecting previously unselected package libnghttp2-14:amd64. Preparing to unpack .../15-libnghttp2-14_1.52.0-1+deb12u2_amd64.deb ... Unpacking libnghttp2-14:amd64 (1.52.0-1+deb12u2) ... Selecting previously unselected package libpsl5:amd64. Preparing to unpack .../16-libpsl5_0.21.2-1_amd64.deb ... Unpacking libpsl5:amd64 (0.21.2-1) ... Selecting previously unselected package librtmp1:amd64. Preparing to unpack .../17-librtmp1_2.4+20151223.gitfa8646d.1-2+b2_amd64.deb ... Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ... Selecting previously unselected package libssh2-1:amd64. Preparing to unpack .../18-libssh2-1_1.10.0-3+b1_amd64.deb ... Unpacking libssh2-1:amd64 (1.10.0-3+b1) ... Selecting previously unselected package libcurl3-gnutls:amd64. Preparing to unpack .../19-libcurl3-gnutls_7.88.1-10+deb12u14_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.88.1-10+deb12u14) ... Selecting previously unselected package libexpat1:amd64. Preparing to unpack .../20-libexpat1_2.5.0-1+deb12u2_amd64.deb ... Unpacking libexpat1:amd64 (2.5.0-1+deb12u2) ... Selecting previously unselected package liberror-perl. Preparing to unpack .../21-liberror-perl_0.17029-2_all.deb ... Unpacking liberror-perl (0.17029-2) ... Selecting previously unselected package git-man. Preparing to unpack .../22-git-man_1%3a2.39.5-0+deb12u3_all.deb ... Unpacking git-man (1:2.39.5-0+deb12u3) ... Selecting previously unselected package git. Preparing to unpack .../23-git_1%3a2.39.5-0+deb12u3_amd64.deb ... Unpacking git (1:2.39.5-0+deb12u3) ... Setting up libexpat1:amd64 (2.5.0-1+deb12u2) ... Setting up libkeyutils1:amd64 (1.6.3-2) ... Setting up libpsl5:amd64 (0.21.2-1) ... Setting up libbrotli1:amd64 (1.0.9-2+b6) ... Setting up libssl3:amd64 (3.0.19-1~deb12u2) ... Setting up libnghttp2-14:amd64 (1.52.0-1+deb12u2) ... Setting up libkrb5support0:amd64 (1.20.1-2+deb12u4) ... Setting up libsasl2-modules-db:amd64 (2.1.28+dfsg-10) ... Setting up perl-modules-5.36 (5.36.0-7+deb12u3) ... Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ... Setting up libk5crypto3:amd64 (1.20.1-2+deb12u4) ... Setting up libsasl2-2:amd64 (2.1.28+dfsg-10) ... Setting up git-man (1:2.39.5-0+deb12u3) ... Setting up libssh2-1:amd64 (1.10.0-3+b1) ... Setting up libkrb5-3:amd64 (1.20.1-2+deb12u4) ... Setting up libgdbm6:amd64 (1.23-3) ... Setting up libldap-2.5-0:amd64 (2.5.13+dfsg-5) ... Setting up libgssapi-krb5-2:amd64 (1.20.1-2+deb12u4) ... Setting up libgdbm-compat4:amd64 (1.23-3) ... Setting up libperl5.36:amd64 (5.36.0-7+deb12u3) ... Setting up libcurl3-gnutls:amd64 (7.88.1-10+deb12u14) ... Setting up perl (5.36.0-7+deb12u3) ... Setting up liberror-perl (0.17029-2) ... Setting up git (1:2.39.5-0+deb12u3) ... Processing triggers for libc-bin (2.36-9+deb12u13) ... (node:474) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated. (Use `node --trace-deprecation ...` to show where the warning was created) Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container step-build-container-build time="2026-05-08T16:42:20Z" level=warning msg="Flag --snapshotMode is deprecated. Use: --snapshot-mode" INFO[0000] Using dockerignore file: /workspace/source/.dockerignore INFO[0000] Retrieving image manifest node:25-slim INFO[0000] Retrieving image node:25-slim from registry index.docker.io INFO[0002] Built cross stage deps: map[] INFO[0002] Retrieving image manifest node:25-slim INFO[0002] Returning cached image manifest INFO[0002] Executing 0 build triggers INFO[0002] Building stage 'node:25-slim' [idx: '0', base-idx: '-1'] INFO[0002] Unpacking rootfs as cmd COPY . . requires it. INFO[0012] COPY . . INFO[0045] Taking snapshot of files... INFO[0073] CMD node_modules/sequelize-cli/lib/sequelize db:migrate && node index.js INFO[0073] Pushing image to 417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-41-SNAPSHOT INFO[0075] Pushed 417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny@sha256:a10736a644117d1254650160c9b423875d7cdc5d49613209b193dee892b72119 Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container step-promote-jx-preview found PullRequest https://github.com/greencapitaltrade/destiny/pull/1100 using ingress sub domain -jx-greencapitaltrade-destiny-pr-1100. upserted preview jx-greencapitaltrade-destiny-pr-1100 passing env vars into helmfile: map[string]string{"APP_NAME":"destiny", "DOCKER_REGISTRY":"417755753340.dkr.ecr.ap-south-1.amazonaws.com", "DOCKER_REGISTRY_ORG":"greencapitaltrade", "PREVIEW_NAMESPACE":"jx-greencapitaltrade-destiny-pr-1100", "VERSION":"0.0.0-PR-1100-41-SNAPSHOT"} jx-greencapitaltrade-destiny-pr-1100: LAST SEEN TYPE REASON OBJECT MESSAGE jx-greencapitaltrade-destiny-pr-1100: 96s Normal Scheduled pod/jx-verify-gc-jobs-2zmdh-x26jh Successfully assigned jx-greencapitaltrade-destiny-pr-1100/jx-verify-gc-jobs-2zmdh-x26jh to ip-10-0-2-240.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 95s Normal Pulled pod/jx-verify-gc-jobs-2zmdh-x26jh Container image "ghcr.io/jenkins-x/jx-verify:0.3.18" already present on machine jx-greencapitaltrade-destiny-pr-1100: 95s Normal Created pod/jx-verify-gc-jobs-2zmdh-x26jh Created container: job jx-greencapitaltrade-destiny-pr-1100: 95s Normal Started pod/jx-verify-gc-jobs-2zmdh-x26jh Started container job jx-greencapitaltrade-destiny-pr-1100: 96s Normal SuccessfulCreate job/jx-verify-gc-jobs-2zmdh Created pod: jx-verify-gc-jobs-2zmdh-x26jh jx-greencapitaltrade-destiny-pr-1100: 92s Normal Completed job/jx-verify-gc-jobs-2zmdh Job completed jx-greencapitaltrade-destiny-pr-1100: 51m Normal Scheduled pod/jx-verify-gc-jobs-wz4o5-9mnh6 Successfully assigned jx-greencapitaltrade-destiny-pr-1100/jx-verify-gc-jobs-wz4o5-9mnh6 to ip-10-0-2-161.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 51m Normal Pulled pod/jx-verify-gc-jobs-wz4o5-9mnh6 Container image "ghcr.io/jenkins-x/jx-verify:0.3.18" already present on machine jx-greencapitaltrade-destiny-pr-1100: 51m Normal Created pod/jx-verify-gc-jobs-wz4o5-9mnh6 Created container: job jx-greencapitaltrade-destiny-pr-1100: 51m Normal Started pod/jx-verify-gc-jobs-wz4o5-9mnh6 Started container job jx-greencapitaltrade-destiny-pr-1100: 51m Normal SuccessfulCreate job/jx-verify-gc-jobs-wz4o5 Created pod: jx-verify-gc-jobs-wz4o5-9mnh6 jx-greencapitaltrade-destiny-pr-1100: 51m Normal Completed job/jx-verify-gc-jobs-wz4o5 Job completed jx-greencapitaltrade-destiny-pr-1100: 21m Normal Scheduled pod/jx-verify-gc-jobs-y29s0-qh6vg Successfully assigned jx-greencapitaltrade-destiny-pr-1100/jx-verify-gc-jobs-y29s0-qh6vg to ip-10-0-3-98.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 21m Normal Pulling pod/jx-verify-gc-jobs-y29s0-qh6vg Pulling image "ghcr.io/jenkins-x/jx-verify:0.3.18" jx-greencapitaltrade-destiny-pr-1100: 21m Normal Pulled pod/jx-verify-gc-jobs-y29s0-qh6vg Successfully pulled image "ghcr.io/jenkins-x/jx-verify:0.3.18" in 5.838s (5.838s including waiting). Image size: 52218248 bytes. jx-greencapitaltrade-destiny-pr-1100: 21m Normal Created pod/jx-verify-gc-jobs-y29s0-qh6vg Created container: job jx-greencapitaltrade-destiny-pr-1100: 21m Normal Started pod/jx-verify-gc-jobs-y29s0-qh6vg Started container job jx-greencapitaltrade-destiny-pr-1100: 21m Normal SuccessfulCreate job/jx-verify-gc-jobs-y29s0 Created pod: jx-verify-gc-jobs-y29s0-qh6vg jx-greencapitaltrade-destiny-pr-1100: 21m Normal Completed job/jx-verify-gc-jobs-y29s0 Job completed jx-greencapitaltrade-destiny-pr-1100: 51m Normal Scheduled pod/postgresql-0 Successfully assigned jx-greencapitaltrade-destiny-pr-1100/postgresql-0 to ip-10-0-3-208.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 84s Warning FailedToRetrieveImagePullSecret pod/postgresql-0 Unable to retrieve some image pull secrets (nexus-docker); attempting to pull the image may not succeed. jx-greencapitaltrade-destiny-pr-1100: 51m Normal Pulled pod/postgresql-0 Container image "docker-cache.gc-t.in/bitnami/postgresql:latest" already present on machine jx-greencapitaltrade-destiny-pr-1100: 51m Normal Created pod/postgresql-0 Created container: postgresql jx-greencapitaltrade-destiny-pr-1100: 51m Normal Started pod/postgresql-0 Started container postgresql jx-greencapitaltrade-destiny-pr-1100: 51m Normal SuccessfulCreate statefulset/postgresql create Pod postgresql-0 in StatefulSet postgresql successful jx-greencapitaltrade-destiny-pr-1100: 21m Normal Scheduled pod/preview-destiny-5b4c898548-ntq59 Successfully assigned jx-greencapitaltrade-destiny-pr-1100/preview-destiny-5b4c898548-ntq59 to ip-10-0-3-208.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 21m Normal Pulling pod/preview-destiny-5b4c898548-ntq59 Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-39-SNAPSHOT" jx-greencapitaltrade-destiny-pr-1100: 21m Normal Pulled pod/preview-destiny-5b4c898548-ntq59 Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-39-SNAPSHOT" in 4.001s (4.001s including waiting). Image size: 160028885 bytes. jx-greencapitaltrade-destiny-pr-1100: 21m Normal Created pod/preview-destiny-5b4c898548-ntq59 Created container: destiny jx-greencapitaltrade-destiny-pr-1100: 21m Normal Started pod/preview-destiny-5b4c898548-ntq59 Started container destiny jx-greencapitaltrade-destiny-pr-1100: 21m Warning Unhealthy pod/preview-destiny-5b4c898548-ntq59 Readiness probe failed: Get "http://10.0.3.180:8080/_healthz": dial tcp 10.0.3.180:8080: connect: connection refused jx-greencapitaltrade-destiny-pr-1100: 92s Normal Killing pod/preview-destiny-5b4c898548-ntq59 Stopping container destiny jx-greencapitaltrade-destiny-pr-1100: 21m Normal SuccessfulCreate replicaset/preview-destiny-5b4c898548 Created pod: preview-destiny-5b4c898548-ntq59 jx-greencapitaltrade-destiny-pr-1100: 92s Normal SuccessfulDelete replicaset/preview-destiny-5b4c898548 Deleted pod: preview-destiny-5b4c898548-ntq59 jx-greencapitaltrade-destiny-pr-1100: 92s Normal Scheduled pod/preview-destiny-7b86cf77c6-w7w6j Successfully assigned jx-greencapitaltrade-destiny-pr-1100/preview-destiny-7b86cf77c6-w7w6j to ip-10-0-1-19.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 91s Normal Pulling pod/preview-destiny-7b86cf77c6-w7w6j Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-40-SNAPSHOT" jx-greencapitaltrade-destiny-pr-1100: 86s Normal Pulled pod/preview-destiny-7b86cf77c6-w7w6j Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-40-SNAPSHOT" in 5.261s (5.261s including waiting). Image size: 160026869 bytes. jx-greencapitaltrade-destiny-pr-1100: 86s Normal Created pod/preview-destiny-7b86cf77c6-w7w6j Created container: destiny jx-greencapitaltrade-destiny-pr-1100: 86s Normal Started pod/preview-destiny-7b86cf77c6-w7w6j Started container destiny jx-greencapitaltrade-destiny-pr-1100: 52s Warning Unhealthy pod/preview-destiny-7b86cf77c6-w7w6j Readiness probe failed: Get "http://10.0.1.146:8080/_healthz": dial tcp 10.0.1.146:8080: connect: connection refused jx-greencapitaltrade-destiny-pr-1100: 92s Normal SuccessfulCreate replicaset/preview-destiny-7b86cf77c6 Created pod: preview-destiny-7b86cf77c6-w7w6j jx-greencapitaltrade-destiny-pr-1100: 22m Normal Scheduled pod/preview-destiny-86f7899cdb-mr4nw Successfully assigned jx-greencapitaltrade-destiny-pr-1100/preview-destiny-86f7899cdb-mr4nw to ip-10-0-3-208.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 21m Normal Pulling pod/preview-destiny-86f7899cdb-mr4nw Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-37-SNAPSHOT" jx-greencapitaltrade-destiny-pr-1100: 22m Normal Pulled pod/preview-destiny-86f7899cdb-mr4nw Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-37-SNAPSHOT" in 4.445s (4.445s including waiting). Image size: 160005817 bytes. jx-greencapitaltrade-destiny-pr-1100: 22m Normal Created pod/preview-destiny-86f7899cdb-mr4nw Created container: destiny jx-greencapitaltrade-destiny-pr-1100: 22m Normal Started pod/preview-destiny-86f7899cdb-mr4nw Started container destiny jx-greencapitaltrade-destiny-pr-1100: 22m Warning Unhealthy pod/preview-destiny-86f7899cdb-mr4nw Readiness probe failed: Get "http://10.0.3.199:8080/_healthz": dial tcp 10.0.3.199:8080: connect: connection refused jx-greencapitaltrade-destiny-pr-1100: 22m Normal Pulled pod/preview-destiny-86f7899cdb-mr4nw Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-37-SNAPSHOT" in 164ms (164ms including waiting). Image size: 160005817 bytes. jx-greencapitaltrade-destiny-pr-1100: 21m Warning BackOff pod/preview-destiny-86f7899cdb-mr4nw Back-off restarting failed container destiny in pod preview-destiny-86f7899cdb-mr4nw_jx-greencapitaltrade-destiny-pr-1100(a787d003-3160-4d10-92ad-c90b8c3f97a4) jx-greencapitaltrade-destiny-pr-1100: 22m Normal Pulled pod/preview-destiny-86f7899cdb-mr4nw Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-37-SNAPSHOT" in 81ms (81ms including waiting). Image size: 160005817 bytes. jx-greencapitaltrade-destiny-pr-1100: 51m Normal Scheduled pod/preview-destiny-86f7899cdb-rbv7m Successfully assigned jx-greencapitaltrade-destiny-pr-1100/preview-destiny-86f7899cdb-rbv7m to ip-10-0-2-224.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 50m Normal Pulling pod/preview-destiny-86f7899cdb-rbv7m Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-37-SNAPSHOT" jx-greencapitaltrade-destiny-pr-1100: 51m Normal Pulled pod/preview-destiny-86f7899cdb-rbv7m Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-37-SNAPSHOT" in 5.961s (5.961s including waiting). Image size: 160005817 bytes. jx-greencapitaltrade-destiny-pr-1100: 50m Normal Created pod/preview-destiny-86f7899cdb-rbv7m Created container: destiny jx-greencapitaltrade-destiny-pr-1100: 50m Normal Started pod/preview-destiny-86f7899cdb-rbv7m Started container destiny jx-greencapitaltrade-destiny-pr-1100: 50m Warning Unhealthy pod/preview-destiny-86f7899cdb-rbv7m Readiness probe failed: Get "http://10.0.2.149:8080/_healthz": dial tcp 10.0.2.149:8080: connect: connection refused jx-greencapitaltrade-destiny-pr-1100: 51m Normal Pulled pod/preview-destiny-86f7899cdb-rbv7m Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-37-SNAPSHOT" in 71ms (71ms including waiting). Image size: 160005817 bytes. jx-greencapitaltrade-destiny-pr-1100: 26m Warning BackOff pod/preview-destiny-86f7899cdb-rbv7m Back-off restarting failed container destiny in pod preview-destiny-86f7899cdb-rbv7m_jx-greencapitaltrade-destiny-pr-1100(3a686c2d-e98b-4b44-9008-6266a721255d) jx-greencapitaltrade-destiny-pr-1100: 50m Normal Pulled pod/preview-destiny-86f7899cdb-rbv7m Successfully pulled image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-37-SNAPSHOT" in 81ms (81ms including waiting). Image size: 160005817 bytes. jx-greencapitaltrade-destiny-pr-1100: 51m Normal SuccessfulCreate replicaset/preview-destiny-86f7899cdb Created pod: preview-destiny-86f7899cdb-rbv7m jx-greencapitaltrade-destiny-pr-1100: 22m Normal SuccessfulCreate replicaset/preview-destiny-86f7899cdb Created pod: preview-destiny-86f7899cdb-mr4nw jx-greencapitaltrade-destiny-pr-1100: 21m Normal SuccessfulDelete replicaset/preview-destiny-86f7899cdb Deleted pod: preview-destiny-86f7899cdb-mr4nw jx-greencapitaltrade-destiny-pr-1100: 51m Normal ScalingReplicaSet deployment/preview-destiny Scaled up replica set preview-destiny-86f7899cdb to 1 jx-greencapitaltrade-destiny-pr-1100: 21m Normal ScalingReplicaSet deployment/preview-destiny Scaled up replica set preview-destiny-5b4c898548 to 1 jx-greencapitaltrade-destiny-pr-1100: 21m Normal ScalingReplicaSet deployment/preview-destiny Scaled down replica set preview-destiny-86f7899cdb to 0 from 1 jx-greencapitaltrade-destiny-pr-1100: 92s Normal ScalingReplicaSet deployment/preview-destiny Scaled up replica set preview-destiny-7b86cf77c6 to 1 jx-greencapitaltrade-destiny-pr-1100: 92s Normal ScalingReplicaSet deployment/preview-destiny Scaled down replica set preview-destiny-5b4c898548 to 0 from 1 jx-greencapitaltrade-destiny-pr-1100: 51m Normal Scheduled pod/redis-master-0 Successfully assigned jx-greencapitaltrade-destiny-pr-1100/redis-master-0 to ip-10-0-2-224.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 51s Warning FailedToRetrieveImagePullSecret pod/redis-master-0 Unable to retrieve some image pull secrets (nexus-docker); attempting to pull the image may not succeed. jx-greencapitaltrade-destiny-pr-1100: 51m Normal Pulling pod/redis-master-0 Pulling image "docker-cache.gc-t.in/bitnami/redis:latest" jx-greencapitaltrade-destiny-pr-1100: 51m Normal Pulled pod/redis-master-0 Successfully pulled image "docker-cache.gc-t.in/bitnami/redis:latest" in 1.267s (1.267s including waiting). Image size: 49793944 bytes. jx-greencapitaltrade-destiny-pr-1100: 51m Normal Created pod/redis-master-0 Created container: redis jx-greencapitaltrade-destiny-pr-1100: 51m Normal Started pod/redis-master-0 Started container redis jx-greencapitaltrade-destiny-pr-1100: 51m Normal SuccessfulCreate statefulset/redis-master create Pod redis-master-0 in StatefulSet redis-master successful jx-greencapitaltrade-destiny-pr-1100: 0s Normal SuccessfulCreate job/jx-verify-gc-jobs-jknlk Created pod: jx-verify-gc-jobs-jknlk-p98pm jx-greencapitaltrade-destiny-pr-1100: 0s Normal Scheduled pod/jx-verify-gc-jobs-jknlk-p98pm Successfully assigned jx-greencapitaltrade-destiny-pr-1100/jx-verify-gc-jobs-jknlk-p98pm to ip-10-0-2-240.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 0s Normal Pulled pod/jx-verify-gc-jobs-jknlk-p98pm Container image "ghcr.io/jenkins-x/jx-verify:0.3.18" already present on machine jx-greencapitaltrade-destiny-pr-1100: 0s Normal Created pod/jx-verify-gc-jobs-jknlk-p98pm Created container: job jx-greencapitaltrade-destiny-pr-1100: 0s Normal Started pod/jx-verify-gc-jobs-jknlk-p98pm Started container job jx-greencapitaltrade-destiny-pr-1100: 0s Normal ScalingReplicaSet deployment/preview-destiny Scaled up replica set preview-destiny-cb9ccc489 to 1 jx-greencapitaltrade-destiny-pr-1100: 0s Normal Scheduled pod/preview-destiny-cb9ccc489-942vg Successfully assigned jx-greencapitaltrade-destiny-pr-1100/preview-destiny-cb9ccc489-942vg to ip-10-0-1-19.ap-south-1.compute.internal jx-greencapitaltrade-destiny-pr-1100: 0s Normal SuccessfulCreate replicaset/preview-destiny-cb9ccc489 Created pod: preview-destiny-cb9ccc489-942vg jx-greencapitaltrade-destiny-pr-1100: 0s Normal Completed job/jx-verify-gc-jobs-jknlk Job completed jx-greencapitaltrade-destiny-pr-1100: 0s Normal ScalingReplicaSet deployment/preview-destiny Scaled down replica set preview-destiny-7b86cf77c6 to 0 from 1 jx-greencapitaltrade-destiny-pr-1100: 0s Normal Killing pod/preview-destiny-7b86cf77c6-w7w6j Stopping container destiny jx-greencapitaltrade-destiny-pr-1100: 0s Normal SuccessfulDelete replicaset/preview-destiny-7b86cf77c6 Deleted pod: preview-destiny-7b86cf77c6-w7w6j jx-greencapitaltrade-destiny-pr-1100: 0s Normal Pulling pod/preview-destiny-cb9ccc489-942vg Pulling image "417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/destiny:0.0.0-PR-1100-41-SNAPSHOT" killed the kubectl event watch command found helm preview release jx-verify in namespace jx-greencapitaltrade-destiny-pr-1100 preview jx-greencapitaltrade-destiny-pr-1100 is now running at http://destiny-pr1100.gc-t.in updated preview jx-greencapitaltrade-destiny-pr-1100 with URL http://destiny-pr1100.gc-t.in Updated PipelineActivity greencapitaltrade-destiny-pr-1100-41 which has status Pending wrote preview environment variables to .jx/variables.sh commented on pull request #1100 on repository greencapitaltrade/destiny Showing logs for build greencapitaltrade/destiny/pr-1100 #41 stage from-build-pack and container step-build-run-e2e Waiting for preview deployment to roll out... Waiting for deployment "preview-destiny" rollout to finish: 0 of 1 updated replicas are available... deployment "preview-destiny" successfully rolled out PASS tests/unit/statement.test.js (16.604 s) ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_users" ("id","application_id","user_id","user_type","applicant_type","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW(),$6) RETURNING "id","application_id","user_id","user_type","applicant_type","status","uurn","created_at","updated_at","deleted_at","application_id"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO statements (application_id, product, status, vua, external_handle, external_id, created_at, updated_at) VALUES ($1, 'bankaccount', 'approved', '9999900000@onemoney', 'handle-1', 'ext-1', NOW(), NOW()), ($1, 'bankaccount', 'pending', '9999900000@onemoney', 'handle-2', NULL, NOW(), NOW()) at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "bank_statements" ("uuid","application_id","file_id","status","request_id","source","txn_id","raw_data","salary_detected","created_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,NOW()) RETURNING "uuid","application_id","account_number","bank","file_id","status","reject_reason","score","request_id","source","txn_id","raw_data","salary_detected","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product", "created_at", "updated_at" FROM "statements" AS "statements" WHERE ("statements"."deleted_at" IS NULL AND "statements"."application_id" = 1) ORDER BY "statements"."created_at" DESC; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product", "created_at", "updated_at" FROM "statements" AS "statements" WHERE ("statements"."deleted_at" IS NULL AND "statements"."application_id" = 1); at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "uuid", "bank", "status", "salary_detected", "score", "source", "created_at" FROM "bank_statements" AS "bank_statements" WHERE "bank_statements"."application_id" = 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status" FROM "statements" AS "statements" WHERE ("statements"."deleted_at" IS NULL AND "statements"."application_id" = 3); at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "uuid", "status" FROM "bank_statements" AS "bank_statements" WHERE "bank_statements"."application_id" = 3; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "applications" WHERE "id" = 3 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "uuid", "application_id", "account_number", "bank", "file_id", "status", "reject_reason", "score", "request_id", "source", "txn_id", "raw_data", "salary_detected", "created_at" FROM "bank_statements" AS "bank_statements" WHERE "bank_statements"."application_id" = 1 LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "bank_statements" WHERE "application_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "statements" WHERE "application_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_users" WHERE "application_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "applications" WHERE "id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) FAIL tests/unit/agreement.test.js (17.59 s) ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreement_templates" ("id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreements" ("id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data") VALUES (DEFAULT,$1,$2,NOW(),NOW(),$3,$4,$5,$6,$7,$8,$9) RETURNING "id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "lender_id", "content", "version", "active", "created_by", "created_at", "updated_at" FROM "agreement_templates" AS "agreement_templates" WHERE (("agreement_templates"."product_id" = 999 AND "agreement_templates"."lender_id" = 999) OR ("agreement_templates"."product_id" = 999 AND "agreement_templates"."lender_id" IS NULL) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" = 999) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" IS NULL)) AND "agreement_templates"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL AND lender_id IS NOT NULL THEN 0 WHEN product_id IS NOT NULL THEN 1 WHEN lender_id IS NOT NULL THEN 2 ELSE 3 END ASC, "agreement_templates"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreement_templates" ("id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "lender_id", "content", "version", "active", "created_by", "created_at", "updated_at" FROM "agreement_templates" AS "agreement_templates" WHERE (("agreement_templates"."product_id" = 1 AND "agreement_templates"."lender_id" = 999) OR ("agreement_templates"."product_id" = 1 AND "agreement_templates"."lender_id" IS NULL) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" = 999) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" IS NULL)) AND "agreement_templates"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL AND lender_id IS NOT NULL THEN 0 WHEN product_id IS NOT NULL THEN 1 WHEN lender_id IS NOT NULL THEN 2 ELSE 3 END ASC, "agreement_templates"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreements" ("id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data") VALUES (DEFAULT,$1,$2,NOW(),NOW(),$3,$4,$5,$6,$7,$8,$9) RETURNING "id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "lender_id", "content", "version", "active", "created_by", "created_at", "updated_at" FROM "agreement_templates" AS "agreement_templates" WHERE (("agreement_templates"."product_id" = 1 AND "agreement_templates"."lender_id" = 10) OR ("agreement_templates"."product_id" = 1 AND "agreement_templates"."lender_id" IS NULL) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" = 10) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" IS NULL)) AND "agreement_templates"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL AND lender_id IS NOT NULL THEN 0 WHEN product_id IS NOT NULL THEN 1 WHEN lender_id IS NOT NULL THEN 2 ELSE 3 END ASC, "agreement_templates"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "agreement_templates" SET "active"=$1 WHERE "active" = $2 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreements" ("id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data") VALUES (DEFAULT,$1,$2,NOW(),NOW(),$3,$4,$5,$6,$7,$8,$9) RETURNING "id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "lender_id", "content", "version", "active", "created_by", "created_at", "updated_at" FROM "agreement_templates" AS "agreement_templates" WHERE (("agreement_templates"."product_id" = 99 AND "agreement_templates"."lender_id" = 99) OR ("agreement_templates"."product_id" = 99 AND "agreement_templates"."lender_id" IS NULL) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" = 99) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" IS NULL)) AND "agreement_templates"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL AND lender_id IS NOT NULL THEN 0 WHEN product_id IS NOT NULL THEN 1 WHEN lender_id IS NOT NULL THEN 2 ELSE 3 END ASC, "agreement_templates"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "agreement_templates" SET "active"=$1 WHERE "created_by" = $2 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) ● Agreement with DB templates › AgreementTemplate.findBestMatch › returns default template when no specific match expect(received).toEqual(expected) // deep equality Expected: "Test Default Template" Received: "Default Term Loan Agreement"   90 | const template = await AgreementTemplate.findBestMatch(999, 999);  91 | expect(template).not.toBeNull(); > 92 | expect(template.name).toEqual('Test Default Template');  | ^  93 | });  94 |  95 | it('prefers product-specific template over default', async () => { at Object.toEqual (tests/unit/agreement.test.js:92:29) ● Agreement with DB templates › preparePdf › generates PDF from DB template with KFS content expect(received).toContain(expected) // indexOf Expected substring: "Key Fact Statement" Received string: " # Product 1 specific"   158 | const [html] = htmlPdf.create.mock.calls[0];  159 | > 160 | expect(html).toContain('Key Fact Statement');  | ^  161 | expect(html).toContain('Test NBFC Ltd');  162 | expect(html).toContain('Amit Kumar');  163 | expect(html).toContain('ABCPK1234A'); at Object.toContain (tests/unit/agreement.test.js:160:20) FAIL tests/unit/flow_engine.test.js (20.203 s) ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "flows" ("id","name","product_id","active","definition","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW()) RETURNING "id","name","product_id","organization_id","active","definition","version","created_by","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 4; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 4 LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE ("flows"."product_id" = 1 OR "flows"."product_id" IS NULL) AND "flows"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL THEN 0 ELSE 1 END ASC, "flows"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","created_at","updated_at") VALUES (DEFAULT,4,1,'step_pan','kyc_pan','active','{"execution_mode":"blocking"}',NULL,0,'2026-05-08 22:15:22.092 +05:30',NOW(),NOW()),(DEFAULT,4,1,'step_credit','credit_check','pending','{"execution_mode":"async"}',NULL,0,NULL,NOW(),NOW()),(DEFAULT,4,1,'step_agreement','agreement','pending','{"execution_mode":"blocking"}',NULL,0,NULL,NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 4 ORDER BY "application_flow_steps"."created_at" ASC; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 4 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 5; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 5 LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE ("flows"."product_id" = 1 OR "flows"."product_id" IS NULL) AND "flows"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL THEN 0 ELSE 1 END ASC, "flows"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","created_at","updated_at") VALUES (DEFAULT,5,1,'step_pan','kyc_pan','active','{"execution_mode":"blocking"}',NULL,0,'2026-05-08 22:15:22.485 +05:30',NOW(),NOW()),(DEFAULT,5,1,'step_credit','credit_check','pending','{"execution_mode":"async"}',NULL,0,NULL,NOW(),NOW()),(DEFAULT,5,1,'step_agreement','agreement','pending','{"execution_mode":"blocking"}',NULL,0,NULL,NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 5; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 5 LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 5; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 5 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 6; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 6 LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE ("flows"."product_id" = 1 OR "flows"."product_id" IS NULL) AND "flows"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL THEN 0 ELSE 1 END ASC, "flows"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","created_at","updated_at") VALUES (DEFAULT,6,1,'step_pan','kyc_pan','active','{"execution_mode":"blocking"}',NULL,0,'2026-05-08 22:15:22.688 +05:30',NOW(),NOW()),(DEFAULT,6,1,'step_credit','credit_check','pending','{"execution_mode":"async"}',NULL,0,NULL,NOW(),NOW()),(DEFAULT,6,1,'step_agreement','agreement','pending','{"execution_mode":"blocking"}',NULL,0,NULL,NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b4f1106-4e8d-4e84-a288-f8f225170d7b): START TRANSACTION; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b4f1106-4e8d-4e84-a288-f8f225170d7b): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 6 AND "application_flow_steps"."step_type" = 'kyc_pan' AND "application_flow_steps"."status" = 'active' LIMIT 1 FOR UPDATE; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b4f1106-4e8d-4e84-a288-f8f225170d7b): UPDATE "application_flow_steps" SET "status"=$1,"result"=$2,"completed_at"=$3,"updated_at"=$4 WHERE "id" = $5 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b4f1106-4e8d-4e84-a288-f8f225170d7b): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE "flows"."id" = 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b4f1106-4e8d-4e84-a288-f8f225170d7b): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 6; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b4f1106-4e8d-4e84-a288-f8f225170d7b): UPDATE "application_flow_steps" SET "status"=$1,"started_at"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b4f1106-4e8d-4e84-a288-f8f225170d7b): UPDATE "application_flow_steps" SET "attempts"=$1,"updated_at"=$2 WHERE "id" = $3 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b4f1106-4e8d-4e84-a288-f8f225170d7b): COMMIT; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "score", "encrypted_report", "report_nonce", "report_auth_tag", "status", "status_msg", "score_seen", "pull_type", "created_at", "updated_at", "deleted_at" FROM "credit_scores" AS "credit_scores" WHERE "credit_scores"."application_id" = 6 AND "credit_scores"."pull_type" = 'soft' AND "credit_scores"."status" = 'completed' LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "credit_scores" ("id","application_id","encrypted_report","report_nonce","report_auth_tag","score_seen","pull_type","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,NOW(),NOW(),$7) RETURNING "id","application_id","score","encrypted_report","report_nonce","report_auth_tag","status","status_msg","score_seen","pull_type","created_at","updated_at","deleted_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 6 ORDER BY "application_flow_steps"."created_at" ASC; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 6 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 7; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 7 LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE ("flows"."product_id" = 1 OR "flows"."product_id" IS NULL) AND "flows"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL THEN 0 ELSE 1 END ASC, "flows"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","created_at","updated_at") VALUES (DEFAULT,7,1,'step_pan','kyc_pan','active','{"execution_mode":"blocking"}',NULL,0,'2026-05-08 22:15:23.188 +05:30',NOW(),NOW()),(DEFAULT,7,1,'step_credit','credit_check','pending','{"execution_mode":"async"}',NULL,0,NULL,NOW(),NOW()),(DEFAULT,7,1,'step_agreement','agreement','pending','{"execution_mode":"blocking"}',NULL,0,NULL,NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dd60965f-56a1-43a1-a4d3-37650ea6ff65): START TRANSACTION; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dd60965f-56a1-43a1-a4d3-37650ea6ff65): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 7 AND "application_flow_steps"."step_type" = 'kyc_pan' AND "application_flow_steps"."status" = 'active' LIMIT 1 FOR UPDATE; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dd60965f-56a1-43a1-a4d3-37650ea6ff65): UPDATE "application_flow_steps" SET "status"=$1,"result"=$2,"completed_at"=$3,"updated_at"=$4 WHERE "id" = $5 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dd60965f-56a1-43a1-a4d3-37650ea6ff65): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE "flows"."id" = 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dd60965f-56a1-43a1-a4d3-37650ea6ff65): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 7; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dd60965f-56a1-43a1-a4d3-37650ea6ff65): UPDATE "application_flow_steps" SET "status"=$1,"started_at"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dd60965f-56a1-43a1-a4d3-37650ea6ff65): UPDATE "application_flow_steps" SET "attempts"=$1,"updated_at"=$2 WHERE "id" = $3 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dd60965f-56a1-43a1-a4d3-37650ea6ff65): COMMIT; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "score", "encrypted_report", "report_nonce", "report_auth_tag", "status", "status_msg", "score_seen", "pull_type", "created_at", "updated_at", "deleted_at" FROM "credit_scores" AS "credit_scores" WHERE "credit_scores"."application_id" = 7 AND "credit_scores"."pull_type" = 'soft' AND "credit_scores"."status" = 'completed' LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "credit_scores" ("id","application_id","encrypted_report","report_nonce","report_auth_tag","score_seen","pull_type","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,NOW(),NOW(),$7) RETURNING "id","application_id","score","encrypted_report","report_nonce","report_auth_tag","status","status_msg","score_seen","pull_type","created_at","updated_at","deleted_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1214bbe7-6743-4f3a-8c90-a95641f6f5e7): START TRANSACTION; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1214bbe7-6743-4f3a-8c90-a95641f6f5e7): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 7 AND "application_flow_steps"."step_type" = 'credit_check' AND "application_flow_steps"."status" = 'active' LIMIT 1 FOR UPDATE; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1214bbe7-6743-4f3a-8c90-a95641f6f5e7): UPDATE "application_flow_steps" SET "status"=$1,"result"=$2,"completed_at"=$3,"updated_at"=$4 WHERE "id" = $5 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1214bbe7-6743-4f3a-8c90-a95641f6f5e7): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE "flows"."id" = 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1214bbe7-6743-4f3a-8c90-a95641f6f5e7): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 7; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1214bbe7-6743-4f3a-8c90-a95641f6f5e7): UPDATE "application_flow_steps" SET "status"=$1,"started_at"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1214bbe7-6743-4f3a-8c90-a95641f6f5e7): COMMIT; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0a86bf3-a320-4022-ab7a-e64b292fcd99): START TRANSACTION; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0a86bf3-a320-4022-ab7a-e64b292fcd99): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 7 AND "application_flow_steps"."step_type" = 'agreement' AND "application_flow_steps"."status" = 'active' LIMIT 1 FOR UPDATE; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0a86bf3-a320-4022-ab7a-e64b292fcd99): UPDATE "application_flow_steps" SET "status"=$1,"result"=$2,"completed_at"=$3,"updated_at"=$4 WHERE "id" = $5 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0a86bf3-a320-4022-ab7a-e64b292fcd99): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE "flows"."id" = 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0a86bf3-a320-4022-ab7a-e64b292fcd99): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 7; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0a86bf3-a320-4022-ab7a-e64b292fcd99): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 7; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0a86bf3-a320-4022-ab7a-e64b292fcd99): UPDATE "applications" SET "status"=$1 WHERE "id" = $2 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0a86bf3-a320-4022-ab7a-e64b292fcd99): INSERT INTO "application_status_logs" ("id","application_id","status","created_at") VALUES (DEFAULT,$1,$2,NOW()) RETURNING "id","application_id","status","admin_user","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0a86bf3-a320-4022-ab7a-e64b292fcd99): COMMIT; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 7; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 7 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "flows" ("id","name","product_id","active","definition","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW()) RETURNING "id","name","product_id","organization_id","active","definition","version","created_by","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 9; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 9 LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE ("flows"."product_id" = 999 OR "flows"."product_id" IS NULL) AND "flows"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL THEN 0 ELSE 1 END ASC, "flows"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","created_at","updated_at") VALUES (DEFAULT,9,2,'step_bl','blacklist','active','{"on_failure":"reject"}',NULL,0,'2026-05-08 22:15:23.789 +05:30',NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fd7ec132-d20b-4e8f-8210-4dd8ec2db059): START TRANSACTION; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fd7ec132-d20b-4e8f-8210-4dd8ec2db059): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 9 AND "application_flow_steps"."step_type" = 'blacklist' AND "application_flow_steps"."status" = 'active' LIMIT 1 FOR UPDATE; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fd7ec132-d20b-4e8f-8210-4dd8ec2db059): UPDATE "application_flow_steps" SET "status"=$1,"result"=$2,"completed_at"=$3,"updated_at"=$4 WHERE "id" = $5 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fd7ec132-d20b-4e8f-8210-4dd8ec2db059): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 9; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fd7ec132-d20b-4e8f-8210-4dd8ec2db059): UPDATE "applications" SET "status"=$1 WHERE "id" = $2 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fd7ec132-d20b-4e8f-8210-4dd8ec2db059): INSERT INTO "application_status_logs" ("id","application_id","status","created_at") VALUES (DEFAULT,$1,$2,NOW()) RETURNING "id","application_id","status","admin_user","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fd7ec132-d20b-4e8f-8210-4dd8ec2db059): COMMIT; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 9; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 9 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "flows" WHERE "id" = 2 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 8 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 10; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 10 LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE ("flows"."product_id" = 1 OR "flows"."product_id" IS NULL) AND "flows"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL THEN 0 ELSE 1 END ASC, "flows"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","created_at","updated_at") VALUES (DEFAULT,10,1,'step_pan','kyc_pan','active','{"execution_mode":"blocking"}',NULL,0,'2026-05-08 22:15:24.094 +05:30',NOW(),NOW()),(DEFAULT,10,1,'step_credit','credit_check','pending','{"execution_mode":"async"}',NULL,0,NULL,NOW(),NOW()),(DEFAULT,10,1,'step_agreement','agreement','pending','{"execution_mode":"blocking"}',NULL,0,NULL,NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e3bdf52-bb79-4a1a-a4a1-7ff0c7b68088): START TRANSACTION; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e3bdf52-bb79-4a1a-a4a1-7ff0c7b68088): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 10 AND "application_flow_steps"."step_type" = 'kyc_pan' AND "application_flow_steps"."status" = 'active' LIMIT 1 FOR UPDATE; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e3bdf52-bb79-4a1a-a4a1-7ff0c7b68088): UPDATE "application_flow_steps" SET "status"=$1,"result"=$2,"completed_at"=$3,"updated_at"=$4 WHERE "id" = $5 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e3bdf52-bb79-4a1a-a4a1-7ff0c7b68088): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE "flows"."id" = 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e3bdf52-bb79-4a1a-a4a1-7ff0c7b68088): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 10; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e3bdf52-bb79-4a1a-a4a1-7ff0c7b68088): UPDATE "application_flow_steps" SET "status"=$1,"started_at"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e3bdf52-bb79-4a1a-a4a1-7ff0c7b68088): UPDATE "application_flow_steps" SET "attempts"=$1,"updated_at"=$2 WHERE "id" = $3 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e3bdf52-bb79-4a1a-a4a1-7ff0c7b68088): COMMIT; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "score", "encrypted_report", "report_nonce", "report_auth_tag", "status", "status_msg", "score_seen", "pull_type", "created_at", "updated_at", "deleted_at" FROM "credit_scores" AS "credit_scores" WHERE "credit_scores"."application_id" = 10 AND "credit_scores"."pull_type" = 'soft' AND "credit_scores"."status" = 'completed' LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "credit_scores" ("id","application_id","encrypted_report","report_nonce","report_auth_tag","score_seen","pull_type","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,NOW(),NOW(),$7) RETURNING "id","application_id","score","encrypted_report","report_nonce","report_auth_tag","status","status_msg","score_seen","pull_type","created_at","updated_at","deleted_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 10 ORDER BY "application_flow_steps"."created_at" ASC; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 10 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 999999 ORDER BY "application_flow_steps"."created_at" ASC; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 12 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "flows" ("id","name","product_id","active","definition","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW()) RETURNING "id","name","product_id","organization_id","active","definition","version","created_by","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "status", "product_id", "organization_id", "created_at" FROM "applications" AS "applications" WHERE "applications"."id" = 14; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 14 LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE ("flows"."product_id" = 888 OR "flows"."product_id" IS NULL) AND "flows"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL THEN 0 ELSE 1 END ASC, "flows"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","created_at","updated_at") VALUES (DEFAULT,14,3,'step_pan','kyc_pan','active','{}',NULL,0,'2026-05-08 22:15:24.488 +05:30',NOW(),NOW()),(DEFAULT,14,3,'step_aadhaar','kyc_aadhaar','active','{}',NULL,0,'2026-05-08 22:15:24.488 +05:30',NOW(),NOW()),(DEFAULT,14,3,'step_agree','agreement','pending','{}',NULL,0,NULL,NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 14 ORDER BY "application_flow_steps"."created_at" ASC; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 13 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) ● Flow Engine › initializeFlow › creates step records from flow definition expect(received).toEqual(expected) // deep equality Expected: "kyc_pan" Received: "agreement"   79 |  80 | expect(steps).toHaveLength(3); > 81 | expect(steps[0].step_type).toEqual('kyc_pan');  | ^  82 | expect(steps[0].status).toEqual('active'); // root node starts active  83 | expect(steps[1].step_type).toEqual('credit_check');  84 | expect(steps[1].status).toEqual('pending'); at Object.toEqual (tests/unit/flow_engine.test.js:81:34) ● Flow Engine › completeStep › completes a step and activates the next one expect(received).toEqual(expected) // deep equality Expected: "completed" Received: "pending"   112 | });  113 | > 114 | expect(steps[0].status).toEqual('completed');  | ^  115 | expect(steps[0].result).toEqual({ pan: 'ABCPK1234A' });  116 | expect(steps[1].status).toEqual('active'); // credit check now active  117 | expect(steps[2].status).toEqual('pending'); // agreement still pending at Object.toEqual (tests/unit/flow_engine.test.js:114:31) ● Flow Engine › parallel steps › activates parallel sibling steps together expect(received).toEqual(expected) // deep equality Expected: "active" Received: "pending"   227 | // Both PAN and Aadhaar are roots — both active  228 | expect(steps[0].status).toEqual('active'); > 229 | expect(steps[1].status).toEqual('active');  | ^  230 | expect(steps[2].status).toEqual('pending'); // agreement waits  231 |  232 | // Complete PAN — agreement still pending (aadhaar not done) at Object.toEqual (tests/unit/flow_engine.test.js:229:31) PASS tests/unit/sanction.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_users" ("id","application_id","user_id","user_type","applicant_type","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW(),$6) RETURNING "id","application_id","user_id","user_type","applicant_type","status","uurn","created_at","updated_at","deleted_at","application_id"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "sanctions" ("id","application_id","product_id","organization_id","lender_id","lender_name","min_allowed_limit","max_allowed_limit","interest_rate","processing_fee_percentage","late_fee_percentage","tenure","tenure_unit","cycle_start_offset","grace_period","grace_period_unit","is_revolving","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,NOW(),NOW(),$18) RETURNING "id","application_id","product_id","organization_id","lender_id","lender_name","min_allowed_limit","max_allowed_limit","interest_rate","processing_fee_percentage","late_fee_percentage","tenure","tenure_unit","cycle_start_offset","grace_period","grace_period_unit","is_revolving","status","created_at","updated_at","deleted_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "sanctions" ("id","application_id","product_id","organization_id","min_allowed_limit","max_allowed_limit","interest_rate","processing_fee_percentage","late_fee_percentage","tenure","tenure_unit","cycle_start_offset","grace_period","grace_period_unit","is_revolving","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,NOW(),NOW(),$16) RETURNING "id","application_id","product_id","organization_id","lender_id","lender_name","min_allowed_limit","max_allowed_limit","interest_rate","processing_fee_percentage","late_fee_percentage","tenure","tenure_unit","cycle_start_offset","grace_period","grace_period_unit","is_revolving","status","created_at","updated_at","deleted_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "product_id", "organization_id", "lender_id", "lender_name", "min_allowed_limit", "max_allowed_limit", "interest_rate", "processing_fee_percentage", "late_fee_percentage", "tenure", "tenure_unit", "cycle_start_offset", "grace_period", "grace_period_unit", "is_revolving", "status", "created_at", "updated_at", "deleted_at" FROM "sanctions" AS "sanctions" WHERE ("sanctions"."deleted_at" IS NULL AND "sanctions"."application_id" = 11) ORDER BY "sanctions"."created_at" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "sanctions" ("id","application_id","product_id","organization_id","lender_id","lender_name","min_allowed_limit","max_allowed_limit","interest_rate","processing_fee_percentage","late_fee_percentage","tenure","tenure_unit","cycle_start_offset","grace_period","grace_period_unit","is_revolving","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,NOW(),NOW(),$18) RETURNING "id","application_id","product_id","organization_id","lender_id","lender_name","min_allowed_limit","max_allowed_limit","interest_rate","processing_fee_percentage","late_fee_percentage","tenure","tenure_unit","cycle_start_offset","grace_period","grace_period_unit","is_revolving","status","created_at","updated_at","deleted_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "product_id", "organization_id", "lender_id", "lender_name", "min_allowed_limit", "max_allowed_limit", "interest_rate", "processing_fee_percentage", "late_fee_percentage", "tenure", "tenure_unit", "cycle_start_offset", "grace_period", "grace_period_unit", "is_revolving", "status", "created_at", "updated_at", "deleted_at" FROM "sanctions" AS "sanctions" WHERE ("sanctions"."deleted_at" IS NULL AND "sanctions"."application_id" = 11) ORDER BY "sanctions"."created_at" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "sanctions" WHERE "application_id" = 11 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_users" WHERE "application_id" = 11 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "applications" WHERE "id" = 11 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS tests/unit/bank-statement.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "bank_statements" ("uuid","file_id","status","request_id","source","txn_id","raw_data","created_at") VALUES ($1,$2,$3,$4,$5,$6,$7,NOW()) RETURNING "uuid","application_id","account_number","bank","file_id","status","reject_reason","score","request_id","source","txn_id","raw_data","salary_detected","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "bank_statements" WHERE "source" = 'saafe' at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "bank_statements" ("uuid","file_id","status","request_id","source","txn_id","raw_data","created_at") VALUES ($1,$2,$3,$4,$5,$6,$7,NOW()) RETURNING "uuid","application_id","account_number","bank","file_id","status","reject_reason","score","request_id","source","txn_id","raw_data","salary_detected","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "bank_statements" ("uuid","file_id","status","request_id","source","txn_id","raw_data","created_at") VALUES ($1,$2,$3,$4,$5,$6,$7,NOW()) RETURNING "uuid","application_id","account_number","bank","file_id","status","reject_reason","score","request_id","source","txn_id","raw_data","salary_detected","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "bank_statements" WHERE "source" = 'saafe' at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "bank_statements" WHERE "source" = 'saafe' at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "bank_statements" WHERE "source" = 'saafe' at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "bank_statements" WHERE "source" = 'saafe' at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "bank_statements" WHERE "source" = 'saafe' at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "bank_statements" WHERE "source" = 'saafe' at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS tests/unit/agreement_sanction.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_users" ("id","application_id","user_id","user_type","applicant_type","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW(),$6) RETURNING "id","application_id","user_id","user_type","applicant_type","status","uurn","created_at","updated_at","deleted_at","application_id"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "sanctions" ("id","application_id","product_id","organization_id","lender_id","lender_name","min_allowed_limit","max_allowed_limit","interest_rate","processing_fee_percentage","late_fee_percentage","tenure","tenure_unit","cycle_start_offset","grace_period","grace_period_unit","is_revolving","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,NOW(),NOW(),$18) RETURNING "id","application_id","product_id","organization_id","lender_id","lender_name","min_allowed_limit","max_allowed_limit","interest_rate","processing_fee_percentage","late_fee_percentage","tenure","tenure_unit","cycle_start_offset","grace_period","grace_period_unit","is_revolving","status","created_at","updated_at","deleted_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreement_templates" ("id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreements" ("id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data") VALUES (DEFAULT,$1,$2,NOW(),NOW(),$3,$4,$5,$6,$7,$8,$9) RETURNING "id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "lender_id", "content", "version", "active", "created_by", "created_at", "updated_at" FROM "agreement_templates" AS "agreement_templates" WHERE (("agreement_templates"."product_id" = 1 AND "agreement_templates"."lender_id" = 1) OR ("agreement_templates"."product_id" = 1 AND "agreement_templates"."lender_id" IS NULL) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" = 1) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" IS NULL)) AND "agreement_templates"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL AND lender_id IS NOT NULL THEN 0 WHEN product_id IS NOT NULL THEN 1 WHEN lender_id IS NOT NULL THEN 2 ELSE 3 END ASC, "agreement_templates"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "agreements" WHERE "application_id" = 16 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "sanctions" WHERE "application_id" = 16 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_users" WHERE "application_id" = 16 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "applications" WHERE "id" = 16 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS tests/unit/disburse.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "flows" ("id","name","product_id","organization_id","active","definition","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,NOW(),NOW()) RETURNING "id","name","product_id","organization_id","active","definition","version","created_by","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_users" ("id","application_id","user_id","user_type","applicant_type","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW(),$6) RETURNING "id","application_id","user_id","user_type","applicant_type","status","uurn","created_at","updated_at","deleted_at","application_id"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at","application_id","flow_id"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at","application_id","flow_id"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 15 AND "application_flow_steps"."step_type" = 'disbursement' AND "application_flow_steps"."status" = 'active' LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "id" = 21 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "application_flow_steps" ("id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,NOW(),NOW()) RETURNING "id","application_id","flow_id","node_id","step_type","status","config","result","attempts","started_at","completed_at","created_at","updated_at","application_id","flow_id"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (14993670-980c-411d-adef-c8ee9ae95cfd): START TRANSACTION; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (14993670-980c-411d-adef-c8ee9ae95cfd): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 15 AND "application_flow_steps"."step_type" = 'disbursement' AND "application_flow_steps"."status" = 'active' LIMIT 1 FOR UPDATE; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (14993670-980c-411d-adef-c8ee9ae95cfd): UPDATE "application_flow_steps" SET "status"=$1,"result"=$2,"completed_at"=$3,"updated_at"=$4 WHERE "id" = $5 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (14993670-980c-411d-adef-c8ee9ae95cfd): SELECT "id", "name", "product_id", "organization_id", "active", "definition", "version", "created_by", "created_at", "updated_at" FROM "flows" AS "flows" WHERE "flows"."id" = 4; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (14993670-980c-411d-adef-c8ee9ae95cfd): SELECT "id", "application_id", "flow_id", "node_id", "step_type", "status", "config", "result", "attempts", "started_at", "completed_at", "created_at", "updated_at", "application_id" AS "applicationId", "flow_id" AS "flowId" FROM "application_flow_steps" AS "application_flow_steps" WHERE "application_flow_steps"."application_id" = 15; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (14993670-980c-411d-adef-c8ee9ae95cfd): COMMIT; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_flow_steps" WHERE "application_id" = 15 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "application_users" WHERE "application_id" = 15 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "applications" WHERE "id" = 15 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "flows" WHERE "id" = 4 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) FAIL tests/aadhaar.test.js (7.191 s) ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined 3299397605 Starting traceID=undefined method=POST url=/v1/applications body={"product_id":"349340"} headers={"x-gct-user-id":"3299397605"} at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 3299397605 Executing (d391c784-0d54-4244-a21e-4a0bf16f50a8): START TRANSACTION; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 3299397605 Executing (d391c784-0d54-4244-a21e-4a0bf16f50a8): ROLLBACK; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 3299397605 traceID=undefined method=POST url=/v1/applications status=422 responseTime=292ms errorResponse=applications.organization_id cannot be null at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 25040 Starting traceID=undefined method=POST url=/v1/applications body={"product_id":"7801493762"} headers={"x-gct-user-id":"25040"} at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 25040 Executing (6756f431-3ab1-4330-a9ab-ab1299977767): START TRANSACTION; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 25040 Executing (6756f431-3ab1-4330-a9ab-ab1299977767): ROLLBACK; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 25040 traceID=undefined method=POST url=/v1/applications status=422 responseTime=95ms errorResponse=applications.organization_id cannot be null at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) ● Aadhaar › checking aadhaar › should return data to me if present in backup data expect(received).toEqual(expected) // deep equality Expected: 200 Received: 422   34 | });  35 | > 36 | expect(response.status).toEqual(200);  | ^  37 |  38 | const application = JSON.parse(response.body);  39 | at Object.toEqual (tests/aadhaar.test.js:36:31) ● Aadhaar › checking aadhaar › should return status 404 expect(received).toEqual(expected) // deep equality Expected: 200 Received: 422   34 | });  35 | > 36 | expect(response.status).toEqual(200);  | ^  37 |  38 | const application = JSON.parse(response.body);  39 | at Object.toEqual (tests/aadhaar.test.js:36:31) PASS tests/unit/agreement_html_template.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreement_templates" ("id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreement_templates" ("id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","name","product_id","lender_id","content","version","active","created_by","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "agreements" ("id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data") VALUES (DEFAULT,$1,$2,NOW(),NOW(),$3,$4,$5,$6,$7,$8,$9) RETURNING "id","application_id","file_id","created_at","agreed_at","place","lender_id","product_id","uploaded","ip","status","extra_data"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "product_id", "lender_id", "content", "version", "active", "created_by", "created_at", "updated_at" FROM "agreement_templates" AS "agreement_templates" WHERE (("agreement_templates"."product_id" = 88 AND "agreement_templates"."lender_id" = 88) OR ("agreement_templates"."product_id" = 88 AND "agreement_templates"."lender_id" IS NULL) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" = 88) OR ("agreement_templates"."product_id" IS NULL AND "agreement_templates"."lender_id" IS NULL)) AND "agreement_templates"."active" = true ORDER BY CASE WHEN product_id IS NOT NULL AND lender_id IS NOT NULL THEN 0 WHEN product_id IS NOT NULL THEN 1 WHEN lender_id IS NOT NULL THEN 2 ELSE 3 END ASC, "agreement_templates"."version" DESC LIMIT 1; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS tests/unit/flow_validation.test.js PASS tests/unit/blacklist.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "blacklist" ("id","organization_id","identifier_type","identifier_value","reason","source","active","added_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","organization_id","identifier_type","identifier_value","reason","source","active","expires_at","added_by","removed_by","removed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "blacklist" WHERE "organization_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "blacklist" ("id","organization_id","identifier_type","identifier_value","reason","source","active","added_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","organization_id","identifier_type","identifier_value","reason","source","active","expires_at","added_by","removed_by","removed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "blacklist" SET "active"=$1,"removed_by"=$2,"removed_at"=$3 WHERE "id" = $4 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "blacklist" WHERE "organization_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "blacklist" ("id","organization_id","identifier_type","identifier_value","reason","source","active","added_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","organization_id","identifier_type","identifier_value","reason","source","active","expires_at","added_by","removed_by","removed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "organization_id", "identifier_type", "identifier_value", "reason", "source", "active", "expires_at", "added_by", "removed_by", "removed_at", "created_at", "updated_at" FROM "blacklist" AS "blacklist" WHERE ((("blacklist"."identifier_type" = 'pan' AND "blacklist"."identifier_value" = 'FRAUD1234A')) AND ("blacklist"."expires_at" IS NULL OR "blacklist"."expires_at" > '2026-05-08 22:15:32.091 +05:30')) AND "blacklist"."organization_id" = 1 AND "blacklist"."active" = true; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "blacklist" WHERE "organization_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "organization_id", "identifier_type", "identifier_value", "reason", "source", "active", "expires_at", "added_by", "removed_by", "removed_at", "created_at", "updated_at" FROM "blacklist" AS "blacklist" WHERE ((("blacklist"."identifier_type" = 'pan' AND "blacklist"."identifier_value" = 'CLEAN1234A')) AND ("blacklist"."expires_at" IS NULL OR "blacklist"."expires_at" > '2026-05-08 22:15:32.290 +05:30')) AND "blacklist"."organization_id" = 1 AND "blacklist"."active" = true; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "blacklist" WHERE "organization_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "blacklist" ("id","organization_id","identifier_type","identifier_value","reason","source","active","added_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","organization_id","identifier_type","identifier_value","reason","source","active","expires_at","added_by","removed_by","removed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "organization_id", "identifier_type", "identifier_value", "reason", "source", "active", "expires_at", "added_by", "removed_by", "removed_at", "created_at", "updated_at" FROM "blacklist" AS "blacklist" WHERE ((("blacklist"."identifier_type" = 'pan' AND "blacklist"."identifier_value" = 'CROSS1234A')) AND ("blacklist"."expires_at" IS NULL OR "blacklist"."expires_at" > '2026-05-08 22:15:32.384 +05:30')) AND "blacklist"."organization_id" = 1 AND "blacklist"."active" = true; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "organization_id", "identifier_type", "identifier_value", "reason", "source", "active", "expires_at", "added_by", "removed_by", "removed_at", "created_at", "updated_at" FROM "blacklist" AS "blacklist" WHERE ((("blacklist"."identifier_type" = 'pan' AND "blacklist"."identifier_value" = 'CROSS1234A')) AND ("blacklist"."expires_at" IS NULL OR "blacklist"."expires_at" > '2026-05-08 22:15:32.387 +05:30')) AND "blacklist"."organization_id" = 2 AND "blacklist"."active" = true; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "blacklist" WHERE "organization_id" = 2 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "blacklist" WHERE "organization_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "blacklist" ("id","organization_id","identifier_type","identifier_value","reason","source","active","expires_at","added_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,NOW(),NOW()) RETURNING "id","organization_id","identifier_type","identifier_value","reason","source","active","expires_at","added_by","removed_by","removed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "organization_id", "identifier_type", "identifier_value", "reason", "source", "active", "expires_at", "added_by", "removed_by", "removed_at", "created_at", "updated_at" FROM "blacklist" AS "blacklist" WHERE ((("blacklist"."identifier_type" = 'pan' AND "blacklist"."identifier_value" = 'EXPIRE1234')) AND ("blacklist"."expires_at" IS NULL OR "blacklist"."expires_at" > '2026-05-08 22:15:32.395 +05:30')) AND "blacklist"."organization_id" = 1 AND "blacklist"."active" = true; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "blacklist" WHERE "organization_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "blacklist" ("id","organization_id","identifier_type","identifier_value","reason","source","active","added_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","organization_id","identifier_type","identifier_value","reason","source","active","expires_at","added_by","removed_by","removed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "organization_id", "identifier_type", "identifier_value", "reason", "source", "active", "expires_at", "added_by", "removed_by", "removed_at", "created_at", "updated_at" FROM "blacklist" AS "blacklist" WHERE ((("blacklist"."identifier_type" = 'pan' AND "blacklist"."identifier_value" = 'REMOVED123')) AND ("blacklist"."expires_at" IS NULL OR "blacklist"."expires_at" > '2026-05-08 22:15:32.494 +05:30')) AND "blacklist"."organization_id" = 1 AND "blacklist"."active" = true; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "blacklist" WHERE "organization_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "blacklist" ("id","organization_id","identifier_type","identifier_value","reason","source","active","added_by","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),NOW()) RETURNING "id","organization_id","identifier_type","identifier_value","reason","source","active","expires_at","added_by","removed_by","removed_at","created_at","updated_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "organization_id", "identifier_type", "identifier_value", "reason", "source", "active", "expires_at", "added_by", "removed_by", "removed_at", "created_at", "updated_at" FROM "blacklist" AS "blacklist" WHERE ((("blacklist"."identifier_type" = 'pan' AND "blacklist"."identifier_value" = 'CLEAN1234A')) AND ("blacklist"."expires_at" IS NULL OR "blacklist"."expires_at" > '2026-05-08 22:15:32.591 +05:30')) AND "blacklist"."organization_id" = 1 AND "blacklist"."active" = true; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "blacklist" WHERE "organization_id" = 1 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS tests/unit/vault.test.js PASS tests/unit/credit_score_encryption.test.js FAIL tests/order.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) ● order req › order request SequelizeValidationError: notNull Violation: applications.product_id cannot be null, notNull Violation: applications.organization_id cannot be null   13 | // await subscribe(queue);  14 | const user_id = Date.now(); > 15 | const application = await Application.create({  | ^  16 | user_id: user_id,  17 | status: 'cic',  18 | product: 'secured_card', at InstanceValidator._validate (node_modules/sequelize/src/instance-validator.js:78:13) at InstanceValidator._validateAndRunHooks (node_modules/sequelize/src/instance-validator.js:111:7) at InstanceValidator.validate (node_modules/sequelize/src/instance-validator.js:93:12) at model.save (node_modules/sequelize/src/model.js:4077:7) at applications.create (node_modules/sequelize/src/model.js:2305:12) at Object. (tests/order.test.js:15:25) PASS tests/unit/emandate.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "applications" ("id","status","product_id","organization_id","created_at") VALUES (DEFAULT,$1,$2,$3,NOW()) RETURNING "id","status","product_id","organization_id","created_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "emandates" ("id","application_id","amount","happy_subscription_id","status","mandate_type","created_at","updated_at","deleted_at","vpa") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW(),$6,$7) RETURNING "id","application_id","active","amount","account_number","ifsc","bank","happy_subscription_id","status","mandate_type","created_at","updated_at","deleted_at","umrn","vpa"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "emandates" ("id","application_id","amount","happy_subscription_id","status","mandate_type","created_at","updated_at","deleted_at","vpa") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW(),$6,$7) RETURNING "id","application_id","active","amount","account_number","ifsc","bank","happy_subscription_id","status","mandate_type","created_at","updated_at","deleted_at","umrn","vpa"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "emandates" ("id","application_id","amount","happy_subscription_id","status","mandate_type","created_at","updated_at","deleted_at","vpa") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),NOW(),$6,$7) RETURNING "id","application_id","active","amount","account_number","ifsc","bank","happy_subscription_id","status","mandate_type","created_at","updated_at","deleted_at","umrn","vpa"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "emandates" SET "status"=$1,"active"=$2 WHERE "id" = $3 at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) FAIL tests/agreement.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) ● agreement › agreement flow SequelizeValidationError: notNull Violation: applications.product_id cannot be null, notNull Violation: applications.organization_id cannot be null   11 | it('agreement flow', async () => {  12 | const user_id = Date.now(); > 13 | const application = await Application.create({  | ^  14 | user_id,  15 | status: 'cic',  16 | product: 'secured_card', at InstanceValidator._validate (node_modules/sequelize/src/instance-validator.js:78:13) at InstanceValidator._validateAndRunHooks (node_modules/sequelize/src/instance-validator.js:111:7) at InstanceValidator.validate (node_modules/sequelize/src/instance-validator.js:93:12) at model.save (node_modules/sequelize/src/model.js:4077:7) at applications.create (node_modules/sequelize/src/model.js:2305:12) at Object. (tests/agreement.test.js:13:25) PASS tests/pan.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pan" ("id","value","first_name","last_name","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,NOW(),NOW(),$4) RETURNING "id","status","status_msg","value","first_name","middle_name","last_name","created_at","updated_at","deleted_at"; at console. [as info] (node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them. Test Suites: 5 failed, 12 passed, 17 total Tests: 9 failed, 75 passed, 84 total Snapshots: 0 total Time: 35.801 s Ran all test suites. Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished? command terminated with exit code 1 cat: test-report.md: No such file or directory command terminated with exit code 1 commented on pull request #1100 on repository greencapitaltrade/destiny cat: coverage/coverage.txt: No such file or directory command terminated with exit code 1 error: failed to comment on pull request #1100 on repository greencapitaltrade/destiny: Unprocessable Entity  Pipeline failed on stage 'from-build-pack' : container 'step-build-run-e2e'. The execution of the pipeline has stopped.