Commit 554fbc6
authored
Fix SBOM commands to be suitable for running in CI (#52849)
There were a couple of problems that prevented the SBOM generation
to successfully run in our workflows:
* remote_name was hard-coded to "apache" for locally pulling tags
from the right remote - and we did not have that remote in CI
* python parameter was set by default to "default_python_version" in
CI, and what we really wanted is to have it empty to use all
historical versions of python
* generating SBOMs used the "ref" version of breeze rather than
"current PR version" of breeze.
* python version installed was the default python version that
was used in the "reference" of built docs - not the "current"
default version - which made it impossible to reinstall breeze
to current version when old version of Python was not supported
any more
* When RC version SBOM was generated, it did not use RC constraints
and tags so, all SBOMS were silently skipped.
This is fixed by:
* you can now pass remote-name as option
* historical_python_versions click option now uses --python-versions
and PYTHON_VERSIONS envvar and can take list of versions separated
by comas - to not confuse it with regular --python option
* switching temporarily to the "current-version" of breeze when
generating SBOM
* we are installing breeze with "current" default python version -
assuming that this version will be supported by any versions of
packages we want to build the documentation for
* when RC version is passed as ref, we are using RC version of
constraints and tags but we still produce sboms for "base"
version - matching the way how documentation is done.1 parent 8f8ddf8 commit 554fbc6
File tree
15 files changed
+333
-239
lines changed- .github/workflows
- dev/breeze
- doc/images
- src/airflow_breeze
- commands
- utils
15 files changed
+333
-239
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| |||
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
135 | | - | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
142 | | - | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
| |||
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
161 | | - | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
165 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
166 | 176 | | |
167 | 177 | | |
168 | 178 | | |
169 | 179 | | |
170 | 180 | | |
171 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
172 | 200 | | |
173 | 201 | | |
174 | 202 | | |
175 | 203 | | |
176 | 204 | | |
177 | 205 | | |
178 | | - | |
| 206 | + | |
| 207 | + | |
179 | 208 | | |
180 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
181 | 219 | | |
182 | 220 | | |
183 | 221 | | |
184 | 222 | | |
185 | 223 | | |
186 | 224 | | |
187 | 225 | | |
188 | | - | |
| 226 | + | |
189 | 227 | | |
190 | 228 | | |
191 | 229 | | |
| |||
0 commit comments