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: 59059b7c765ca82f02a4133e95c2e251 creationTimestamp: "2026-04-10T19:14:14Z" generation: 9 labels: branch: main build: "515" context: release created-by-lighthouse: "true" event-GUID: 6e508654-3511-11f1-96ac-2346ad0f9184 lighthouse.jenkins-x.io/baseSHA: 5f16a4e58b8569b4b5a6f452ad1ba5c9adad4bea lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1775848453715" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: apitaltrade-bifrost-main-release-52dqb lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 5f16a4e58b8569b4b5a6f452ad1ba5c9adad4bea 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-849ph-from-build-pack-pod provider: github repository: bifrost tekton.dev/pipeline: apitaltrade-bifrost-main-release-849ph 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-04-10T19:23:09Z" - 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-04-10T19:24:48Z" name: greencapitaltrade-bifrost-main-515 namespace: jx resourceVersion: "1088143964" uid: 3487ade0-c961-4998-ab01-6350a87d3691 spec: baseSHA: 5f16a4e58b8569b4b5a6f452ad1ba5c9adad4bea batchPipelineActivity: {} build: "515" buildLogsUrl: azblob://logs/jenkins-x/logs/greencapitaltrade/bifrost/main/515.log completedTimestamp: "2026-04-10T19:24:25Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: bifrost gitUrl: https://github.com/greencapitaltrade/bifrost.git lastCommitMessage: | fix(iot): use defined variable names in create_from_normalized_data return Every IoT packet from Deadpool was crashing on ingestion with: NameError: name 'accel_ids' is not defined File "fleet_iot_data.py", line 680 'accelerometer_records': len(accel_ids), The local variables are named `accelerometer` and `events` (defined earlier in the same method), but the return dict was referencing stale names `accel_ids` and `event_ids` that were removed when child data moved to TimescaleDB. Consequence: the response dict failed to build, raising NameError back through JSON-RPC, and `/api/fleet/iot/data/*` returned 500 on every call. Observed in production (jx-production/bifrost-bifrost-c5788fd59-fxhk4) immediately after the Odoo 18 image rollout: ERROR bifrost odoo.http: Exception during request handling. File "/odoo/addons/fleet_management/models/fleet_iot_data.py", line 652 'accelerometer_records': len(accel_ids), NameError: name 'accel_ids' is not defined Changes: - Rename `accel_ids` -> `accelerometer` and `event_ids` -> `events` in the return dict so they match the local variable names defined on lines 607-608 of the same function. - Add a regression test (AST-based) that parses the source and fails if any return statement in `create_from_normalized_data` references an undefined local variable. Catches the specific NameError class of bugs without needing a full Deadpool -> Bifrost round-trip. Verified the test catches the broken state before the fix, and passes after. Co-Authored-By: Claude Opus 4.6 (1M context) lastCommitSHA: 469d56dd234b128a029ddb767a431bd40923020a message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/bifrost/main releaseNotesURL: https://github.com/greencapitaltrade/bifrost/releases/tag/v6.49.1 startedTimestamp: "2026-04-10T19:14:14Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-04-10T19:24:25Z" name: from build pack startedTimestamp: "2026-04-10T19:16:34Z" status: Succeeded steps: - completedTimestamp: "2026-04-10T19:16:56Z" name: Git Clone startedTimestamp: "2026-04-10T19:16:34Z" status: Succeeded - completedTimestamp: "2026-04-10T19:17:00Z" name: Next Version startedTimestamp: "2026-04-10T19:16:56Z" status: Succeeded - completedTimestamp: "2026-04-10T19:17:11Z" name: Jx Variables startedTimestamp: "2026-04-10T19:17:06Z" status: Succeeded - completedTimestamp: "2026-04-10T19:17:17Z" name: Setup Npm Nexus startedTimestamp: "2026-04-10T19:17:17Z" status: Succeeded - completedTimestamp: "2026-04-10T19:17:27Z" name: Setup Pip Cache startedTimestamp: "2026-04-10T19:17:24Z" status: Succeeded - completedTimestamp: "2026-04-10T19:17:35Z" name: Process Config Templates startedTimestamp: "2026-04-10T19:17:34Z" status: Succeeded - completedTimestamp: "2026-04-10T19:17:36Z" name: Update Fleet Management Version startedTimestamp: "2026-04-10T19:17:36Z" status: Succeeded - completedTimestamp: "2026-04-10T19:17:39Z" name: Check Registry startedTimestamp: "2026-04-10T19:17:37Z" status: Succeeded - completedTimestamp: "2026-04-10T19:22:46Z" name: Build Container Build startedTimestamp: "2026-04-10T19:17:49Z" status: Succeeded - completedTimestamp: "2026-04-10T19:23:09Z" name: Promote Changelog startedTimestamp: "2026-04-10T19:22:46Z" status: Succeeded - completedTimestamp: "2026-04-10T19:23:14Z" name: Promote Helm Release startedTimestamp: "2026-04-10T19:23:10Z" status: Succeeded - completedTimestamp: "2026-04-10T19:24:25Z" name: Promote Jx Promote startedTimestamp: "2026-04-10T19:23:15Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/3447 startedTimestamp: "2026-04-10T19:23:57Z" status: Succeeded startedTimestamp: "2026-04-10T19:23:57Z" status: Succeeded - kind: Promote promote: environment: production pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/3448 startedTimestamp: "2026-04-10T19:24:22Z" status: Succeeded startedTimestamp: "2026-04-10T19:24:22Z" status: Succeeded version: 6.49.1 status: {}