github / github/codeql-cli-binaries
codeql run test doesn't match absolute fs paths in graph queries
- Linguagem predominante
- Sem dados de linguagem
- Estrelas
- 1k
- Forks
- 184
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Domínio
- cli, testing
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100