Skip to content

[Cherry-pick] #150: [Fix] Adding commissioning types to the logs - #152

Merged
mergify[bot] merged 1 commit into
project-chip:v2.16-cli-developfrom
antonio-amjr:fix/log_commissioning_type-v2.16
Nov 27, 2026
Merged

mergify[bot] merged 1 commit into
project-chip:v2.16-cli-developfrom
antonio-amjr:fix/log_commissioning_type-v2.16

Conversation

@antonio-amjr

Copy link
Copy Markdown
Contributor

Fix: project-chip/certification-tool#1213

Changes

  • th_cli/test_run/logging.py: register the COMMISSIONING level (no=23, magenta bold, 🔑), matching the backend. Without it, logger.log(record.level, …) raises ValueError as soon as the backend sends this level.
  • th_cli/test_run/log_viewer.html: COMMISSIONING added to the default activeFilters, a new COMMISSION filter button, and a badge and row style so the message stands out from INFO lines.

Testing

  • Run on a Test Harness with th-cli run-tests -t TC_ACE_1.3,TC_IDM_13.1: both messages appear in the saved log file with the COMMISSIONING level, and the run completes without a level error.
  • On the :8998 log viewer, the [NO-AUTO-COMMISSION] row appears with the COMMISSIONING badge and the pink filter button.
  • No new CLI unit test was added for the level registration.
  • The terminal output of th-cli run-tests shows only the test tree and prompts, not log lines, so these messages are not visible on the terminal. They are in the log file and the viewer.

@antonio-amjr antonio-amjr self-assigned this Nov 27, 2026
@antonio-amjr antonio-amjr added the bug Something isn't working label Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CLI now registers the COMMISSIONING log level at level 23 with a key icon and magenta bold styling. The log viewer adds Commissioning-specific styles for filter buttons, log entries, and level labels. It also adds a Commissioning filter button and includes the level in the initially active filters.

Possibly related PRs

Suggested reviewers: greens

Merge Risk: Minimal · up to 28a8c

This change adds a COMMISSIONING log level to the CLI and a matching filter button, badge and row style in the log viewer. No concrete defect was found. The only open question is whether every supported backend uses the same level name, and nothing supplied suggests otherwise. The risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: adding COMMISSIONING log types to the logs, which matches the logging.py level registration and the log_viewer.html filter, badge, and style changes. It also carries the [C…
Description check Passed The description links issue #1213 and lists the changes to th_cli/test_run/logging.py and th_cli/test_run/log_viewer.html. It also gives test steps and results. It matches the changeset closely.
Linked Issues check Passed The only directly linked issue, #1213, is closed. Under the assessment rules, it supplies background only, so no active linked-issue coding requirements apply. The PR description and the linked issue …
Out of Scope Changes check Passed Both changed files implement one stated purpose: support the COMMISSIONING log level that the backend sends. The logging.py change registers level 23 with matching styling. Without this registration, …
Full details: Title check

Explanation

The title names the change: adding COMMISSIONING log types to the logs, which matches the logging.py level registration and the log_viewer.html filter, badge, and style changes. It also carries the [Cherry-pick] prefix and PR reference, which add noise but do not make it off-topic.

Full details: Linked Issues check

Explanation

The only directly linked issue, #1213, is closed. Under the assessment rules, it supplies background only, so no active linked-issue coding requirements apply. The PR description and the linked issue context both state that no active targets remain. The PR changes (COMMISSIONING level registration in th_cli/test_run/logging.py and the log viewer updates in th_cli/test_run/log_viewer.html) are not assessed against the closed issue's proposal items.

Full details: Out of Scope Changes check

Explanation

Both changed files implement one stated purpose: support the COMMISSIONING log level that the backend sends. The logging.py change registers level 23 with matching styling. Without this registration, logger.log(record.level, ...) raises ValueError, as the PR description states. The log_viewer.html change adds the COMMISSIONING filter default, filter button, badge, and row style so these messages display in the viewer. No unrelated change was identified in the PR summary. The PR does not add a CLI unit test, which is a gap in testing but not an out-of-scope change. Evidence came from the PR summary and description; source-level verification of the diff was not performed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 87da2b93-07ae-4996-b19c-57c45eb78174
Commits

Reviewing files that changed from the base of the PR and between a35fdcd and 28a8c76.

Files selected for processing: 2

  • th_cli/test_run/log_viewer.html
  • th_cli/test_run/logging.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@antonio-amjr antonio-amjr changed the title Cherry-pick #150: [Fix] Adding commissioning types to the logs [Cherry-pick] #150: [Fix] Adding commissioning types to the logs Nov 27, 2026
@mergify

mergify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Queue requested — the merge queue status continues in this comment ↓.

@mergify

mergify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Merged into v2.16-cli-develop as 67f245c at 15:54 UTC

Less than a minute in the queue, with no time running CI.

So far

  • ✅ Entered the queue Fri 27 Nov, 15:54 · rule default · triggered by @antonio-amjr with the merge queue checkbox
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged 15:54 · 67f245c

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 27, 2026
@mergify
mergify Bot merged commit 67f245c into project-chip:v2.16-cli-develop Nov 27, 2026
6 checks passed
@mergify mergify Bot removed the queued label Nov 27, 2026
@antonio-amjr
antonio-amjr deleted the fix/log_commissioning_type-v2.16 branch November 27, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants