AOSSIE-Org / AOSSIE-Org/OpenVerifiableLLM

[BUG]: verify_preprocessing() stores resolved path instead of original in VerificationReport

未关闭
#74 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
18
派生
31
平均合并
1 分钟
30 天内合并 PR
2

描述

### Bug Description

## Description
`verify_preprocessing()` calls `Path.resolve()` on the user-supplied
`input_dump` before storing it in `VerificationReport.input_dump`.
On Windows, `resolve()` can alter path casing via junction point
expansion, causing `report.input_dump != str(original_path)`.

## Failing Test
`tests/test_verify.py::TestHappyPath::test_report_stores_input_dump_path`

## Expected Behaviour
`report.input_dump` should equal the original path string passed by the caller.

## Actual Behaviour
On Windows, the stored path may differ in casing from the original.

### Steps to Reproduce

1. Clone the repository on Windows
2. Run `pytest tests/test_verify.py::TestHappyPath::test_report_stores_input_dump_path -v`
3. Observe the test fails

### Logs and Screenshots

image

### Environment Details

-OS : Windows 11

### Impact

Medium - Feature works but has issues

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。