Skip to content

ci.metrics.collect

Join the legs' timing rows with the forge's times into the run's file.

Runs in the gate job before its verdict, and again with --verdict=red when the gate job fails so red runs leave a row too. Reads the per-run refs the legs wrote, asks the forge for the run's jobs and their steps, and puts the run's file on the metrics series under its window. The per-run refs stay for ci.metrics.drop, the job's last entry, so a red verdict leaves them for the forge's re-run of the job, which runs without its legs. Fails open loudly: every reason is printed and the exit stays 0.

Hidden: this task is not listed by fm --list, --tree or completion — it runs like any other when named.

fm ci.metrics.collect [--verdict=VALUE] [--trigger=VALUE]
Parameter Type Default Description
--verdict=VALUE "" explicit run verdict (green, red, unfinished); inferred when empty
--trigger=VALUE "" the CI point or trigger that started the run; inferred when empty

Example

$ fm ci.metrics.collect