Commit eb7d75c
test(ostree): pin greenboot to exact Copr NEVR
Listing greenboot in the blueprint with version = "*" isn't enough:
dnf always installs the highest NEVRA across all enabled repos, and
Copr snapshot builds conventionally use a Release starting at
"0.<timestamp>..." -- the same convention official pre-GA/rebuilt
packages use. Whenever BaseOS/AppStream ships a greenboot release
that outranks the current Copr build, dnf silently installs the
stock package and the test exercises unpatched code.
I first tried fixing this via blueprint [[customizations.repositories]]
priority + install_from, since that's the field osbuild-composer
exposes for repo precedence. Verified against a real osbuild-composer
(v176) on CentOS Stream 9, with a synthetic competing repo publishing
greenboot at a deliberately higher release, that those fields have no
effect on build-time depsolve -- composer-cli accepts and forwards
them fine, but the resolver still just picks the highest NEVRA
regardless. They only affect the .repo files written into the
resulting image for its own future dnf use.
What does work: resolve the exact version-release dnf sees in the
Copr repo via 'dnf repoquery --latest-limit=1' and pin both greenboot
packages to it directly. Verified this reliably wins even against the
adversarial higher-release competing repo.
Assisted-by: OpenCode (Claude Sonnet 5)
rh-pre-commit.version: 2.4.0
rh-pre-commit.check-secrets: ENABLED1 parent 50447bd commit eb7d75c
1 file changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
153 | 177 | | |
154 | 178 | | |
155 | 179 | | |
| |||
381 | 405 | | |
382 | 406 | | |
383 | 407 | | |
384 | | - | |
| 408 | + | |
385 | 409 | | |
386 | 410 | | |
387 | 411 | | |
388 | | - | |
| 412 | + | |
389 | 413 | | |
390 | 414 | | |
391 | 415 | | |
| |||
0 commit comments