[scripts/ci/update_records]: add `--dry-run`, can fetch from latest scheduled regardless of status
What
Some improvements to the script scripts/ci/update_records/update.ml:
- Adds a
--dry-runflag. When set, the local working directory is not modified but downloading records and parsing them is tested. - Seems the
namefield is not always set on pipelines returned from the gitlab api, works around this. - Disables curl's progress bar in the tezt logs by default
- Makes it possible to fetch records from the latest scheduled pipeline, regardless of whether it is successful or not.
Why
These changes makes it easier to work with and debug this script.
How
Not much to say.
Manually testing the MR
- Run the script with
--verbose, observe the absence of curl progress info - Try adding
--dry-run. Note that your work repo should be squeaky clean afterwards. - Try running with
--from last-schedule-extended-testand observer that it uses the latest pipeline from this list
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Arvid Jakobsson