Skip to content

Fix review issues: ValidationError assertion, clear_validate_cache import, GitHub Actions docs#274

Merged
p1c2u merged 2 commits intofeature/shortcut-cache-and-check-schema-fastpathfrom
copilot/sub-pr-273
Mar 1, 2026
Merged

Fix review issues: ValidationError assertion, clear_validate_cache import, GitHub Actions docs#274
p1c2u merged 2 commits intofeature/shortcut-cache-and-check-schema-fastpathfrom
copilot/sub-pr-273

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

Three review comments from PR #273 left the codebase with a misleading test assertion, a broken benchmark import, and a minor docs typo.

Changes

  • tests/unit/test_shortcut.py: Replace bare pytest.raises(Exception) in the ECMA-regex check_schema=False path with pytest.raises(ValidationError, match="is not a valid regular expression") — catches the right exception type and pins the expected message.
  • benchmarks/run.py: Fix import and call of _clear_validate_cacheclear_validate_cache; the underscore-prefixed name never existed, causing an ImportError on any benchmark run.
  • docs/contributing.rst: Correct "Github Action" → "GitHub Actions".

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…port, GitHub Actions doc

Co-authored-by: p1c2u <1679024+p1c2u@users.noreply.github.com>
Copilot AI changed the title [WIP] Speed up validate() with validator caching and optional schema-check Fix review issues: ValidationError assertion, clear_validate_cache import, GitHub Actions docs Mar 1, 2026
Copilot finished work on behalf of p1c2u March 1, 2026 21:18
@p1c2u p1c2u marked this pull request as ready for review March 1, 2026 21:32
@p1c2u p1c2u merged commit 00a1cce into feature/shortcut-cache-and-check-schema-fastpath Mar 1, 2026
16 checks passed
@p1c2u p1c2u deleted the copilot/sub-pr-273 branch March 1, 2026 21:32
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.

2 participants