Repository navigation
webui: only handle channels in the running function test update loop - #83
Conversation
::UpdateUI() iterates over dom.TestRunningIDs() and treats every entry as a channel, calling Device() and ChnGroupPartnerId() on it. When the function test is started for a whole device in the general device settings, the list can also contain the device ID. The channel methods then fail on the device object and ReGaHss logs a ScriptRuntimeError about every 3 seconds while the test is running. Only process entries that are channels. This natively replaces OpenCCU rootfs patch 0083-WebUI-Fix-DeviceTestScriptError.patch.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesRunning test status
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The change keeps running-test status updates for channels while avoiding channel-specific operations on other objects. No concrete merge-blocking risk is established. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Original OpenCCU rootfs patch: 0083
Original filename:
0083-WebUI-Fix-DeviceTestScriptError.patchOriginal patch:
''https://github.com/OpenCCU/OpenCCU/blob/2396923033e90ba84b7c0fc4d50463da3c4bf136/buildroot-external/package/openccu-base/rootfs-patches/0083-WebUI-Fix-DeviceTestScriptError.patch''Original issue: OpenCCU/OpenCCU#939 (fixed by OpenCCU/OpenCCU#941)
::UpdateUI()insrc/webui/rega/www/esp/system.fniterates overdom.TestRunningIDs()and treats every entry as a channel, callingDevice()andChnGroupPartnerId()on it. When the function test is started for a whole device in the general device settings, the list can also contain the device ID. The channel methods then fail on the device object, and ReGaHss logs aScriptRuntimeErrorabout every 3 seconds while the test is running. This change only processes entries that are channels (IsTypeOf( OT_CHANNEL )).OpenCCU rootfs patches 0035, 0039, 0044, 0073 and 0075 also modify this file and precede 0083 in the series. None of their hunks covers this line, and the line count is unchanged, so they all still apply unchanged.
Validation
scripts/base-patch-migration.py validatewith the canonical Buildroot 2026.08git4archive of this branch (3115152f, sha256d6e3a7d6366d548d968d30f6a3b66370b0ac18fc12420dd4ec7b48a97680ae70) and--skip-patch 0083: PASS (the other 120 rootfs patches apply with zero fuzz).compareagainst the current pin baseline (f484a5bf, all 121 patches at OpenCCU23969230): IDENTICAL (4668 entries).OpenCCU cleanup PR (patch removal, pin and archive hash update): OpenCCU/OpenCCU#4281
Summary by CodeRabbit