How a project integrates QA-Board
This guide is for whoever sends a project's results to QA-Board: you wrap your code with qa, and the web app shows
every commit's outputs and metrics next to a reference's. The integration decides what the web app shows for your
project, so it fits the way your team reviews. This page shows what you can get, how the pieces fit, then the steps, in
order. Looking at results that someone else set up? Read the user guide.
- Coding agentsLet a coding agent do it
Coding agents such as Claude Code do most of an integration with the skill: they wrap your code, declare metrics and visualizations, set up CI, and check their work. You review the change.
- Step by stepTutorial: your project
The short path, for your stack: wrap your code, run it on your test set, then in CI.
- Notebooks, W&B, MLflowAlready logging from your code?
Create runs from a training loop or a notebook, or from code written for W&B or MLflow. Files other tools wrote go in with
qa upload.
QA-Board was born at Samsung in 2018, where it is the central quality platform for ~50 projects in production, with more than 40 million runs.
What you get
For each commit, the web app compares your runs with the reference's: metrics first, then the files your code wrote, like images with synced zoom and their difference.
What your integration decides, and the page that shows how:
| Make the web app show | With | See |
|---|---|---|
| Your metrics, with their label, unit, target and which way is better, in the tables and History | what run() returns, qa/metrics.yaml | Metrics |
| Your output files next to the reference's, in the viewer each needs: images, videos, plots, point clouds, text and HTML reports | outputs.visualizations | Visualizations, Viewers and formats |
| Test reports, benchmark suites and profiles, against the reference's | the files your tools write | Upload results, Benchmarks, Flame graphs |
| Batches on your computer, a cluster or Kubernetes, and every commit in CI | runners, a CI job | Where runs execute, CI integration |
| Tuning and automated tuning from the browser | artifacts, a runner the server uses | Tuning from the web app, Automated tuning |
| Links, badges and CI jobs in the Integrations menu | integrations in qaboard.yaml | Integrations menu |
| A verdict on each commit, in CI and on the pull request (experimental) | qa gate, gate: rules | Quality gate |
How it works
Where your code runs: your computer, a CI runner, a cluster
┌───────────────────────────────────────────────────────────┐
│ qa batch ci │
│ └─ for each input and configuration of the batch: │
│ run(context) in qa/main.py ──► your code │
└─────┬───────────────────────────────────────────┬─────────┘
│ output files │ metrics, status, commit
▼ ▼
┌────────────────────────────┐ reads ┌─────────────────────────┐
│ storage, e.g. /mnt/qaboard │ ◄────── │ QA-Board server │
│ the same path everywhere │ │ database, API, web app │
└────────────────────────────┘ └────────────┬────────────┘
▼
people: each commit next to its reference
qaruns your code where you start it. It's a command line, in Python. For each run (one input, one configuration) it calls therun(context)function of your qa/main.py, which calls your code: a Python function, or any executable.- Output files go on a shared storage. Your code writes them in
context.output_dir, a folder on a storage that the server and every machine runningqamount at the same path, by default/mnt/qaboard, often an NFS share. Machines that can't mount it send their files to the server instead. - Metrics go to the server.
qasends whatrun()returns, with the run's status and the commit it ran on, to the server's API. - The web app compares. It shows a commit's runs next to the reference's: by default, the latest results of your reference branch.
- Scripts and agents read the same results. The web app reads them from the server's HTTP API, and so can your
scripts, CI jobs and agents: from Python with
qaboard.runs(url)(results in scripts), or from any language (HTTP API). - qaboard.yaml, at the root of your repository, tells
qahow to run your code, where your inputs are, and how to show your metrics and files.
The words QA-Board uses (batch, run, configuration, milestone...) are explained in Key concepts.
The steps
To try each step on your own code, follow the tutorial: it walks through them for your stack (GitHub or GitLab, Docker Compose or Kubernetes, Python or any executable). The times below are rough, for a project whose code already runs from a script.
-
Install
qa, about 5 minutes:pip install qaboardwhere your code's dependencies are, and setQABOARD_URLto your server. You get:qa --helpworks. See Installation. No server yet? The quickstart starts one on your computer; for your team, see Starting a server. -
Create qaboard.yaml, about 5 minutes: run
qa initat the root of your repository, then check the project's name, its reference branch, andstorage: the results folder your server reads. You get: qaboard.yaml and aqa/folder with main.py, batches.yaml and metrics.yaml. See Project setup. -
Point to your inputs, about 10 minutes: set the folder they're in,
inputs.database. You get:qafinds an input from its path in that folder. See Inputs. -
Wrap your code, from 30 minutes to a few hours: in
run(context), call your code oncontext.input_path, with the settings incontext.params, and write its files incontext.output_dir. You get:qa run --input <an-input>runs your code and prints its log and metrics. See Running your code and Configurations. -
Return metrics, about 15 minutes: return a dict from
run(), and declare each metric's label, unit, target, and whether smaller is better. You get: metrics in the Summary, the tables and Trends, with regressions in red. See Metrics. -
Show your files, about 15 minutes: list them under
outputs.visualizationsin qaboard.yaml. You get: images side by side with synced zoom, plots over the reference's, videos in sync. See Visualizations and Viewers and file formats. -
Run a batch, about 10 minutes: list inputs and configurations in qa/batches.yaml, then run
qa batch <batch>. You get: a link to the commit page, with your runs. See Batches of inputs.qa batch prints the link to the results, then runs the code on each input and configuration. -
Pick a runner, from 15 minutes to an hour: by default,
qa batchdoes the runs on the machine where you start it, one per CPU with the qaboard.yaml ofqa init(the local runner). Other runners send them to an LSF, Slurm, PBS or SGE cluster, to Kubernetes, or to Celery workers: see Choose where runs execute, and Coming from another tool if you run evaluations with MLflow, W&B Launch, ClearML or job arrays today.qa doctorchecks the setup. You get: a batch's runs on many machines at once. -
Run in CI, about 30 minutes: run
qa batch cion every push, on CI runners that mount the storage or send their files, and connect your git host. You get: every commit's results, compared with the reference branch, shown as CI. See CI integration.
When you need them
- Tuning from the web app: people run batches with other parameters from the web app, without a checkout. It needs your build's artifacts and a runner the server can use. See Tuning from the web app, Artifacts, and for the server's admins, Run batches from the web app.
- Automated tuning:
qa optimizesearches the parameters that give the best metrics, from the CLI or the web app. See Automated tuning with qa optimize, and, for the people who tune, Find the best parameters automatically. - A quality gate (experimental):
qa gatefails the CI job when metrics regress against the reference. See Quality gate. - Integrations: links and buttons in the web app's Integrations menu, to start CI jobs, call webhooks or open your other tools. See Integrations.
- Bit accuracy: check that a commit's output files didn't change at all. See Bit accuracy.
- Storage cleanup: delete old results and artifacts automatically. See Deleting old data.
Where to go next
- Hands-onTutorial: your project
Wrap your code, run it on your test set and in CI, and compare every commit with your reference branch.
- The wordsKey concepts
Projects, batches, runs, inputs, configurations, references and milestones, in plain words.
- ExamplesUse cases
Six demo projects, with their qaboard.yaml and what they look like in the web app.
- Try itQuickstart
A QA-Board server on your computer, with the demo projects.