github / github/codeql-cli-binaries
codeql run test doesn't match absolute fs paths in graph queries
- 主要語言
- 沒有語言資料
- 星號
- 1k
- 分支
- 184
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Per @max-schaefer `codeql run test` should adapt queries that emit absolute FS paths such that they pass when run in a different environment. For example my test emits `# 0| [File] /home/chris/codeql-home/codeql-go/ql/test/library-tests/semmle/go/PrintAst/input.go` but the test doesn't work when the `.expected` file uses a truncated relative version of that path, or when it uses a different absolute path and the .actual uses the absolute path appropriate to a different environment.
貢獻指南
研究方向
Begin at the `codeql run test` entry point and reproduce the absolute-path mismatch described in the issue. Determine how expected and actual output should be normalized across environments; done means the example passes with relative or differing absolute paths while preserving other output comparisons.
由索引模型根據 Issue 內容生成。
評估
- 領域
- cli, testing
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100