Skip to content

Move jq logic to a script and improve functionality

Adam Cohen requested to merge improve-jq-output-in-qa-tests into master

What does this MR do?

The purpose of this MR is to fix some issues related to the usage of jq in our qa tests and to extract the logic into a single place to make maintaining the command easier.

This MR adds a new bash script in scripts/compare_reports.sh which implements the logic of the jq command and changes the behaviour so that instead of showing a diff of the original files when a failure occurs, it shows a diff of the sorted, filtered files. This should remove the extra noise in the diff that occurs when the sort order changes, and will allow us to quickly understand the actual changes that caused the error.

Since the jq logic has now been added to a script, it's necessary to fetch the script using wget before executing it.

What are the relevant issue numbers?

gitlab-org/gitlab#214408 (closed)

Testing

Does this MR meet the acceptance criteria?

Edited by Adam Cohen

Merge request reports