Repository navigation
Question about cargotest #274
Replies: 3 comments
|
Response from claude (in french sorry) Le problème vient du test, pas du paquet : il a besoin d'un accès DNS, et les builders COPR n'ont pas de réseau. Cause. Le test envoie l'URL Les tests passent aussi chez moi même en coupant le réseau avec Tests concernés. J'ai cherché dans le code tous les appels à
Correction dans # These tests submit https://example.com and validate_caldav_url() resolves
# it via DNS (SSRF check); the build chroot has no network.
%cargo_test -- -- \\
--skip web::tests::sources::update_source_changes_fields_and_keeps_password_when_blank \\
--skip web::tests::sources::update_source_rotates_passwordJ'ai vérifié en local que ces deux filtres excluent exactement ces deux tests : les 4 autres tests de sources passent. Je n'ai pas pu tester l'expansion de Deux remarques :
|
|
Thanks @wallon-ines, your diagnosis is right: the test was at fault, not the package. Those two tests posted a hostname, and the source edit handler resolves it in DNS to enforce the private address policy, which fails on a builder with no network. Fixed in #338: they now post an IP literal from the documentation range ( |
|
The fix is out in 1.23.0: you can drop the two test skips from the spec file. Let me know if the COPR build passes cleanly. |
Uh oh!
There was an error while loading. Please reload this page.
I'm currently rework spec file for rpm build package, and I've added
%cargo_testmacro, and for better security, I've disabledEnable internet access during buildsin fedora copr infrastructure.During build some test fails because it's trying to test in
https://example.com/dav/new/full build log here
I've skipped
web::tests::sources::update_source_changes_fields_and_keeps_password_when_blankandweb::tests::sources::update_source_rotates_passwordbut if you have a secure and better solution, I’m interested.https://gitlab.famillewallon.com/rpm-packages/calrs/-/blob/testing/calrs.spec?ref_type=heads#L101-L106
Regards,
All reactions