Skip to content

Add script to parse and report latency times for AI tests

John McDonnell requested to merge jmd/mermaid-ai-latency-report into main

Adds script that can be used to publish a running history of the P90 results time for a given script.

The first aim for this script is to be useful in helping in reporting the AI latency times, but this should be usable in other contexts as well.

Usage:

`WIKI_PROJECT_ACCESS_TOKEN` should be a token which can write to the wiki passed in `--wiki-api-url`

# Assume test results exist, if not generate some results 
$ ACCESS_TOKEN=$GITLAB_QA_ACCESS_TOKEN ./bin/run-k6 --options 10s_1rps.json --environment gdk.json  --tests  ./tests/experimental/ 

# With test results in the default location
$  WIKI_PROJECT_ACCESS_TOKEN=$GITLAB_QA_ACCESS_TOKEN ./bin/ci-report-results-latency-wiki --pipeline-link=http://gdk.test:3000/john/pipeline/link/10 --result-size=5 --report-base-slug UsEast4EuWest9 --wiki-api-url http://gdk.test:3000/api/v4/projects/652/wikis

Output Report should look something like:

image

Edited by John McDonnell

Merge request reports