github / github/codeql-cli-binaries

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

Aberta
#36 3 comentários 0 reações 0 responsáveis Ver no GitHub
CLI
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

Abrir o 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

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.