Jobs involving squad that are not implemented in squad-client or squad-report.
❯ pipenv run ./squad-list-changes -h
usage: squad-list-changes [-h] --group GROUP --project PROJECT --build BUILD --base-build BASE_BUILD
List all changes for a squad build, compared to a base build
optional arguments:
-h, --help show this help message and exit
--group GROUP squad group
--project PROJECT squad project
--build BUILD squad build
--base-build BASE_BUILD
squad build to compare to
❯ pipenv run ./squad-list-changes --group=lkft --project=linux-next-master-sanity --build=next-20211020 --base-build=next-20211020
[]
❯ pipenv run ./squad-list-changes --group=lkft --project=linux-next-master-sanity --build=next-20211020 --base-build=next-20211019 > changes.json
❯ jq '.[] | select(.change=="regression")' changes.json | jq --slurp
❯ pipenv run ./squad-list-results -h
usage: squad-list-results [-h] --group GROUP --project PROJECT --build BUILD
List all results for a squad build
optional arguments:
-h, --help show this help message and exit
--group GROUP squad group
--project PROJECT squad project
--build BUILD squad build
❯ pipenv run ./squad-list-results --group=lkft --project=linux-next-master-sanity --build=next-20211022 > results.json
❯ jq '.[] | select(.status=="fail")' results.json
filters = {
"has_known_issues": False,
"result": False,
}
tests = build.tests(count=ALL, **filters).values()❯ pipenv run ./squad-list-failures -h
usage: squad-list-failures [-h] --group GROUP --project PROJECT --build BUILD
List all results for a squad build
optional arguments:
-h, --help show this help message and exit
--group GROUP squad group
--project PROJECT squad project
--build BUILD squad build
❯ pipenv run ./squad-list-result-history -h
usage: squad-list-result-history [-h] --group GROUP --project PROJECT --build BUILD --environment ENVIRONMENT --suite SUITE --test TEST
List the result history of a test
optional arguments:
-h, --help show this help message and exit
--group GROUP squad group
--project PROJECT squad project
--build BUILD squad build
--environment ENVIRONMENT
squad environment
--suite SUITE squad suite
--test TEST squad test
❯ pipenv run ./squad-list-test --help
usage: squad-list-test [-h] --group GROUP --project PROJECT --build BUILD --environment ENVIRONMENT --suite SUITE --test TEST
List data about a test
optional arguments:
-h, --help show this help message and exit
--group GROUP squad group
--project PROJECT squad project
--build BUILD squad build
--environment ENVIRONMENT
squad environment
--suite SUITE squad suite
--test TEST squad test
Given a test, get all of the data about it
pipenv run ./squad-list-test --group=lkft --project=linux-next-master --build=next-20211206 --environment=x86_64 --suite=build --test=gcc-10-allnoconfig
Example output
{
"url": "https://qa-reports.linaro.org/api/tests/2142352489/",
"id": 2142352489,
"name": "build/gcc-10-allnoconfig",
"short_name": "gcc-10-allnoconfig",
"status": "pass",
"result": true,
"log": null,
"has_known_issues": false,
"suite": "build",
"known_issues": [],
"build": "next-20211206",
"environment": "x86_64",
"group": "lkft",
"project": "linux-next-master",
"metadata": {
"download_url": "https://builds.tuxbuild.com/21uE4xyDMQuUlvCJbZWkSZKVPEL/",
"git_describe": "next-20211206",
"git_ref": null,
"git_repo": "https://gitlab.com/Linaro/lkft/mirrors/next/linux-next",
"git_sha": "5d02ef4b57f6e7d4dcba14d40cf05373a146a605",
"git_short_log": "5d02ef4b57f6 (\"Add linux-next specific files for 20211206\")",
"kconfig": [
"allnoconfig"
],
"kernel_version": "5.16.0-rc4",
"git_commit": "5d02ef4b57f6e7d4dcba14d40cf05373a146a605",
"git_branch": "master",
"make_kernelversion": "5.16.0-rc4",
"config": "https://builds.tuxbuild.com/21uE4xyDMQuUlvCJbZWkSZKVPEL/config"
}
}
❯ pipenv run ./squad-list-metrics --help
usage: squad-list-metrics [-h] --group GROUP --project PROJECT --build BUILD
List all of the metrics for a squad build
optional arguments:
-h, --help show this help message and exit
--group GROUP squad group
--project PROJECT squad project
--build BUILD squad build
❯ pipenv run ./squad-list-metrics --group=lkft --project=linux-next-master-sanity --build=next-20211118 > results.json
❯ jq '.[] | select(.result>0.0)' results.json | jq --slurp
This (alpha) project is managed on github at https://github.com/Linaro/squad-client-utils
Open an issue at https://github.com/Linaro/squad-client-utils/issues
Open a pull request at https://github.com/Linaro/squad-client-utils/pulls
For major changes, please open an issue first to discuss what you would like to change.