|
32 | 32 | cifmw_operator_build_output: "{{ cifmw_operator_build_output }}" |
33 | 33 | cifmw_operator_build_meta_name: "{{ cifmw_operator_build_meta_name }}" |
34 | 34 |
|
| 35 | + # This builds a list of operators from the zuul.items list. |
| 36 | + # zuul.items is a list of all the changes that are included via Depends-On. |
| 37 | + # This can have duplicates if you have multiple changes from the same repo. |
| 38 | + # e.g. when there's a CI PR trying to test some other unmerged change. |
| 39 | + # In the case that there are duplicates, only one version is taken, which is incorrect. |
| 40 | + # zuul.projects contains a list of the prepared repos that the job needs (listed in required-projects) |
| 41 | + # zuul.projects contains reporitories that have the multiple changes from each repo merged. |
| 42 | + # The operator we want to build is from this source. |
| 43 | + # The zuul.items list can be used to build a list of operators that need to be build i.e. all the operators that have been changed and are depended on by the PR being tested. |
| 44 | + # However, the repository/version to build from should be obtained from zuul.projects[$operator_name], not zuul.items.search($operator_name) | first. |
35 | 45 | - name: Populate operators list with zuul info |
36 | 46 | when: |
37 | 47 | - zuul is defined |
|
42 | 52 | loop_control: |
43 | 53 | loop_var: zuul_item |
44 | 54 |
|
| 55 | + # The task above gets a list of the projects that have changed and will need to be rebuilt. |
| 56 | + # Since we're not using the github URLs in go.mod replace lines, we don't need to get any of the URLs |
| 57 | + # The PR shas are also no longer used, since we set the image sha from the git HEAD. |
| 58 | + |
| 59 | + # Before running this, the zuul_info_operators var needs to be updated with the information from zuul.projects |
| 60 | + # The information that it needs from zuul.projects is the commit hash? |
| 61 | + # operators_list is used in build.yml, where is it looped through and passed in one-at-a-time as the operator variable |
| 62 | + # The values needed are the URL of the source branch of the PR and the commit sha |
| 63 | + # The usage of this information has been updated, so that the go.mod redirects point to the local repos and |
| 64 | + # the commit sha is looked up in the local repo |
45 | 65 | - name: Merge lists of operators |
46 | 66 | ansible.builtin.set_fact: |
47 | 67 | operators_list: "{{ [cifmw_operator_build_operators, zuul_info_operators | default([])] \ |
|
0 commit comments