This explicitely checks for the presence of swh:origin_to_add or swh:create_origin
within the provided metadata file.
If not present, this logs a warning about it.
Related to T2860
Differential D4936
deposit.cli: Warn users when missing origin tags are detected ardumont on Jan 25 2021, 12:33 PM. Authored by
Details
This explicitely checks for the presence of swh:origin_to_add or swh:create_origin If not present, this logs a warning about it. Related to T2860
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D4936 (id=17551)Rebasing onto b65694973e... Current branch diff-target is up to date. Changes applied before testcommit 3eb7840a32eec961d072b2a8807a08bd0c110855 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Jan 25 12:32:15 2021 +0100 deposit.cli: Warn users when missing origin tags are detected This explicitely checks for the presence of swh:origin_to_add or swh:create_origin within the provided metadata file. If not present, this logs a warning about it. Related to T2860 See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/531/ for more details.
Comment Actions Build is green Patch application report for D4936 (id=17587)Rebasing onto b65694973e... Current branch diff-target is up to date. Changes applied before testcommit c841f8b473594f6748d933dfe57bb815ac3a8bf1 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Jan 25 12:32:15 2021 +0100 deposit.cli: Warn users when missing origin tags are detected This explicitely checks for the presence of swh:origin_to_add or swh:create_origin within the provided metadata file. If not present, this logs a warning about it. Related to T2860 See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/532/ for more details. Comment Actions sorry, I didn't mean merging the non-error test with the error test, but to merge the non-error assertion with other tests (ie. the one that already don't trigger errors) Comment Actions
the funny thing is that i understood it that way initially... Comment Actions
What you suggest sounds good but it's hellishly annoying to do in the current state...
Comment Actions Adapt according to review Only adapted 2 nominal scenarios with it. I kept the last failing scenario as it also tests the add_to_origin (and we had none This caught a bug in the metadata generation about the <create_origin> case. It was Comment Actions Build is green Patch application report for D4936 (id=17680)Rebasing onto b65694973e... Current branch diff-target is up to date. Changes applied before testcommit 4deee5ba948ba6cb6760772b235371eace4c9690 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Jan 25 12:32:15 2021 +0100 deposit.cli: Warn users when missing origin tags are detected This explicitely checks for the presence of swh:origin_to_add or swh:create_origin within the provided metadata file. If not present, this logs a warning about it. Related to T2860 See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/533/ for more details. |