Files
codeql/rust/ql/integration-tests/hello-workspace/test_workspace.py
Paolo Tranquilli 24eb65692f Rust: add some performance diagnostics
This outputs some duration counts for various parts of the extraction
process in the database in the form of telemetry diagnostics.

The diagnostics format was preferred to putting things in the relational
database as that will scale better to code scanning and is more flexible
as for the data we can put into it without passing through the dbscheme.
Also, although it's not the case yet, it will be possible to output
diagnostics even if creation of the database fails.
2024-11-26 16:35:38 +01:00

15 lines
683 B
Python

import pytest
# currently the DB-check fails on actions because of loading files multiple times and assiging multiple locations
# see https://github.com/github/codeql-team/issues/3365
@pytest.mark.ql_test("DB-CHECK", xfail="maybe")
def test_cargo(codeql, rust, manifests, check_source_archive, rust_check_diagnostics):
rust_check_diagnostics.expected_suffix = ".cargo.expected"
manifests.select("Cargo.toml")
codeql.database.create()
def test_rust_project(codeql, rust, manifests, check_source_archive, rust_check_diagnostics):
rust_check_diagnostics.expected_suffix = ".rust-project.expected"
manifests.select("rust-project.json")
codeql.database.create()