apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: lighthouse.jenkins-x.io/cloneURI: https://github.com/greencapitaltrade/destiny.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: 56fdcab26d4f3223e5e0432053381120 creationTimestamp: "2026-08-13T11:09:32Z" generation: 8 labels: branch: main build: "178" context: release created-by-lighthouse: "true" event-GUID: 71caecd6-9707-11f1-9ce1-91b56b04ed74 lighthouse.jenkins-x.io/baseSHA: 89e6d592544f6f8a6c55af8855cd53115a24d257 lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1786619372353" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: apitaltrade-destiny-main-release-mhmb6 lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 89e6d592544f6f8a6c55af8855cd53115a24d257 lighthouse.jenkins-x.io/refs.org: greencapitaltrade lighthouse.jenkins-x.io/refs.repo: destiny lighthouse.jenkins-x.io/type: postsubmit owner: greencapitaltrade podName: apitaltrade-destiny-main-release-dsv6b-from-build-pack-pod provider: github repository: destiny tekton.dev/pipeline: apitaltrade-destiny-main-release managedFields: - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: f:branch: {} f:context: {} f:owner: {} f:provider: {} f:repository: {} f:spec: f:lastCommitMessage: {} f:lastCommitSHA: {} f:releaseNotesURL: {} f:version: {} manager: jx-changelog-0.10.29 operation: Update time: "2026-08-13T11:13:58Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:lighthouse.jenkins-x.io/cloneURI: {} f:lighthouse.jenkins-x.io/job: {} f:pipeline.jenkins-x.io/traceID: {} f:labels: .: {} f:build: {} f:created-by-lighthouse: {} f:event-GUID: {} f:lighthouse.jenkins-x.io/baseSHA: {} f:lighthouse.jenkins-x.io/branch: {} f:lighthouse.jenkins-x.io/buildNum: {} f:lighthouse.jenkins-x.io/context: {} f:lighthouse.jenkins-x.io/id: {} f:lighthouse.jenkins-x.io/job: {} f:lighthouse.jenkins-x.io/lastCommitSHA: {} f:lighthouse.jenkins-x.io/refs.org: {} f:lighthouse.jenkins-x.io/refs.repo: {} f:lighthouse.jenkins-x.io/type: {} f:podName: {} f:tekton.dev/pipeline: {} f:spec: .: {} f:baseSHA: {} f:batchPipelineActivity: {} f:build: {} f:buildLogsUrl: {} f:completedTimestamp: {} f:context: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:gitUrl: {} f:message: {} f:pipeline: {} f:startedTimestamp: {} f:status: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-08-13T11:17:21Z" name: greencapitaltrade-destiny-main-178 namespace: jx resourceVersion: "266326667" uid: f2b6ef26-4fba-43eb-9dd5-63020d67b592 spec: baseSHA: 89e6d592544f6f8a6c55af8855cd53115a24d257 batchPipelineActivity: {} build: "178" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/destiny/main/178.log completedTimestamp: "2026-08-13T11:17:15Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: destiny gitUrl: https://github.com/greencapitaltrade/destiny.git lastCommitMessage: | fix(engine): drop CLS reads and afterCommit plumbing; let queries and events attach on their own Follow-up to the nested-transaction removal: that change read the ambient transaction out of Sequelize's CLS directly and called .afterCommit() on it, which crashes with "Cannot read properties of undefined" on any call path where CLS carries no transaction (engine tests and queue/consume.js's direct callers). The engine now has no transaction handling at all: - Queries auto-attach to whatever ambient transaction the caller has (Sequelize's own CLS fallback); none is opened or read here. - Lifecycle events go through helpers/emit_event.js, which already defers the publish to the caller's transaction commit (and outboxes it) on its own -- no afterCommit wrapping at call sites. - executeStep runs handlers inline; the afterCommit deferral existed only because completeStep used to open its own transaction, which would deadlock if entered before the engine's committed. - The double-approve/double-reject guards no longer depend on holding a row lock across a read-check-write (which only serialized callers that had a transaction): they are now atomic conditional updates -- the WHERE clause makes the DB pick exactly one winner, so two branches completing simultaneously cannot double-emit. individualHooks keeps the Application model's afterUpdate hook (status log + status event) firing. Also fixes two tests that were failing on main independently of this: - aa_redirect_relay_route: cleanup deleted the flow before its steps, violating application_flow_steps' FK on every run. - bank_statement_hook: still asserted the heavy `analysis` jsonb on the list response, stale since the list route deliberately stopped returning it; now asserts the list omits it and reads the analysis via GET /:id/analysis. Full suite: 74/74 suites, 694 passed, 0 failures (devcontainer). Co-Authored-By: Claude Fable 5 lastCommitSHA: 6e5788f9ffa619b5dc4ee32cb955a2dd5b99a8ee message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/destiny/main releaseNotesURL: https://github.com/greencapitaltrade/destiny/releases/tag/v1.78.7 startedTimestamp: "2026-08-13T11:09:32Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-08-13T11:17:15Z" name: from build pack startedTimestamp: "2026-08-13T11:09:37Z" status: Succeeded steps: - completedTimestamp: "2026-08-13T11:10:00Z" name: Git Clone startedTimestamp: "2026-08-13T11:09:37Z" status: Succeeded - completedTimestamp: "2026-08-13T11:10:12Z" name: Next Version startedTimestamp: "2026-08-13T11:10:01Z" status: Succeeded - completedTimestamp: "2026-08-13T11:10:17Z" name: Jx Variables startedTimestamp: "2026-08-13T11:10:13Z" status: Succeeded - completedTimestamp: "2026-08-13T11:11:53Z" name: Build Npm Install startedTimestamp: "2026-08-13T11:10:18Z" status: Succeeded - completedTimestamp: "2026-08-13T11:13:46Z" name: Build Container Build startedTimestamp: "2026-08-13T11:11:53Z" status: Succeeded - completedTimestamp: "2026-08-13T11:13:58Z" name: Promote Changelog startedTimestamp: "2026-08-13T11:13:47Z" status: Succeeded - completedTimestamp: "2026-08-13T11:14:02Z" name: Promote Helm Release startedTimestamp: "2026-08-13T11:13:58Z" status: Succeeded - completedTimestamp: "2026-08-13T11:16:06Z" name: Promote Jx Promote startedTimestamp: "2026-08-13T11:14:03Z" status: Succeeded - completedTimestamp: "2026-08-13T11:17:15Z" name: Publish Org Kb startedTimestamp: "2026-08-13T11:16:07Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5459 startedTimestamp: "2026-08-13T11:15:20Z" status: Succeeded startedTimestamp: "2026-08-13T11:15:20Z" status: Succeeded - kind: Promote promote: environment: production pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5460 startedTimestamp: "2026-08-13T11:16:03Z" status: Succeeded startedTimestamp: "2026-08-13T11:16:03Z" status: Succeeded version: 1.78.7 status: {}