Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.github.tests.test_lister::test_incremental
Failed

TEST RESULT

Run At
Jan 2 2023, 2:27 PM
Details
swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7fcf3442b908> caplog = <_pytest.logging.LogCaptureFixture object at 0x7fcf3442b198> requests_mocker = <requests_mock.mocker.Mocker object at 0x7fcf3442b9e8> def test_incremental(swh_scheduler, caplog, requests_mocker) -> None: caplog.set_level(logging.DEBUG, "swh.lister.github.lister") # Number of origins to skip skip_origins = 2000 expected_origins = ORIGIN_COUNT - skip_origins # Bump the last_seen_id in the scheduler backend set_lister_state(swh_scheduler, {"last_seen_id": skip_origins}) # Run the lister in incremental mode lister = GitHubLister(scheduler=swh_scheduler) > res = lister.run() .tox/py3/lib/python3.7/site-packages/swh/lister/github/tests/test_lister.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/lister/pattern.py:183: in run for page in self.get_pages(): .tox/py3/lib/python3.7/site-packages/swh/lister/github/lister.py:115: in get_pages response = self.github_session.request(current_url) .tox/py3/lib/python3.7/site-packages/swh/core/github/utils.py:219: in request return self._request(url) .tox/py3/lib/python3.7/site-packages/tenacity/__init__.py:326: in wrapped_f return self(f, *args, **kw) .tox/py3/lib/python3.7/site-packages/tenacity/__init__.py:406: in __call__ do = self.iter(retry_state=retry_state) .tox/py3/lib/python3.7/site-packages/tenacity/__init__.py:351: in iter return fut.result() /usr/lib/python3.7/concurrent/futures/_base.py:425: in result return self.__get_result() /usr/lib/python3.7/concurrent/futures/_base.py:384: in __get_result raise self._exception .tox/py3/lib/python3.7/site-packages/tenacity/__init__.py:409: in __call__ result = fn(*args, **kwargs) .tox/py3/lib/python3.7/site-packages/swh/core/github/utils.py:164: in _request response = self.session.get(url) .tox/py3/lib/python3.7/site-packages/requests/sessions.py:600: in get return self.request("GET", url, **kwargs) .tox/py3/lib/python3.7/site-packages/requests/sessions.py:587: in request resp = self.send(prep, **send_kwargs) .tox/py3/lib/python3.7/site-packages/requests_mock/mocker.py:185: in _fake_send return _original_send(session, request, **kwargs) .tox/py3/lib/python3.7/site-packages/requests/sessions.py:701: in send r = adapter.send(request, **kwargs) .tox/py3/lib/python3.7/site-packages/requests_mock/adapter.py:248: in send resp = matcher(request) .tox/py3/lib/python3.7/site-packages/requests_mock/adapter.py:228: in __call__ return response_matcher.get_response(request) .tox/py3/lib/python3.7/site-packages/requests_mock/response.py:271: in get_response json=_call(self._params.get('json')), _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ f = <function github_response_callback at 0x7fcf38adaea0>, args = () kwargs = {} def _call(f, *args, **kwargs): > return f(request, context, *args, **kwargs) if callable(f) else f E TypeError: github_response_callback() missing 1 required positional argument: 'remaining_requests' .tox/py3/lib/python3.7/site-packages/requests_mock/response.py:268: TypeError