Related T2316
Previously only release_add supported deduplication.
This commit aligns other _add endpoints with it
Differential D5419
Cassandra: Deduplicate lists passed to *_add endpoints KShivendu on Apr 5 2021, 1:45 PM. Authored by
Details
Related T2316 Previously only release_add supported deduplication.
Diff Detail
Event TimelineComment Actions Build has FAILED Patch application report for D5419 (id=19373)Rebasing onto 0a270d1a7a... First, rewinding head to replay your work on top of it... Applying: Cassandra: Deduplicate lists passed to *_add endpoints Changes applied before testcommit 1da153ea6881808224a5dd6cbf7b51314903c98f Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Mon Apr 5 17:09:33 2021 +0530 Cassandra: Deduplicate lists passed to *_add endpoints Previously only release_add supported deduplication. This commit aligns other _add endpoints with it Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1243/ Comment Actions Build has FAILED Patch application report for D5419 (id=19373)Rebasing onto 0a270d1a7a... First, rewinding head to replay your work on top of it... Applying: Cassandra: Deduplicate lists passed to *_add endpoints Changes applied before testcommit 59383a65f4b85bb87a6d22f67635140de6982230 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Mon Apr 5 17:09:33 2021 +0530 Cassandra: Deduplicate lists passed to *_add endpoints Previously only release_add supported deduplication. This commit aligns other _add endpoints with it Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1244/ Comment Actions
I did that and got type errors from mypy. Comment Actions
Then only keep list() when needed. For example, it isn't needed in content_add or snapshot_add
But it creates a copy that we don't need to do Comment Actions I just discovered that tests failed because the set's internally used hash function throws an error for if a dictionary is passed. Comment Actions Build has FAILED Patch application report for D5419 (id=19459)Rebasing onto 39507b24d0... First, rewinding head to replay your work on top of it... Applying: Cassandra: Deduplicate lists passed to *_add endpoints Changes applied before testcommit 3526f21c81e4d0f8feeb09a88485d1e9790b03c3 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Mon Apr 5 17:09:33 2021 +0530 Cassandra: Deduplicate lists passed to *_add endpoints Previously only release_add supported deduplication. This commit aligns other _add endpoints with it Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1249/ Comment Actions Please don't change the signature to accommodate implementation details of the function Comment Actions Build has FAILED Patch application report for D5419 (id=19463)Rebasing onto 39507b24d0... First, rewinding head to replay your work on top of it... Applying: Cassandra: Deduplicate lists passed to *_add endpoints Changes applied before testcommit 9e1a825dbe11a214fe84b0a44d2b390bca85e712 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Mon Apr 5 17:09:33 2021 +0530 Cassandra: Deduplicate lists passed to *_add endpoints Previously only release_add supported deduplication. This commit aligns other _add endpoints with it Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1250/ Comment Actions
Not all objects had id so I used swhid. But some of the tests are failing. Exactly these 3 tests are failing for each of in_memory, cassandra, and api_client : I have ideas of fix these but I think they are most likely wrong. So can you please review these and tell me what can be done ? Comment Actions Only content does not have an id, because they should only be deduplicated using all hashes, hence the test_content_add_collision failure
What do you think should be done for releases? Comment Actions Build is green Patch application report for D5419 (id=19532)Rebasing onto ccaac113a0... First, rewinding head to replay your work on top of it... Applying: Cassandra: Deduplicate lists passed to *_add endpoints Changes applied before testcommit 22b3a91e5e180d85483080de05e861cba98070ad Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Mon Apr 5 17:09:33 2021 +0530 Cassandra: Deduplicate lists passed to *_add endpoints Previously only release_add supported deduplication. This commit aligns other _add endpoints with it See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1251/ for more details. Comment Actions
Turns out I did some mistakes while renaming the variables.
Comment Actions Build was aborted Patch application report for D5419 (id=19547)Rebasing onto ccaac113a0... First, rewinding head to replay your work on top of it... Applying: Cassandra: Deduplicate lists passed to *_add endpoints Changes applied before testcommit 77989fe5f2800a39fa822806fe4181b1cb3362c4 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Mon Apr 5 17:09:33 2021 +0530 Cassandra: Deduplicate lists passed to *_add endpoints Previously only release_add supported deduplication. This commit aligns other _add endpoints with it Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1252/ Comment Actions Build is green Patch application report for D5419 (id=19547)Rebasing onto ccaac113a0... First, rewinding head to replay your work on top of it... Applying: Cassandra: Deduplicate lists passed to *_add endpoints Changes applied before testcommit a24f61d1b3d35007f6773b5843a75ab0cfa0ad10 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Mon Apr 5 17:09:33 2021 +0530 Cassandra: Deduplicate lists passed to *_add endpoints Previously only release_add supported deduplication. This commit aligns other _add endpoints with it See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1253/ for more details. Comment Actions Build is green Patch application report for D5419 (id=19563)Rebasing onto ccaac113a0... First, rewinding head to replay your work on top of it... Applying: Cassandra: Deduplicate lists passed to *_add endpoints Changes applied before testcommit 551c51d543a57c015655d7ababf373e1229bd420 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Mon Apr 5 17:09:33 2021 +0530 Cassandra: Deduplicate lists passed to *_add endpoints Previously only release_add supported deduplication. This commit aligns other _add endpoints with it See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1254/ for more details. Comment Actions Build is green Patch application report for D5419 (id=19605)Rebasing onto 933289e2ef... Current branch diff-target is up to date. Changes applied before testcommit c96942b4064866cda0a36bbbc865462d0d58b6ca Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Mon Apr 5 17:09:33 2021 +0530 Cassandra: Deduplicate lists passed to *_add endpoints Previously only release_add supported deduplication. This commit aligns other _add endpoints with it See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1257/ for more details. |