The new lister has incremental and full listing capability.
It can request the Bitbucket API in anonymous and HTTP basic authentication modes.
Rate-limiting is not aggressive and is handled.
Related to T2955
Differential D4843
Reimplement Bitbucket lister using new Lister API tenma on Jan 12 2021, 2:27 PM. Authored by
Details The new lister has incremental and full listing capability. Related to T2955 Covered: incremental and full modes, tasks, authentication tox
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Comment Actions Build has FAILED Patch application report for D4843 (id=17172)Rebasing onto c782275296... First, rewinding head to replay your work on top of it... Applying: WIP new Bitbucket lister Changes applied before testcommit 4afe9f7f6661fffec6e10fb7515dcf0405fc49f5 Author: tenma <tenma+swh@mailbox.org> Date: Tue Jan 12 18:08:53 2021 +0100 WIP new Bitbucket lister Link to build: https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/81/ Comment Actions Build is green Patch application report for D4843 (id=17175)Rebasing onto c782275296... First, rewinding head to replay your work on top of it... Applying: WIP new Bitbucket lister Changes applied before testcommit 5748bf904b35e799d2328725d1b4ef8b37ba0969 Author: tenma <tenma+swh@mailbox.org> Date: Tue Jan 12 18:08:53 2021 +0100 WIP new Bitbucket lister See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/82/ for more details. Comment Actions Build is green Patch application report for D4843 (id=17177)Rebasing onto c782275296... First, rewinding head to replay your work on top of it... Applying: WIP new Bitbucket lister Changes applied before testcommit 5dfbe59051996bfe4338ec991fdc4a5ae59098ee Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 11:54:18 2021 +0100 WIP new Bitbucket lister Reviewers: #reviewers Subscribers: anlambert Tags: #bitbucket_lister, #lister Differential Revision: https://forge.softwareheritage.org/D4843 See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/83/ for more details. Comment Actions Update:
Comment Actions Build has FAILED Patch application report for D4843 (id=17181)Rebasing onto c782275296... First, rewinding head to replay your work on top of it... Applying: WIP new Bitbucket lister Changes applied before testcommit 8a17cea06a1eac10e3720dc3995bcf130222d7b5 Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 12:20:17 2021 +0100 WIP new Bitbucket lister Link to build: https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/84/ Comment Actions lgtm (minus the build failure that is ;) (i did not read the test yet though) one question about some more modules to remove inline.
Comment Actions Build is green Patch application report for D4843 (id=17193)Rebasing onto c782275296... Current branch diff-target is up to date. Changes applied before testcommit 489c9e25ab40b9ecc6b92e4cf9346ab7eef14978 Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 15:44:07 2021 +0100 WIP new Bitbucket lister Reviewers: #reviewers Subscribers: anlambert Tags: #bitbucket_lister, #lister Differential Revision: https://forge.softwareheritage.org/D4843 See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/85/ for more details. Comment Actions Build is green Patch application report for D4843 (id=17197)Rebasing onto c782275296... Current branch diff-target is up to date. Changes applied before testcommit dffe53c2260188fb3ab8995113ac120359c7b9c3 Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 18:44:08 2021 +0100 bitbucket: Reimplement lister using new API (WIP) See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/86/ for more details. Comment Actions Build is green Patch application report for D4843 (id=17198)Rebasing onto c782275296... Current branch diff-target is up to date. Changes applied before testcommit 4dd90ca2f489f406ef924daad33832a38fef96b1 Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 15:44:07 2021 +0100 [WIP] Reimplement Bitbucket lister using new Lister API The new lister has incremental and full listing capability. It can request the Bitbucket API in anonymous and HTTP basic authentication modes. Rate-limiting is not aggressive and is handled. Listing mode, credentials and pagination parameters can be updated after creation. See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/87/ for more details. Comment Actions
What do you mean? What is self.backoff? You're using it both as a time (time.sleep(self.backoff)) and as a dimensionless unit (self.backoff = self.BACKOFF_FACTOR) And self.request_count should be a local variable of get_pages named retries_count, because it's actually used for. Plus, the way it's currently written, it looks like that whenever it reaches MAX_RETRIES, it will never be reset without creating a new BitbucketLister object.
Comment Actions Sorry, I clicked "submit" too early. I meant to say I don't have a good idea of how well it fits architecturaly, but I have some small comments nonetheless Nevermind that, I guess self.backoff = self.BACKOFF_FACTOR is implicitly meant as multiplying the backoff by 1 second. The initial backoff could be configurable though, but that's not very important. Comment Actions Thanks for the remarks, will go through them.
Comment Actions Build is green Patch application report for D4843 (id=17294)Rebasing onto c782275296... Current branch diff-target is up to date. Changes applied before testcommit 609ed8c893542a0f3206822bcf1fd8185cabf2a2 Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 15:44:07 2021 +0100 [WIP] Reimplement Bitbucket lister using new Lister API The new lister has incremental and full listing capability. It can request the Bitbucket API in anonymous and HTTP basic authentication modes. Rate-limiting is not aggressive and is handled. Listing mode, credentials and pagination parameters can be updated after creation. See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/109/ for more details. Comment Actions Build is green Patch application report for D4843 (id=17317)Rebasing onto 9fd91f007d... Current branch diff-target is up to date. Changes applied before testcommit 2cfc017435e8dee06f24717a947e8fe1e6f2d940 Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 15:44:07 2021 +0100 [WIP] Reimplement Bitbucket lister using new Lister API The new lister has incremental and full listing capability. It can request the Bitbucket API in anonymous and HTTP basic authentication modes. Rate-limiting is not aggressive and is handled. See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/117/ for more details. Comment Actions Build is green Patch application report for D4843 (id=17318)Rebasing onto 9fd91f007d... Current branch diff-target is up to date. Changes applied before testcommit b0b247e7a25e761c88ec0419cecc95a4198ffb7c Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 15:44:07 2021 +0100 [WIP] Reimplement Bitbucket lister using new Lister API The new lister has incremental and full listing capability. It can request the Bitbucket API in anonymous and HTTP basic authentication modes. Rate-limiting is not aggressive and is handled. See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/118/ for more details. Comment Actions Build is green Patch application report for D4843 (id=17325)Rebasing onto 9fd91f007d... Current branch diff-target is up to date. Changes applied before testcommit dec3559f0ae277ad9271468444b6cad494bff6b9 Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 15:44:07 2021 +0100 [WIP] Reimplement Bitbucket lister using new Lister API The new lister has incremental and full listing capability. It can request the Bitbucket API in anonymous and HTTP basic authentication modes. Rate-limiting is not aggressive and is handled. See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/119/ for more details. Comment Actions Build is green Patch application report for D4843 (id=17326)Rebasing onto 9fd91f007d... Current branch diff-target is up to date. Changes applied before testcommit c8d7259ecbf9590e67160345d3cbf561f9206195 Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 15:44:07 2021 +0100 [WIP] Reimplement Bitbucket lister using new Lister API The new lister has incremental and full listing capability. It can request the Bitbucket API in anonymous and HTTP basic authentication modes. Rate-limiting is not aggressive and is handled. See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/120/ for more details. Comment Actions Build is green Patch application report for D4843 (id=17329)Rebasing onto 9fd91f007d... Current branch diff-target is up to date. Changes applied before testcommit 1b23378781dbfdccd4243556ade9f8d306a0d29c Author: tenma <tenma+swh@mailbox.org> Date: Wed Jan 13 15:44:07 2021 +0100 [WIP] Reimplement Bitbucket lister using new Lister API The new lister has incremental and full listing capability. It can request the Bitbucket API in anonymous and HTTP basic authentication modes. Rate-limiting is not aggressive and is handled. See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/121/ for more details. |