Commit ba97395
committed
perf(haos-e2e): compress qcow2 in-format before oras push + add tag_suffix dispatch input
The publish workflow currently pushes the post-bake qcow2 raw via
ORAS (``haos-test-image.qcow2:application/octet-stream``), which is
~12 GB on disk and downloads at GHCR's ~32 MB/s single-stream cap →
6m 24s on every cache-miss e2e run (run #283 job 77593061250).
The image is dominated by sparse-zeroed space from ``qemu-img resize
32G`` plus addon Docker layers; ``qemu-img convert -c -O qcow2``
re-packs the file with the format's native zlib compression and
typically shrinks it ~3–5x.
The result stays a standard qcow2 (same OCI artifact-type, same
consumer code path). qemu decompresses sectors lazily during VM
I/O when the e2e workflow boots it — no upfront xz-style decompress
step on the pull side.
Workflow changes
----------------
* New ``Compress qcow2 in-format (qemu-img convert -c)`` step before
the artifact upload + GHCR push. Logs ``before / after / ratio`` so
the size win is visible in the workflow output.
* ``workflow_dispatch`` gains a ``tag_suffix`` input (default
``latest``) so perf-iteration branches can publish to a
non-``latest`` moving tag (e.g. ``:17.3-haose2eefficiency``) without
disturbing the master-served image other PRs pull from.
Pull-side validation
--------------------
This commit only changes how the image is *published*; the e2e
workflows still pull ``:HAOS_VERSION-latest`` (which is still the
old uncompressed image) until commit 3 in this series flips them
to the new tag.
The e2e test workflows are not in this workflow file's trigger
``paths`` and are not in this PR's commit yet either, so this push
does not auto-trigger an e2e run that would pull a not-yet-existing
image. The next step is a manual ``gh workflow run
build-haos-test-image.yml --ref perf/haos-e2e-improvements -f
tag_suffix=haose2eefficiency`` to publish the compressed image at
``:17.3-haose2eefficiency``.1 parent 8655bd8 commit ba97395
1 file changed
Lines changed: 53 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
24 | 35 | | |
25 | 36 | | |
26 | 37 | | |
| |||
146 | 157 | | |
147 | 158 | | |
148 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
149 | 192 | | |
150 | 193 | | |
151 | | - | |
| 194 | + | |
| 195 | + | |
152 | 196 | | |
153 | 197 | | |
154 | 198 | | |
| |||
166 | 210 | | |
167 | 211 | | |
168 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
169 | 219 | | |
170 | 220 | | |
171 | 221 | | |
172 | | - | |
| 222 | + | |
173 | 223 | | |
174 | 224 | | |
175 | 225 | | |
176 | | - | |
| 226 | + | |
177 | 227 | | |
178 | 228 | | |
0 commit comments