Skip to content

feat: Bump version to 0.2.4 and add log parsing functionality - #22

Merged
Ajimaru merged 1 commit into
mainfrom
dev
Jul 5, 2026
Merged

Ajimaru merged 1 commit into
mainfrom
dev

Conversation

@Ajimaru

@Ajimaru Ajimaru commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Description

  • Updated version number in _version.py and pyproject.toml to 0.2.4.
  • Introduced log_parser.py for shared log-line parsing across components.
  • Refactored log_searcher.py to utilize the new log_parser for parsing log lines.
  • Updated log_tailer.py to use log_parser for consistent log line handling.
  • Added unit tests for log_parser to ensure correct parsing of various log formats.
  • Enhanced RateLimiter in security.py to include automatic cleanup of expired entries.
  • Adjusted maximum alert history entries in settings template from 1000 to 500.
  • Improved JavaScript code for clarity and removed unused functions related to alert sounds.
  • Added tests for log tailer to verify detection of log file truncation and correct retrieval of last N lines.

Related Issues

Type of Change

  • Bugfix
  • Feature
  • Docs
  • Refactor
  • Security

Checklist

  • Description of change
  • Related issue(s)
  • Tests added / updated
  • Documentation updated
  • CHANGELOG.md entry added

@Ajimaru Ajimaru added bug Something isn't working documentation Improvements or additions to documentation labels Jul 5, 2026
@Ajimaru Ajimaru self-assigned this Jul 5, 2026
@Ajimaru
Ajimaru marked this pull request as ready for review July 5, 2026 18:06
@Ajimaru

Ajimaru commented Jul 5, 2026 •

Copy link
Copy Markdown
Owner Author

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codacy-production

codacy-production Bot commented Jul 5, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 86 complexity · 0 duplication

Metric Results
Complexity 86
Duplication 0

View in Codacy

🟢 Coverage 93.26% diff coverage · +0.55% coverage variation

Metric Results
Coverage variation ✅ +0.55% coverage variation (-1.00%)
Diff coverage ✅ 93.26% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (8de4910) Report Missing Report Missing Report Missing
Head commit (8a51649) 2348 (+1226) 1936 (+1017) 82.45% (+0.55%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#22) 178 166 93.26%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Jul 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.07865% with 23 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
octoprint_logmonitor/__init__.py 73.80% 12 Missing and 10 partials ⚠️
octoprint_logmonitor/log_tailer.py 95.45% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Squashed dev onto main to linearize history and drop a duplicate
actions/checkout bump that made the PR un-rebasable on GitHub. main
already contained no commits absent from dev, so no main-side work is
lost.

Includes:
- log_parser module and tests
- regenerated messages.pot / German catalog (no stray build/lib paths)
- copy-truncate rotation test split to remove a 3.12 thread race
- ruff per-file-ignore for tests, codespell typo fix

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Ajimaru
Ajimaru merged commit dec472a into main Jul 5, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant