github / github/codeql-cli-binaries

codeql run test doesn't match absolute fs paths in graph queries

オープン
#36 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
CLI
主要言語
言語のデータがありません
スター
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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

`codeql run test` のエントリポイントから始め、issue で説明されている絶対パスの不一致を再現してください。環境間で期待される出力と実際の出力をどのように正規化すべきかを判断してください。相対パスまたは異なる絶対パスを使用しても例が通り、その他の出力比較が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

領域
cli, testing
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。