Skip to content

Address release 0.7.0 review findings#228

Merged
neuromechanist merged 1 commit intodevelopfrom
fix/review-findings-release-0.7.0
Feb 25, 2026
Merged

Address release 0.7.0 review findings#228
neuromechanist merged 1 commit intodevelopfrom
fix/review-findings-release-0.7.0

Conversation

@neuromechanist
Copy link
Member

Summary

Addresses all findings from the PR #218 release review (code-reviewer, silent-failure-hunter, test-analyzer).

Error Handling (C1-C4, H1-H3)

  • Add logger.warning to silent except blocks in CLI load_config(), load_credentials(), _migrate_legacy_config()
  • Log credential file permission fallbacks with security-relevant warnings
  • Upgrade SSE malformed event log from debug to warning level
  • Narrow except Exception to (AttributeError, KeyError, TypeError) in health computation
  • Narrow except Exception to (AttributeError, ValueError, RuntimeError, OSError, ImportError) in LangFuse tracing

Structured Logging (H4)

  • Restore extra={} dict in env var warning log for observability tools

Test Coverage (T1-T3)

  • Add TestWidgetConfigLogoUrl: 12 tests for URL validator (XSS prevention), resolve() fallback precedence
  • Add TestFindLogoFile: 4 tests for convention-based file detection
  • Add TestConventionLogoUrl: 3 tests for helper function
  • Add TestLogoEndpoint: 4 tests for SVG CSP header, 404, media types
  • Add TestLogoInCommunityConfig: 1 test for logo_url in API responses

Test plan

  • All 1525 tests pass (75 new)
  • Coverage at 69%
  • Linting passes

- Add logging to silent except blocks in CLI config/credentials
  loading so failures are visible to users and operators
- Log credential permission fallbacks with security warnings
- Upgrade SSE malformed event log from debug to warning level
- Narrow bare except Exception to specific types in health
  computation and LangFuse tracing setup
- Restore structured extra={} dict in env var warning log
- Add logo feature tests: URL validator, find_logo_file,
  convention_logo_url, /logo endpoint (CSP, 404, media types),
  resolve() fallback precedence
@neuromechanist neuromechanist merged commit c8548ff into develop Feb 25, 2026
4 checks passed
@neuromechanist neuromechanist mentioned this pull request Feb 25, 2026
4 tasks
@neuromechanist neuromechanist deleted the fix/review-findings-release-0.7.0 branch March 2, 2026 18:53
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.

1 participant