Skip to content
This repository was archived by the owner on Nov 15, 2025. It is now read-only.

Fix VS Code request#10

Merged
christso merged 6 commits into
mainfrom
fix/vscode-request
Oct 15, 2025
Merged

Fix VS Code request#10
christso merged 6 commits into
mainfrom
fix/vscode-request

Conversation

@christso

Copy link
Copy Markdown
Contributor

No description provided.

@christso christso requested a review from Copilot October 15, 2025 13:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements comprehensive test coverage for the YAML parser module and addresses path resolution issues in the VS Code request handling. It also includes updates to test files to use updated instruction markers and package naming fixes.

  • Adds complete unit test coverage for YAML parser path resolution and guideline detection
  • Fixes VS Code request format by switching from file:// schemes to proper file URIs
  • Updates example files to use distinct instruction markers per language type

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/tests/test_yaml_parser.py New comprehensive test suite for YAML parser functionality
src/tests/test_signatures.py Remove 'outcome' field validation from QuerySignature test
src/tests/test_models.py Update VS Code model tests to handle absolute paths and new preread format
src/tests/test_cli.py Enhanced CLI tests with LLM judge validation and prompt dumping
src/diagnostics/dspy_diag.py Fix package name capitalization
src/bbeval/yaml_parser.py Enhanced path resolution with verbose logging and absolute path handling
src/bbeval/models.py Update VS Code preread block format and file URI generation
src/bbeval/cli.py Add prompt dumping functionality and package name fixes
src/bbeval/init.py Fix package name capitalization
pyproject.toml Bump version to 0.1.8
docs/examples/simple/prompts/python.instructions.md Update instruction marker to language-specific version
docs/examples/simple/prompts/javascript.instructions.md New JavaScript instruction file with unique marker
docs/examples/simple/evals/example.test.yaml Update test expectations to use language-specific markers
docs/examples/simple/.gitignore Add BbEval-specific ignore patterns
AGENTS.md Add reference to base instructions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/tests/test_cli.py
mock_judge_instance.assert_called_once_with(
expected_outcome=test_case.outcome,
task_requirements=test_case.task,
request=test_case.task,

Copilot AI Oct 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter name 'request' in the mock judge call should match the signature field name. Based on the context, this should likely be 'task_requirements' to match the QualityGrader signature expectations.

Suggested change
request=test_case.task,
task_requirements=test_case.task,

Copilot uses AI. Check for mistakes.
Comment thread src/bbeval/yaml_parser.py
Comment on lines +175 to +178
# Show all attempted paths for better debugging
attempted = "\n ".join(str(p) for p in attempted_paths)
print(f"\033[33mWarning: File not found: {file_path_display}")
print(f" Tried:\n {attempted}\033[0m")

Copilot AI Oct 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ANSI color codes are hardcoded and repeated throughout the codebase. Consider extracting these into constants or a utility function for consistent warning message formatting.

Copilot uses AI. Check for mistakes.
Comment thread src/bbeval/models.py
)

return f"## 1. Mandatory Pre-Read\n\n{consolidated_instruction}\n\n"
return f"[[ ## mandatory_pre_read ## ]]\n\n{consolidated_instruction}\n\n"

Copilot AI Oct 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section headers like '[[ ## mandatory_pre_read ## ]]' appear to be magic strings used for VS Code formatting. These should be defined as constants to avoid duplication and make their purpose clearer.

Copilot uses AI. Check for mistakes.
Comment thread src/bbeval/cli.py
Comment on lines +154 to +155
sanitized = re.sub(r'[^A-Za-z0-9._-]+', '_', value)
return sanitized or "prompt"

Copilot AI Oct 15, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fallback value 'prompt' is a magic string. Consider defining this as a constant like DEFAULT_FILENAME_PREFIX = 'prompt' to make the intent clearer and allow for easier changes.

Copilot uses AI. Check for mistakes.
@christso christso merged commit 2c25f33 into main Oct 15, 2025
@christso christso deleted the fix/vscode-request branch November 3, 2025 07:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants