Skip to content
Artifact kinds

Artifact kinds

GENERATED from src/firn/model/simplon/vocabulary/kinds.firn (the kinds) and src/firn/model/simplon/catalogue/tasks.firn (the ports) by ./simplon.sh build model.

An artifact names its kind; a port accepts a kind and every kind that refines it.

Kind Refines
artifact
image artifact
directory artifact
file artifact
homebrew-formula file
site directory
nuget artifact
maven artifact
conan artifact
test-result artifact
release-notes artifact
tag artifact
release artifact
github-release release
release-assets release

Ports

A catalogue task takes and gives artifacts through its ports. A port accepts a kind and every kind that refines it; a port that binds a parameter receives the bound artifact’s name in it.

A command binds a port with produces: { <port>: <artifact> } on an output and consumes: { <port>: <artifact> } on an input. The artifact is an artifacts: entry whose kind the port accepts. A port that binds a parameter hands the artifact’s name to it; with: { name: ... } on that parameter is read as the same binding, and simplon manifest migrate rewrites it into the port’s.

Task Port Direction Accepts Binds
docs:site site output site
test:image image input image name
test:image test-result output test-result results
build:image file input file
build:image image output image name
build:image-file image input image name
build:image-file file output file file
test:file file input file file
test:file test-result output test-result results
build:nuget-config nuget input nuget name
build:nuget-restore nuget input nuget name
build:conan-cache conan input conan name
build:fetch file output file name
deploy:up source input artifact
release:artifact directory input directory name
release:artifact evidence input test-result
build:nuget-pack nuget output nuget name
release:nuget nuget input nuget name
release:nuget evidence input test-result
release:conan conan input conan name
release:conan evidence input test-result
build:maven-pack maven output maven name
release:maven maven input maven name
release:maven evidence input test-result
build:homebrew-formula wheel input directory wheel
build:homebrew-formula formula output homebrew-formula formula
test:homebrew-formula formula input homebrew-formula formula
test:homebrew-formula wheel input directory wheel
test:homebrew-formula test-result output test-result results
release:homebrew-tap formula input homebrew-formula formula
release:homebrew-tap evidence input test-result
release:image image input image name
release:image evidence input test-result
release:notes release-notes output release-notes name
release:tag release-notes input release-notes
release:tag tag output tag
release:github-draft release-notes input release-notes name
release:github-attach files input file
release:github-attach evidence input test-result
release:github-attach release-assets output release-assets assets
release:github-publish github-release output github-release
toolchain:run source input artifact
toolchain:run out output artifact

A release consumes the results of the tests on what it publishes. Every publish leaf has an evidence input port accepting test-result. A command under ci: release: that consumes an artifact must bind every test result about it there, and at least one must exist (rule 6). A test result is about what its producer consumes, directly: a unit test of the source is not a test of the image built from it. The notes, the tag, the bundle and the evidence itself need none.

The evidence is read before anything is published (si#434). The load checks the binding; at run time every bound record is read before the publish body runs, and a record that is missing, red or without a verdict stops it. release:image also compares what the record tested with what it would push (si#439): each run names the reference and the daemon id it tested, so an image never tested under that tag, or rebuilt since, is refused.