Artifacts¶
Workspace › Artifacts is the workspace's file store: the files the tests set or hand over — firmware images, parameter sets, reference pictures. Each is kept under a name, and steps and variants tables use it by that name. Every run records the name, the size and the sha256 of the file it used, so a report says exactly which file was tested.
The list¶
One row per artifact: its name and description, the file type, the size, the first eight characters of its sha256 (copy the full one with the button beside it), where it is kept, who added it and when, and where it is used.
- Kept: In the history — the file goes into the workspace history with everything else.
- Kept: Local only — only its description goes into the history; the file stays on the machine it was added on. Another machine does not have it, and a run there asks for the file and checks that its sha256 matches. Nothing of that is remembered: the next run asks again.
- Used in — the test cases whose variants table names it in a column that fills a file, the defaults of parameters that take a file, the block and Python steps and simulations that name it, and the bindings that fix it for a bench.
An entry from an older version that has only a file name stands as File missing. Add the file… gives it its file; until then a run cannot use it.
Adding one¶
Add artifact… — or drop files anywhere on the page. Choose the file, give it a name (the page proposes one from the file name) and, if you like, a description. The sha256 is worked out on this machine while the file is read.
A name is unique and has no / \ : | " < > * ? — it stands in sentences and
in variants tables. A taken name is said at the field.
From 50 MB the dialog asks keep it local?: a file that size makes the history heavy for everyone. It only asks; ticking Local only is yours.
Changing one¶
Click a row to open it on the right.
- Description — change it and Save.
- Kept — switch between In the history and Local only. Turning an artifact local only asks first: from then on only its description goes into the history, but a file it already put there stays there — the history is never rewritten.
- Download — the file itself, for example to flash by hand.
- New version… (in the ⋯) — the content of an artifact never changes, so a new version is a new artifact with its own name and sha256. The name is proposed, the description and Local only are taken over. Test cases keep using the old one until you add the new one to their variants table.
- Rename… — asks first and says how many test case lines use the name. It changes the cells of columns that fill a file and the defaults of parameters that take a file — recognised by the step and the type of what the placeholder fills, not by the word. Block steps, Python steps, simulations and bindings that name it are listed as not changed — update by hand. Runs that used the old name keep it in their reports.
- Remove… — says what uses it and what follows: such a row no longer runs, because of the test case, not the unit. Its description stays in the history, and every run that used it keeps its name, size and sha256; the file itself goes.
While a run is going, renaming, removing and switching Kept wait until it has finished — they change what the run uses.
Where it is kept¶
artifacts/index.json |
The list: name, file name, file type, size, sha256, description, who added it and when, local only. In the history. |
artifacts/<name>/ |
The file of an artifact kept in the history. |
local/artifacts/<name>/ |
The file of an artifact kept local only — not in the history. |
artifacts.json |
The list of an older version (name → file name). Read until the first change on this page, and never written: an older version that saves its page then overwrites nothing of this one. |
Every action is its own change in the history — add artifact psu-fw-1.3, describe artifact …, rename artifact … to … (with the test cases it changed in the same change), keep artifact … local only, remove artifact …. History in an artifact opens Changes on its list.
An assistant reads the artifacts with list_artifacts; adding, renaming and
removing them is done by a person on this page.