Skip to main content

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.

A new denoiser: PSNR goes up, and so does the edge overshoot. The images show why: halos around the window frame.

What your integration decides, and the page that shows how:

Make the web app showWithSee
Your metrics, with their label, unit, target and which way is better, in the tables and Historywhat run() returns, qa/metrics.yamlMetrics
Your output files next to the reference's, in the viewer each needs: images, videos, plots, point clouds, text and HTML reportsoutputs.visualizationsVisualizations, Viewers and formats
Test reports, benchmark suites and profiles, against the reference'sthe files your tools writeUpload results, Benchmarks, Flame graphs
Batches on your computer, a cluster or Kubernetes, and every commit in CIrunners, a CI jobWhere runs execute, CI integration
Tuning and automated tuning from the browserartifacts, a runner the server usesTuning from the web app, Automated tuning
Links, badges and CI jobs in the Integrations menuintegrations in qaboard.yamlIntegrations menu
A verdict on each commit, in CI and on the pull request (experimental)qa gate, gate: rulesQuality 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
  • qa runs your code where you start it. It's a command line, in Python. For each run (one input, one configuration) it calls the run(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 running qa mount 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. qa sends what run() 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 qa how 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.

  1. Install qa, about 5 minutes: pip install qaboard where your code's dependencies are, and set QABOARD_URL to your server. You get: qa --help works. See Installation. No server yet? The quickstart starts one on your computer; for your team, see Starting a server.

  2. Create qaboard.yaml, about 5 minutes: run qa init at the root of your repository, then check the project's name, its reference branch, and storage: the results folder your server reads. You get: qaboard.yaml and a qa/ folder with main.py, batches.yaml and metrics.yaml. See Project setup.

  3. Point to your inputs, about 10 minutes: set the folder they're in, inputs.database. You get: qa finds an input from its path in that folder. See Inputs.

  4. Wrap your code, from 30 minutes to a few hours: in run(context), call your code on context.input_path, with the settings in context.params, and write its files in context.output_dir. You get: qa run --input <an-input> runs your code and prints its log and metrics. See Running your code and Configurations.

  5. 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.

  6. Show your files, about 15 minutes: list them under outputs.visualizations in 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.

  7. 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.
  8. Pick a runner, from 15 minutes to an hour: by default, qa batch does the runs on the machine where you start it, one per CPU with the qaboard.yaml of qa 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 doctor checks the setup. You get: a batch's runs on many machines at once.

  9. Run in CI, about 30 minutes: run qa batch ci on 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 optimize searches 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 gate fails 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.