This catches any unexpected revision metadata structure which would made the
loader crash (when it tries to resolve known artifacts from a snapshot) and
continue the ingestion.
Related to T2371
Differential D2949
nixguix: catch and log artifact resolution failures ardumont on Apr 2 2020, 5:38 PM. Authored by
Details
This catches any unexpected revision metadata structure which would made the Related to T2371 tox
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Comment Actions Build is green Patch application report for D2949 (id=10497)Rebasing onto fbf457e92c... Current branch diff-target is up to date. Changes applied before testcommit c1f2fc70056935359ad1ae5c018dc5c7daebe1bf Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Thu Apr 2 17:34:01 2020 +0200 nixguix: Drop old snapshot format Previous run on the same origin could miss the integrity field. This makes for unresolvable revision. This returns None directly. commit 25a02890e09a8af66dae13bd50ab3d7bf3f9c0a6 Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Thu Apr 2 17:33:19 2020 +0200 nixguix: Some sources.json can be inconsistent in their sources Drop those without integrity key. The fix should be upstream in the sources.json though See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/7/ for more details. Comment Actions Build is green Patch application report for D2949 (id=10525)Rebasing onto 5921567408... Current branch diff-target is up to date. Changes applied before testcommit 8fb9827d0cc89c057136a7bbe6000477f7f075c7 Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Thu Apr 2 17:34:01 2020 +0200 nixguix: Drop old snapshot format Previous run on the same origin could miss the integrity field. This makes for unresolvable revision. This returns None directly. See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/10/ for more details.
Comment Actions Working on adding one test which pass in there (load from archive loader, then load from nixguix whose listing list the same artifact...)
Comment Actions
I actually don't hit the issue in a test... Comment Actions
Comment Actions Build is green Patch application report for D2949 (id=11291)Rebasing onto e816a9a98a... Current branch diff-target is up to date. Changes applied before testcommit dc2c0a226149abad7691911cb7f0e3a1c3b10fa7 Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Mon May 25 12:43:18 2020 +0200 nixguix: Fix "integrity" field resolution out of a snapshot Summary: Due to the way we store revision metadata for package loader. A snapshot can reference a previous revision with metadata that are not nixguix related. Thus, the expected "integrity" (from the nixguix loader point of view) field is not found. Which makes the loader crash. This diff allows the loader to continue its work without crashing by considering such revision to be fetched again. pros: - the loader works cons: - redo the ingestion for a given artifact which is hit by this issue. This will be noops in the storage side though Related to T2371 Related to T2411 Test Plan: tox Reviewers: #reviewers, lewo Tags: #package_loader Maniphest Tasks: T2371, T2411 Differential Revision: https://forge.softwareheritage.org/D2949 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/37/ for more details. Comment Actions Build is green Patch application report for D2949 (id=11292)Rebasing onto e816a9a98a... Current branch diff-target is up to date. Changes applied before testcommit 3b9fda6df52544cd7795ce9ddb778f0d2e908979 Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Mon May 25 12:43:18 2020 +0200 nixguix: Fix revision "integrity" field resolution (out of a snapshot) Due to the way we store revision metadata for package loader. A snapshot can reference a previous revision with metadata that are not nixguix related. Thus, the expected "integrity" (from the nixguix loader point of view) field is not found. Which makes the loader crash. This commit allows the loader to continue its work without crashing by considering such revision to be fetched again. Related to T2371 Related to T2411 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/38/ for more details. Comment Actions
Well, i did through patching... Also, something hit me during that phase...
Comment Actions Build is green Patch application report for D2949 (id=11294)Rebasing onto e816a9a98a... Current branch diff-target is up to date. Changes applied before testcommit eb9bf749399dfa51512981724a4f61c20255c9de Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Mon May 25 12:43:18 2020 +0200 nixguix: Fix revision "integrity" field resolution (out of a snapshot) Due to the way we store revision metadata for package loader. A snapshot can reference a previous revision with metadata that are not nixguix related. Thus, the expected "integrity" (from the nixguix loader point of view) field is not found. Which makes the loader crash. This commit allows the loader to continue its work without crashing by considering such revision to be fetched again. Related to T2371 Related to T2411 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/39/ for more details.
Comment Actions Build has FAILED Patch application report for D2949 (id=11295)Rebasing onto e816a9a98a... Current branch diff-target is up to date. Changes applied before testcommit e850966ff526ee0c1cc35a124510076e4413d29a Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon May 25 15:54:34 2020 +0200 nixguix: Add a test around the wrong metadata revision structure commit eb9bf749399dfa51512981724a4f61c20255c9de Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Mon May 25 12:43:18 2020 +0200 nixguix: Fix revision "integrity" field resolution (out of a snapshot) Due to the way we store revision metadata for package loader. A snapshot can reference a previous revision with metadata that are not nixguix related. Thus, the expected "integrity" (from the nixguix loader point of view) field is not found. Which makes the loader crash. This commit allows the loader to continue its work without crashing by considering such revision to be fetched again. Related to T2371 Related to T2411 Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/40/ Comment Actions Build has FAILED Patch application report for D2949 (id=11299)Rebasing onto 5ba92ac219... Current branch diff-target is up to date. Changes applied before testcommit 71f89a4c7d3470b0265b3f65c8ea0d171a40b409 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon May 25 15:54:34 2020 +0200 nixguix: Add a test around the wrong metadata revision structure commit 1944ab28489f90eed40cd8c52f0f1554b9fa704a Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Mon May 25 12:43:18 2020 +0200 nixguix: Fix revision "integrity" field resolution (out of a snapshot) Due to the way we store revision metadata for package loader. A snapshot can reference a previous revision with metadata that are not nixguix related. Thus, the expected "integrity" (from the nixguix loader point of view) field is not found. Which makes the loader crash. This commit allows the loader to continue its work without crashing by considering such revision to be fetched again. Related to T2371 Related to T2411 Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/43/
Comment Actions
Comment Actions Build is green Patch application report for D2949 (id=11300)Rebasing onto 5ba92ac219... Current branch diff-target is up to date. Changes applied before testcommit 5002c56e9bba2e2b2bf0d161bdf76f38eb7a1c36 Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Mon May 25 12:43:18 2020 +0200 nixguix: catch eventual artifact resolution failures and log those This eventually catch any malformed revision (from a metadata standpoint) which would made the loader crash (when it tries to resolve the known artifacts). This catches the error, logs information about it and then continue on loading. Related to T2371 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/44/ for more details. Comment Actions Build is green Patch application report for D2949 (id=11301)Rebasing onto 5ba92ac219... Current branch diff-target is up to date. Changes applied before testcommit 98b54d7ef12fa9930f43d81052624e520b992202 Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Mon May 25 12:43:18 2020 +0200 nixguix: catch eventual artifact resolution failures and log those This eventually catch any malformed revision (from a metadata standpoint) which would made the loader crash (when it tries to resolve the known artifacts). This catches the error, logs information about it and then continue on loading. Related to T2371 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/45/ for more details. Comment Actions
Comment Actions Build is green Patch application report for D2949 (id=11305)Rebasing onto 5ba92ac219... Current branch diff-target is up to date. Changes applied before testcommit 30caeb640ad61107ad99e407d2fa69e4d67fca5c Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Mon May 25 12:43:18 2020 +0200 nixguix: catch and log artifact resolution failures This eventually catch any unexpected revision metadata structure which would made the loader crash (when it tries to resolve the known artifacts) and continue the ingestion. Related to T2371 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/46/ for more details. Comment Actions Build is green Patch application report for D2949 (id=11306)Rebasing onto 5ba92ac219... Current branch diff-target is up to date. Changes applied before testcommit c6be4c0fd41963278717fe2b4ac119b1f99e0fdd Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Mon May 25 12:43:18 2020 +0200 nixguix: catch and log artifact resolution failures This catches any unexpected revision metadata structure which would made the loader crash (when it tries to resolve known artifacts from a snapshot) and continue the ingestion. Related to T2371 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/47/ for more details. |