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: 9b687111332b7d1bcf2fb2be27c50f4f creationTimestamp: "2026-07-29T14:47:44Z" generation: 7 labels: branch: main build: "160" context: release created-by-lighthouse: "true" event-GUID: 70c7967e-8b5c-11f1-9d9a-8fd861816c7b lighthouse.jenkins-x.io/baseSHA: 706b8dd435a983152998ffcee88e02e136eee02e lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1785336464430" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: apitaltrade-bifrost-main-release-9cmrq lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 706b8dd435a983152998ffcee88e02e136eee02e 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-4b2fz-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-07-29T14:52:03Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:lighthouse.jenkins-x.io/cloneURI: {} f:lighthouse.jenkins-x.io/job: {} 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: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-07-29T14:55:05Z" name: greencapitaltrade-bifrost-main-160 namespace: jx resourceVersion: "226577778" uid: 28cd73f3-de43-41dd-9923-68415a19de86 spec: baseSHA: 706b8dd435a983152998ffcee88e02e136eee02e batchPipelineActivity: {} build: "160" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/bifrost/main/160.log completedTimestamp: "2026-07-29T14:54:02Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: bifrost gitUrl: https://github.com/greencapitaltrade/bifrost.git lastCommitMessage: | fix(entrypoint): only update installed addons (uninstalled modules OOM boot) check_addon_versions() used a LEFT JOIN and flagged any module whose latest_version was NULL or differed from the manifest, with no state check. The image ships ~300 uninstalled OCA modules (many Odoo-16-era leftovers, e.g. mis_builder DB=16.0.5.1.3 vs image 18.0.5.1.3), so every one of them got passed to `odoo --update` on every boot. Consequences confirmed in prod: registry load for ~300 extra modules OOMed the pod (exit 137) at the 2Gi limit, crash-looping rolling deploys, and it never converged -- `-u` on an uninstalled module does not write a new latest_version, so the same ~300 were re-flagged on every subsequent boot. This is why prod was stranded on an old version and promotes weren't rolling out. Fix: JOIN (not LEFT JOIN) so a module absent from ir_module_module can't be selected, add `im.state = 'installed'`, and use the null-safe `IS DISTINCT FROM` for the version comparison. Only installed modules with an actual version change are now flagged. Added tests/entrypoint/test_check_addon_versions.sh, which seeds ir_module_module with an installed/changed, an uninstalled/mismatched, and an installed/unchanged module, sources the real check_addon_versions() function, and asserts on its output. Co-Authored-By: Claude Opus 5 (1M context) lastCommitSHA: 793df37191507b77f0aca4978d67e3ddf6a42b36 message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/bifrost/main releaseNotesURL: https://github.com/greencapitaltrade/bifrost/releases/tag/v6.84.5 startedTimestamp: "2026-07-29T14:47:44Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-07-29T14:54:02Z" name: from build pack startedTimestamp: "2026-07-29T14:48:11Z" status: Succeeded steps: - completedTimestamp: "2026-07-29T14:48:32Z" name: Git Clone startedTimestamp: "2026-07-29T14:48:11Z" status: Succeeded - completedTimestamp: "2026-07-29T14:48:37Z" name: Next Version startedTimestamp: "2026-07-29T14:48:32Z" status: Succeeded - completedTimestamp: "2026-07-29T14:48:41Z" name: Jx Variables startedTimestamp: "2026-07-29T14:48:37Z" status: Succeeded - completedTimestamp: "2026-07-29T14:48:41Z" name: Setup Npm Nexus startedTimestamp: "2026-07-29T14:48:41Z" status: Succeeded - completedTimestamp: "2026-07-29T14:48:45Z" name: Setup Pip Cache startedTimestamp: "2026-07-29T14:48:42Z" status: Succeeded - completedTimestamp: "2026-07-29T14:48:46Z" name: Process Config Templates startedTimestamp: "2026-07-29T14:48:46Z" status: Succeeded - completedTimestamp: "2026-07-29T14:48:47Z" name: Update Asset Management Version startedTimestamp: "2026-07-29T14:48:47Z" status: Succeeded - completedTimestamp: "2026-07-29T14:48:49Z" name: Check Registry startedTimestamp: "2026-07-29T14:48:47Z" status: Succeeded - completedTimestamp: "2026-07-29T14:51:55Z" name: Build Container Build startedTimestamp: "2026-07-29T14:48:59Z" status: Succeeded - completedTimestamp: "2026-07-29T14:52:03Z" name: Promote Changelog startedTimestamp: "2026-07-29T14:51:55Z" status: Succeeded - completedTimestamp: "2026-07-29T14:52:07Z" name: Promote Helm Release startedTimestamp: "2026-07-29T14:52:04Z" status: Succeeded - completedTimestamp: "2026-07-29T14:53:18Z" name: Promote Jx Promote startedTimestamp: "2026-07-29T14:52:08Z" status: Succeeded - completedTimestamp: "2026-07-29T14:54:02Z" name: Publish Org Kb startedTimestamp: "2026-07-29T14:53:19Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/4996 startedTimestamp: "2026-07-29T14:52:47Z" status: Succeeded startedTimestamp: "2026-07-29T14:52:47Z" status: Succeeded - kind: Promote promote: environment: production pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/4997 startedTimestamp: "2026-07-29T14:53:15Z" status: Succeeded startedTimestamp: "2026-07-29T14:53:15Z" status: Succeeded version: 6.84.5 status: {}