/srv/irclogs.ubuntu.com/2024/06/07/#ubuntu-quality.txt

fnordahlis there a way to declare that certain dependencies need to come from -proposed for autopkgtests?  The openvswitch and ovn packages have a inter-dependency and often need to be updated together, looking at https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-noble/noble/amd64/o/ovn/20240606_224327_59694@/log.gz it fails because it tries to use 06:40
fnordahlopenvswitch-source from release/updates while it needs to come from -proposed 06:40
fnordahlAn alternative is of course to wait out the SRU cycle for the openvswitch package, but that would cause delays06:41
Skiafnordahl: yes, adding the right trigger in a retry request will do exactly that07:50
Skiafnordahl: there are explanations here for this use-case: https://wiki.ubuntu.com/ProposedMigration#How_to_re-run_autopkgtests_with_dependencies_on_other_packages_in_the_proposed_pocket07:51
Skialet me know if you struggle with that07:51
fnordahlSkia: ah, excellent, thank you for that pointer.  So we would essentially have to do that manually in these situations then, I guess that's ok.  I checked for any hints in the control format in https://people.debian.org/~eriberto/README.package-tests.html but did not find anything there, so I guess this is the way08:03
Skiathis is the way08:03
Skiasorry XD   yes, I don't think there is a way to automate that kind of behavior for certain packages :/08:04
Skiaalso, just for the sake of it: here is the most up to date version of the document you pointed: https://salsa.debian.org/ci-team/autopkgtest/-/blob/master/doc/README.package-tests.rst08:08
fnordahlAh, yes.  I guess we should do some SEO to get that one higher up on the google search results ;)08:30
Skiawell, we have some ongoing work to improve autopkgtest documentation in overall, that might be part of it08:32
SkiaI'll log that to our document08:32
ginggsfnordahl: if ovn needs openvswitch from -proposed, shouldn't it declare that dependency in debian/control?08:47
fnordahlginggs: it does declare the expected version08:49
ginggsthen autopkgtest should do the right thing, without needing extra triggers08:51
paridefnordahl, hi09:20
paridefnordahl, looking at https://git.launchpad.net/ubuntu/+source/ovn/tree/debian/control?h=ubuntu/noble-proposed09:22
paridefnordahl, which dependency are you referring to exactly?09:23
paridefnordahl, I think I understand the problem09:28
fnordahlparide: specifically this one: openvswitch-source (>= 3.3.0-1ubuntu3~)09:30
paridefnordahl, first, you install the ovn build-deps from the debian/tests/* test scripts by calling `mk-build-deps`. You could use @builddeps@ in d/t/control, which should do exactly that. 09:32
paridefnordahl, doing that, autopkgtest should take care of relaxing pinning if test deps (which now include the builddeps) are not installable with strict pinning09:32
paridefnordahl, that basically turns the "pinned" test in an all-proposed test, but that's what we have for now09:33
paridefnordahl, with the apt solver3, we'll be able to use --no-strict-pinning, which will do smarter things09:33
paridefnordahl, but that's a work in progress on all fronts for now09:33
paridefnordahl, I see that you manually dpkg-buildpackage because you want to build with nocheck, and Restrictions: build-needed doesn't set that profile. Maybe we should do that by default09:35
paridefnordahl, for now, I suggest trying with @builddeps@, which will put the test deps resolution in the hands of autopkgtest, which should know what to try09:37
paridemakes sense?09:37
fnordahlparide: thanks alot for looking and for your insights, I had forgotten about that bit. While I can't use `build-needed` for exactly that reason I guess I could still use @builddeps@ as dependency to avoid this issue09:37
fnordahlthe only undesired side effect of that is that the test might succeed by proxy of build depends being present, shadowing any missing `Depends` statements09:38
fnordahlBut I guess I can do both, i.e. do a mk-build-deps step to understand what to remove09:38
fnordahlthanks alot paride !09:38
paridefnordahl, yw! maybe build-needed makes sure that builds-deps are not kept by default during the test run, I am not sure right now09:40
paridefnordahl, let's see how this goes https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/358/diffs09:56
fnordahlparide: yay, I'll leave a supporting comment to it10:07

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!