ci: format all YAML with `yq`
`yq` is the YAML query tool, used for manipulating YAML files. This
change uses the following command to read in and to pretty-print every
YAML file in this repository:
for x in $(find . -name '*.yaml'); do
yq -i -P -oy $x
done
This makes it a bit easier to automate synchronisation between staging
and upstream, as yq always pretty-prints the entire document when
manipulating files.
Signed-off-by: Chris Kay <chris.kay@arm.com>
Change-Id: If973766fa26500d5320612422d1b4999b23439d3
diff --git a/tf-a-weekly.yaml b/tf-a-weekly.yaml
index 01d0ba6..2cf1559 100644
--- a/tf-a-weekly.yaml
+++ b/tf-a-weekly.yaml
@@ -6,109 +6,108 @@
disabled: false
description: Main CI job for Trusted Firmware.
properties:
- - throttle:
- option: project
- enabled: true
- max-total: 5
- - build-discarder:
- days-to-keep: 14
- num-to-keep: 60
+ - throttle:
+ option: project
+ enabled: true
+ max-total: 5
+ - build-discarder:
+ days-to-keep: 14
+ num-to-keep: 60
parameters:
- - string:
- name: TF_GERRIT_PROJECT
- default: 'TF-A/trusted-firmware-a'
- - string:
- name: TF_GERRIT_BRANCH
- default: 'refs/heads/integration'
- - string:
- name: TF_GERRIT_REFSPEC
- default: '+refs/heads/integration:refs/remotes/origin/integration'
- - string:
- name: TFTF_GERRIT_PROJECT
- default: 'TF-A/tf-a-tests'
- - string:
- name: TFTF_GERRIT_BRANCH
- default: 'refs/heads/master'
- - string:
- name: TFTF_GERRIT_REFSPEC
- default: '+refs/heads/master:refs/remotes/origin/master'
- - string:
- name: SPM_REFSPEC
- default: '+refs/heads/master:refs/remotes/origin/master'
- description: |
- SPM(Hafnium) refspec to use. The master branch is used by default.
- - string:
- name: RMM_REFSPEC
- default: '+refs/heads/main:refs/remotes/origin/main'
- description: |
- tf-rmm refspec to use. The main branch is used by default.
- - string:
- name: CI_REFSPEC
- default: '+refs/heads/master:refs/remotes/origin/master'
- - string:
- name: JOBS_REFSPEC
- default: 'refs/heads/master'
- description: |
- tf-a-job-configs refspec to use. The master branch is used by default.
- - string:
- name: LAVA_PRIORITY
- default: 'low'
- - string:
- name: MBEDTLS_URL
- default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
- - string:
- name: LAVA_RETRIES
- default: 2
- description: |
- Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
- - string:
- name: USE_TUXSUITE_FVP
- default: 1
- description: |
- Whether to submit FVP tests via TuxSuite (instead of LAVA)
- - string:
- name: SHARE_FOLDER
- default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
- description: 'Folder containing shared repositories for downstream pipeline jobs.'
+ - string:
+ name: TF_GERRIT_PROJECT
+ default: TF-A/trusted-firmware-a
+ - string:
+ name: TF_GERRIT_BRANCH
+ default: refs/heads/integration
+ - string:
+ name: TF_GERRIT_REFSPEC
+ default: +refs/heads/integration:refs/remotes/origin/integration
+ - string:
+ name: TFTF_GERRIT_PROJECT
+ default: TF-A/tf-a-tests
+ - string:
+ name: TFTF_GERRIT_BRANCH
+ default: refs/heads/master
+ - string:
+ name: TFTF_GERRIT_REFSPEC
+ default: +refs/heads/master:refs/remotes/origin/master
+ - string:
+ name: SPM_REFSPEC
+ default: +refs/heads/master:refs/remotes/origin/master
+ description: |
+ SPM(Hafnium) refspec to use. The master branch is used by default.
+ - string:
+ name: RMM_REFSPEC
+ default: +refs/heads/main:refs/remotes/origin/main
+ description: |
+ tf-rmm refspec to use. The main branch is used by default.
+ - string:
+ name: CI_REFSPEC
+ default: +refs/heads/master:refs/remotes/origin/master
+ - string:
+ name: JOBS_REFSPEC
+ default: refs/heads/master
+ description: |
+ tf-a-job-configs refspec to use. The master branch is used by default.
+ - string:
+ name: LAVA_PRIORITY
+ default: low
+ - string:
+ name: MBEDTLS_URL
+ default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
+ - string:
+ name: LAVA_RETRIES
+ default: 2
+ description: |
+ Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures)
+ - string:
+ name: USE_TUXSUITE_FVP
+ default: 1
+ description: |
+ Whether to submit FVP tests via TuxSuite (instead of LAVA)
+ - string:
+ name: SHARE_FOLDER
+ default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
+ description: Folder containing shared repositories for downstream pipeline jobs.
wrappers:
- workspace-cleanup
- timestamps
builders:
- - shell:
- !include-raw: scripts/clone.sh
- - shell: |
- #!/bin/bash
- set -e
- cat << EOF > tf-a-env.param
- GERRIT_PROJECT=${TF_GERRIT_PROJECT}
- GERRIT_BRANCH=${TF_GERRIT_BRANCH}
- GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
- QA_SERVER_PROJECT=${JOB_NAME}
- QA_SERVER_VERSION=${BUILD_NUMBER}
- SHARE_FOLDER=${SHARE_FOLDER}
- EOF
- cat << EOF > tf-a-tests-env.param
- GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
- GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
- GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
- QA_SERVER_PROJECT=${JOB_NAME}
- QA_SERVER_VERSION=${BUILD_NUMBER}
- SHARE_FOLDER=${SHARE_FOLDER}
- EOF
- - multijob:
- name: TFTF Fuzzing
- condition: COMPLETED
- projects:
- - name: tf-a-ci-gateway
- alias: tf-l3-fuzzing SDEI
- current-parameters: true
- kill-phase-on: NEVER
- predefined-parameters: TEST_GROUPS=tf-l3-fuzzing
- property-file: tf-a-tests-env.param
- # participate in the job's success/failure.
- - trigger-builds:
- - project: tf-a-ci-coverage-gateway
- block: true
- current-parameters: true
+ - shell: !include-raw: scripts/clone.sh
+ - shell: |
+ #!/bin/bash
+ set -e
+ cat << EOF > tf-a-env.param
+ GERRIT_PROJECT=${TF_GERRIT_PROJECT}
+ GERRIT_BRANCH=${TF_GERRIT_BRANCH}
+ GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
+ QA_SERVER_PROJECT=${JOB_NAME}
+ QA_SERVER_VERSION=${BUILD_NUMBER}
+ SHARE_FOLDER=${SHARE_FOLDER}
+ EOF
+ cat << EOF > tf-a-tests-env.param
+ GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
+ GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
+ GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
+ QA_SERVER_PROJECT=${JOB_NAME}
+ QA_SERVER_VERSION=${BUILD_NUMBER}
+ SHARE_FOLDER=${SHARE_FOLDER}
+ EOF
+ - multijob:
+ name: TFTF Fuzzing
+ condition: COMPLETED
+ projects:
+ - name: tf-a-ci-gateway
+ alias: tf-l3-fuzzing SDEI
+ current-parameters: true
+ kill-phase-on: NEVER
+ predefined-parameters: TEST_GROUPS=tf-l3-fuzzing
+ property-file: tf-a-tests-env.param
+ # participate in the job's success/failure.
+ - trigger-builds:
+ - project: tf-a-ci-coverage-gateway
+ block: true
+ current-parameters: true
triggers:
- - timed: '59 23 * * 7'
+ - timed: 59 23 * * 7