Skip to content

fix: improve log keyword filtering and bump version to 5.0.2 - #1268

Merged
hidb4ai merged 1 commit into
oceanbase:masterfrom
askdb:codex/fix-1267-log-keyword-handling
Oct 21, 2026
Merged

hidb4ai merged 1 commit into
oceanbase:masterfrom
askdb:codex/fix-1267-log-keyword-handling

Conversation

@askdb

@askdb askdb commented Oct 21, 2026

Copy link
Copy Markdown
Member

Summary

analyze log and log gathering now handle --grep consistently. Repeated filters are applied sequentially so that each output line satisfies every expression, while existing grep regular expression support is preserved.

  • Share keyword filtering logic across local analysis and Observer, OBProxy, and OMS log collection.
  • Improve file path handling while preserving append behavior for local analysis and direct copying of compressed logs during collection.
  • Update command help and the English and Chinese usage documentation, with regression coverage for filtering behavior and argument handling.
  • Bump the package and build versions from 5.0.1 to 5.0.2.

Closes #1267.

Validation

Local validation on macOS with Python 3.14.3:

  • Focused regression passed: 15 tests and 39 subtests. Expanded regression found no newly introduced failures.
  • The common unittest suite passed: 114 tests.
  • Three CLI checks passed, including filtered and unfiltered local analysis.
  • Black 24.8.0 passed with -S -l 256 across 445 Python files.
  • Python file header checks passed on the clean repository snapshot, and git diff --check passed.
  • Node-side filtering paths were validated using isolated local execution; no live cluster was used.

@hidb4ai hidb4ai left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hidb4ai
hidb4ai merged commit c570582 into oceanbase:master Oct 21, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve keyword handling in analyze log and log gathering

2 participants