Submitting Runs to v5¶
lnt v5 submit submits runs to a test suite of an LNT v5 instance, through
its REST API. It reads them from a file, or from its standard input, as one v5
run submission per line (the JSON Lines format), such as
lnt v5 convert-v4-mirror writes (see Converting a v4 Mirror for v5).
Example¶
To submit the runs in runs.jsonl to the nts suite of a v5 instance:
lnt v5 submit https://lnt.example.com --suite nts --token <token> runs.jsonl
See lnt v5 submit --help for the other options.
Submission¶
Submitting runs requires a token with submit scope, given with --token
or in the LNT_V5_TOKEN environment variable.
With
--create-suite FILE, the command first creates the suite from the schema inFILE, which requires a token withmanagescope. The schema’snamemust be the suite’s. It is an error if the suite already exists, and nothing is submitted. Without--create-suite, the suite must already exist.The command lists the runs the suite already has, and skips the submissions whose
uuidis among them. Submitting the same runs again therefore only submits those that are missing, e.g. after an interrupted submission, or once more runs have been added to the input.The other runs are submitted in the order they are read, by
--workersconcurrent requests. A409 duplicateresponse means that the run was submitted already, and counts as a success. Network errors, 5xx responses and409 retryresponses are retried a few times. Any other failure, and any line that is not a JSON object, is reported along with its line number, the run’s UUID, machine and commit, and the instance’s message, and the command carries on with the next run.
The command exits with a non-zero status if any run could not be submitted.