Skip to content

1.3.8 perf: hoist CoverageWrapper, cache exclusion patterns, fix config CWD bug#25

Merged
BarnabasG merged 1 commit into
mainfrom
initial
May 4, 2026
Merged

1.3.8 perf: hoist CoverageWrapper, cache exclusion patterns, fix config CWD bug#25
BarnabasG merged 1 commit into
mainfrom
initial

Conversation

@BarnabasG
Copy link
Copy Markdown
Owner

@BarnabasG BarnabasG commented May 4, 2026

1.3.8 perf: hoist CoverageWrapper, cache exclusion patterns, fix config CWD bug

  • Move CoverageWrapper class to module level to avoid re-creating the class, frozenset, and method bodies on every test invocation (15.9x)
  • Add discovery_complete flag to SessionData so _discover_openapi_endpoints and _discover_app_endpoints short-circuit with a single bool check after the first successful discovery (5.6x)
  • Extract exclusion pattern compilation into @lru_cache-decorated _compile_exclusion_patterns() to avoid recompiling regex on repeat calls
  • Fix read_toml_config() to resolve pyproject.toml relative to pytest's rootpath instead of CWD, preventing silent config loss in CI/monorepos

… bug

- Move CoverageWrapper class to module level to avoid re-creating the
  class, frozenset, and method bodies on every test invocation (15.9x)
- Add discovery_complete flag to SessionData so _discover_openapi_endpoints
  and _discover_app_endpoints short-circuit with a single bool check after
  the first successful discovery (5.6x)
- Extract exclusion pattern compilation into @lru_cache-decorated
  _compile_exclusion_patterns() to avoid recompiling regex on repeat calls
- Fix read_toml_config() to resolve pyproject.toml relative to pytest's
  rootpath instead of CWD, preventing silent config loss in CI/monorepos
@BarnabasG BarnabasG merged commit 0dc37dc into main May 4, 2026
16 checks passed
@BarnabasG BarnabasG changed the title 1.3.7 perf: hoist CoverageWrapper, cache exclusion patterns, fix config CWD bug 1.3.8 perf: hoist CoverageWrapper, cache exclusion patterns, fix config CWD bug May 4, 2026
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