apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: lighthouse.jenkins-x.io/cloneURI: https://github.com/greencapitaltrade/bifrost.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: 7a5a4cc1c3965191e9c664ba4761ecd3 creationTimestamp: "2026-08-08T15:00:56Z" generation: 8 labels: branch: main build: "199" context: release created-by-lighthouse: "true" event-GUID: f05ac778-9339-11f1-811d-fd635e67c96f lighthouse.jenkins-x.io/baseSHA: 8e569b49d17da76d76246955922cf70f6ed24a7b lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1786201256129" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: apitaltrade-bifrost-main-release-rfsxg lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 8e569b49d17da76d76246955922cf70f6ed24a7b lighthouse.jenkins-x.io/refs.org: greencapitaltrade lighthouse.jenkins-x.io/refs.repo: bifrost lighthouse.jenkins-x.io/type: postsubmit owner: greencapitaltrade podName: apitaltrade-bifrost-main-release-r2gss-from-build-pack-pod provider: github repository: bifrost tekton.dev/pipeline: apitaltrade-bifrost-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-08T15:09: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-08T15:13:30Z" name: greencapitaltrade-bifrost-main-199 namespace: jx resourceVersion: "253241949" uid: cdad55bd-7e5c-41c2-9ddd-30b68ce0c2c6 spec: baseSHA: 8e569b49d17da76d76246955922cf70f6ed24a7b batchPipelineActivity: {} build: "199" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/bifrost/main/199.log completedTimestamp: "2026-08-08T15:13:23Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: bifrost gitUrl: https://github.com/greencapitaltrade/bifrost.git lastCommitMessage: | fix(asset): a failing catch-up must not roll back the forward window Production has been creating no trips since the sweep was enabled. The cron logged "Batch trip detection ... 1 trips" on every pass while asset_trip stayed frozen at 3244 for hours. cron_detect_trips runs two things in one transaction: the rolling 3-hour window, then the optional history catch-up. There was no savepoint between them, so when the catch-up raised, the forward window's trips were rolled back with it and the whole job failed: Job 'Asset Trip/Stop Detection' (144) server action #3206 failed File ".../asset_trip_detector.py", line 1230, in cron_detect_trips catchup = self._run_history_catchup(detector, now) File ".../asset_trip_detector.py", line 1082, in _run_history_catchup work = self.env.cr.fetchall() psycopg2.InterfaceError: cursor already closed failure_count reached 4 with nextcall stuck in the past. The InterfaceError itself was incidental — the server reloaded mid-run during the 6.91.2 rollout ("Initiating server reload" immediately before), which closes the cursor. The design fault is that a failure in the opportunistic half could discard the mandatory half. The rolling window is what keeps Trips/Stops current; the catch-up is backfill. Wrap the catch-up in a savepoint and catch anything it raises. Rolling back to the savepoint discards only the catch-up's work and leaves the forward window intact for the cron framework to commit at job end. A savepoint rather than an explicit commit: committing would also work in production but is forbidden on a test cursor, and neither registry.in_test_mode() nor an isinstance check on sql_db.TestCursor detects that reliably — Odoo patches commit onto the cursor instance. Added a regression test that fails the catch-up and asserts the forward window's trips survive, which is exactly what was not true in production. Mitigated live before this fix by unsetting asset_management.trip_catchup_days so the forward window commits again; re-enable once this ships. 818 tests / 0 failed. lastCommitSHA: 61b2fe0116eeb00caf59cceb198a14535846d64c message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/bifrost/main releaseNotesURL: https://github.com/greencapitaltrade/bifrost/releases/tag/v6.92.1 startedTimestamp: "2026-08-08T15:00:56Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-08-08T15:13:23Z" name: from build pack startedTimestamp: "2026-08-08T15:01:01Z" status: Succeeded steps: - completedTimestamp: "2026-08-08T15:01:41Z" name: Git Clone startedTimestamp: "2026-08-08T15:01:01Z" status: Succeeded - completedTimestamp: "2026-08-08T15:01:51Z" name: Next Version startedTimestamp: "2026-08-08T15:01:42Z" status: Succeeded - completedTimestamp: "2026-08-08T15:01:58Z" name: Jx Variables startedTimestamp: "2026-08-08T15:01:51Z" status: Succeeded - completedTimestamp: "2026-08-08T15:02:03Z" name: Setup Pip Cache startedTimestamp: "2026-08-08T15:01:58Z" status: Succeeded - completedTimestamp: "2026-08-08T15:02:05Z" name: Process Config Templates startedTimestamp: "2026-08-08T15:02:04Z" status: Succeeded - completedTimestamp: "2026-08-08T15:02:05Z" name: Update Asset Management Version startedTimestamp: "2026-08-08T15:02:05Z" status: Succeeded - completedTimestamp: "2026-08-08T15:02:08Z" name: Check Registry startedTimestamp: "2026-08-08T15:02:05Z" status: Succeeded - completedTimestamp: "2026-08-08T15:09:43Z" name: Build Container Build startedTimestamp: "2026-08-08T15:02:08Z" status: Succeeded - completedTimestamp: "2026-08-08T15:09:58Z" name: Promote Changelog startedTimestamp: "2026-08-08T15:09:44Z" status: Succeeded - completedTimestamp: "2026-08-08T15:10:03Z" name: Promote Helm Release startedTimestamp: "2026-08-08T15:09:58Z" status: Succeeded - completedTimestamp: "2026-08-08T15:12:10Z" name: Promote Jx Promote startedTimestamp: "2026-08-08T15:10:04Z" status: Succeeded - completedTimestamp: "2026-08-08T15:13:23Z" name: Publish Org Kb startedTimestamp: "2026-08-08T15:12:10Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5299 startedTimestamp: "2026-08-08T15:11:23Z" status: Succeeded startedTimestamp: "2026-08-08T15:11:23Z" status: Succeeded - kind: Promote promote: environment: production pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5300 startedTimestamp: "2026-08-08T15:12:07Z" status: Succeeded startedTimestamp: "2026-08-08T15:12:07Z" status: Succeeded version: 6.92.1 status: {}