Move jq logic to a script and improve functionality
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
-
qa-container_scanning.yml -
qa-dependency_scanning.yml -
qa-sast.yml -
analyzer.yml -
qa-license_management.yml -
qa-license_scanning.yml -
qa-dast.yml - Tested locally. See here for details.
-
qa-code_quality.yml- Not necessary. See here for details