Skip to main content

Artifacts

Artifacts are the files a commit needs to run again: its build, wrapper scripts, trained models or calibration data. Your CI saves them with qa save-artifacts, in the results storage. QA-Board then uses them to redo runs and to tune from the web app, without a checkout or a build.

Save them in CI​

  1. List the files in qaboard.yaml, in named groups of glob patterns:

    qaboard.yaml
    artifacts:
    binary:
    glob: build/my-tool
    configurations:
    globs:
    - configurations/*.json
    - "*.yaml"
  2. In your CI job, save them after the build, before the runs:

    make
    qa save-artifacts
    qa batch ci

qa save-artifacts always saves qaboard.yaml, qa/, the metrics and batches files, and the .envrc files, even without artifacts in qaboard.yaml. Patterns are relative to the project's root.

  • To save only some groups: qa save-artifacts binary. The files qa always saves are then left out.
  • To save other files: qa save-artifacts --file 'build/*'.

Without a shared storage​

When runs send their results to the server (no storage in qaboard.yaml, or storage: upload), the same CI step sends the artifacts to the server:

make
qa save-artifacts # with QABOARD_TOKEN, like the results

It prints the commit's page, where people can then start runs and tuning and redo runs, as with a shared storage. Files the server already has for the commit aren't sent again, and qa warns about a group of artifacts that matches no files, e.g. saved before the build.

Where the runs execute depends on the server's runner:

  • On the server's machine, when its admins allow it (by default, the server starts no batches), in QA-Board's own container, with only what it has installed: fine for self-contained binaries and scripts.
  • On Kubernetes, in your image, which needs qa and what your code needs besides the artifacts. The pods download the artifacts first, and must reach the server.

With the LSF or Celery runners, or a runners.default in qaboard.yaml whose machines don't share the server's folders, QA-Board can't start them yet: start these batches from CI with qa batch.

Download a commit's artifacts
cd "$(qa fetch-artifacts --project group/repo --commit 3fa91c02d4e7b8150b6d1c3a8e2f4d5c6b7a8e9f)"

It downloads them into ~/.cache/qaboard/artifacts (or $QABOARD_ARTIFACTS_CACHE), checks each file's SHA-256, and prints the project's folder in the copy (--root: the repository's). Fetched again, the same artifacts are only listed, not downloaded. Nothing is removed from the cache.

The runs of batches QA-Board starts send their results with a token it gives the batch, of the person who started it: it reads the project, and only sends results to this batch (its commit and label). It ends when the batch is stopped, or soon after its last run ends.

Compare them with the reference's​

The commit page's Artifacts & Configs view compares each commit's artifacts with the reference's.

Artifacts & Configurations of the per-channel commit against the first int8 commit: build/flags.json differs, and its diff shows quant_per_channel going from false to true.Artifacts & Configurations of the per-channel commit against the first int8 commit: build/flags.json differs, and its diff shows quant_per_channel going from false to true.
Between two quantization commits, only build/flags.json changed: its diff shows which flags.

Where artifacts are saved: Where is the data saved?. When they are deleted, and how QA-Board recreates them: Deleting old data.