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: 9bb0100337cdca970d50c74e491f6455 creationTimestamp: "2026-05-27T07:33:54Z" generation: 7 labels: branch: main build: "107" context: release created-by-lighthouse: "true" event-GUID: 4a7c1976-599e-11f1-99ba-34ca3ac74388 lighthouse.jenkins-x.io/baseSHA: d8d9b094421feecae0c2ffea71708a1833a149af lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1779867234159" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: apitaltrade-bifrost-main-release-bldsq lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: d8d9b094421feecae0c2ffea71708a1833a149af 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-h76wj-from-build-pack-pod provider: github repository: bifrost tekton.dev/pipeline: apitaltrade-bifrost-main-release-h76wj 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.18 operation: Update time: "2026-05-27T07:39:49Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:spec: f:completedTimestamp: {} f:status: {} manager: jx-promote-0.6.31 operation: Update time: "2026-05-27T07:41:06Z" - 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:context: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:gitUrl: {} f:message: {} f:pipeline: {} f:startedTimestamp: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-05-27T07:41:20Z" name: greencapitaltrade-bifrost-main-107 namespace: jx resourceVersion: "53770331" uid: 701846e5-7f41-48eb-9cf4-5d60b6c2d510 spec: baseSHA: d8d9b094421feecae0c2ffea71708a1833a149af batchPipelineActivity: {} build: "107" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/bifrost/main/107.log completedTimestamp: "2026-05-27T07:40:38Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: bifrost gitUrl: https://github.com/greencapitaltrade/bifrost.git lastCommitMessage: "fix(migration): pre-init creates res_users.default_team_id column\n\nbifrost 6.71.0 rollout crash-looped on prod with\n\n psycopg2.errors.UndefinedColumn:\n \ column res_users.default_team_id does not exist\n\nBackground: `default_team_id` was added to res_users in\nasset_management 18.0.2.1.0 (commit e84137896, May 22). The field\ndeclaration loads at module import. But Odoo's bootstrap iterates\nres_users via `hr._employee_ids_domain` → `res.users._fetch_query`\nBEFORE the upgrade phase that would run the field's SQL-update\nstep. By then the field is in Python but the column isn't in\nPostgres → SELECT fails → container CrashLoopBackOff.\n\nPre-init runs at the raw SQL level before any Python field\ndeclarations load, so the column is present when boot later\nSELECTs it. `IF NOT EXISTS` makes the migration idempotent.\n\nBumped addon version 18.0.2.1.0 → 18.0.2.2.0 so Odoo recognises\nthe upgrade and runs the new migration directory.\n\nTests (4 in test_pre_init_migration.py):\n- migrate(cr, version) is callable + exportable\n- idempotent on already-existing column\n- column present after migration\n- simulates the prod failure: drop the column, run migrate,\n verify the column is back (savepoint-rollback so the test DB\n \ stays consistent)\n\nPairs with mcu#4015 (revert of bifrost 6.71.0 prod promote that\ncrashed). After this lands, cut a new bifrost release (6.72.0)\nthat includes BOTH this pre-init AND bifrost#173's team-create\ndefaults; promote that to prod and the chain is unblocked.\n\n\U0001F916 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.7 \n" lastCommitSHA: 9b980c3d790404e5d914975f80446236e570c43a message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/bifrost/main releaseNotesURL: https://github.com/greencapitaltrade/bifrost/releases/tag/v6.71.1 startedTimestamp: "2026-05-27T07:33:54Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-05-27T07:40:38Z" name: Release startedTimestamp: "2026-05-27T07:39:38Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/4016 startedTimestamp: "2026-05-27T07:40:38Z" status: Succeeded startedTimestamp: "2026-05-27T07:40:38Z" status: Succeeded - kind: Stage stage: completedTimestamp: "2026-05-27T07:41:09Z" name: from build pack startedTimestamp: "2026-05-27T07:34:08Z" status: Succeeded steps: - completedTimestamp: "2026-05-27T07:34:31Z" name: Git Clone startedTimestamp: "2026-05-27T07:34:08Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:36Z" name: Next Version startedTimestamp: "2026-05-27T07:34:31Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:40Z" name: Jx Variables startedTimestamp: "2026-05-27T07:34:36Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:41Z" name: Setup Npm Nexus startedTimestamp: "2026-05-27T07:34:41Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:45Z" name: Setup Pip Cache startedTimestamp: "2026-05-27T07:34:41Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:47Z" name: Process Config Templates startedTimestamp: "2026-05-27T07:34:46Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:48Z" name: Update Fleet Management Version startedTimestamp: "2026-05-27T07:34:48Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:50Z" name: Check Registry startedTimestamp: "2026-05-27T07:34:48Z" status: Succeeded - completedTimestamp: "2026-05-27T07:39:25Z" name: Build Container Build startedTimestamp: "2026-05-27T07:34:51Z" status: Succeeded - completedTimestamp: "2026-05-27T07:39:49Z" name: Promote Changelog startedTimestamp: "2026-05-27T07:39:25Z" status: Succeeded - completedTimestamp: "2026-05-27T07:41:06Z" name: Promote Helm Release startedTimestamp: "2026-05-27T07:39:50Z" status: Succeeded - completedTimestamp: "2026-05-27T07:41:09Z" name: Promote Jx Promote startedTimestamp: "2026-05-27T07:39:54Z" status: Succeeded - kind: Stage stage: completedTimestamp: "2026-05-27T07:41:09Z" name: from build pack startedTimestamp: "2026-05-27T07:34:08Z" status: Succeeded steps: - completedTimestamp: "2026-05-27T07:34:31Z" name: Git Clone startedTimestamp: "2026-05-27T07:34:08Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:36Z" name: Next Version startedTimestamp: "2026-05-27T07:34:31Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:40Z" name: Jx Variables startedTimestamp: "2026-05-27T07:34:36Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:41Z" name: Setup Npm Nexus startedTimestamp: "2026-05-27T07:34:41Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:45Z" name: Setup Pip Cache startedTimestamp: "2026-05-27T07:34:41Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:47Z" name: Process Config Templates startedTimestamp: "2026-05-27T07:34:46Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:48Z" name: Update Fleet Management Version startedTimestamp: "2026-05-27T07:34:48Z" status: Succeeded - completedTimestamp: "2026-05-27T07:34:50Z" name: Check Registry startedTimestamp: "2026-05-27T07:34:48Z" status: Succeeded - completedTimestamp: "2026-05-27T07:39:25Z" name: Build Container Build startedTimestamp: "2026-05-27T07:34:51Z" status: Succeeded - completedTimestamp: "2026-05-27T07:39:49Z" name: Promote Changelog startedTimestamp: "2026-05-27T07:39:25Z" status: Succeeded - completedTimestamp: "2026-05-27T07:41:06Z" name: Promote Helm Release startedTimestamp: "2026-05-27T07:39:50Z" status: Succeeded - completedTimestamp: "2026-05-27T07:41:09Z" name: Promote Jx Promote startedTimestamp: "2026-05-27T07:39:54Z" status: Succeeded version: 6.71.1 status: {}