Skip to content

Fix/low severity cleanups#81

Merged
lesnik512 merged 2 commits intomainfrom
fix/low-severity-cleanups
May 2, 2026
Merged

Fix/low severity cleanups#81
lesnik512 merged 2 commits intomainfrom
fix/low-severity-cleanups

Conversation

@lesnik512
Copy link
Copy Markdown
Member

No description provided.

lesnik512 added 2 commits May 2, 2026 13:18
…test code, handler leak)

- helpers/path.py: allow dots in VALID_PATH_PATTERN (e.g. /api.v1/metrics)
- bootstrappers/base.py: standardize "is not ready: {reason}" format
- bootstrappers/fastapi_bootstrapper.py: fix "is differ" -> "differs"
- tests/instruments/test_sentry_instrument.py: remove unused LoggingIntegration() expression and import
- instruments/logging_instrument.py: track handlers created by MemoryLoggerFactory and close them (plus restore propagate=True) on LoggingInstrument.teardown
Use a dataclasses.field with default_factory=lambda: None so the slot is
properly initialized on subclasses (FastAPILoggingInstrument etc.). With a
plain default=None the inherited init=False field is silently skipped in the
subclass-generated __init__ when parent has slots=True.
@lesnik512 lesnik512 self-assigned this May 2, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
lite_bootstrap/bootstrappers/base.py 100.00% <100.00%> (ø)
...te_bootstrap/bootstrappers/fastapi_bootstrapper.py 100.00% <ø> (ø)
lite_bootstrap/helpers/path.py 100.00% <100.00%> (ø)
lite_bootstrap/instruments/logging_instrument.py 100.00% <100.00%> (ø)
tests/instruments/test_sentry_instrument.py 100.00% <ø> (ø)
tests/test_fastapi_bootstrap.py 100.00% <100.00%> (ø)
tests/test_free_bootstrap.py 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lesnik512 lesnik512 merged commit 3febf3b into main May 2, 2026
13 of 14 checks passed
@lesnik512 lesnik512 deleted the fix/low-severity-cleanups branch May 2, 2026 10:47
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