- Oct 16, 2020
-
-
Antoine R. Dumont authored
Related to T1410
-
Antoine R. Dumont authored
-
- Oct 02, 2020
-
-
Stefano Zacchiroli authored
-
- Sep 25, 2020
-
-
Nicolas Dandrimont authored
We stopped using it months ago.
-
Nicolas Dandrimont authored
-
David Douard authored
-
David Douard authored
-
- Sep 24, 2020
-
-
Nicolas Dandrimont authored
Looks like kombu finally axed python2 support.
-
- Sep 17, 2020
-
-
Antoine Lambert authored
Related to T2610
-
Antoine Lambert authored
Related to T2610
-
Antoine Lambert authored
flake8 hook has been removed from https://github.com/pre-commit/pre-commit-hooks so now use the one from https://gitlab.com/pycqa/flake8
-
- Sep 10, 2020
-
-
David Douard authored
by moving import statements in functions and using conditional import of typechecking modules (especially StorageInterface which triggers the loading of 300+ modules). Related to T2575.
-
- Aug 25, 2020
-
-
vlorentz authored
pytest wastes a lot of time in .hypothesis and .git; this commit excludes them.
-
- Aug 03, 2020
-
-
Antoine R. Dumont authored
Related to T645
-
- Jul 24, 2020
-
-
Antoine R. Dumont authored
-
- Jul 21, 2020
-
-
Antoine R. Dumont authored
Related to T2494
-
- Jul 10, 2020
-
-
Antoine R. Dumont authored
Defining the pytest-plugin though the pytest-plugin [1] makes it loaded by default. This creates loading issues on modules depending on scheduler but not on the pytest plugin scheduler exposes as explained in the doc [2] Instead we'll explicitely define to modules depending on the pytest plugins in their root conftest [3]: pytest_plugins = [ "swh.scheduler.pytest_plugin" ] [1] https://docs.pytest.org/en/stable/writing_plugins.html#setuptools-entry-points [2] https://docs.pytest.org/en/stable/writing_plugins.html#plugin-discovery-order-at-tool-startup [3] https://docs.pytest.org/en/stable/writing_plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file Related to D3475 Related to T2484
-
- Jul 08, 2020
-
-
Antoine Lambert authored
This was needed for celery 4.4.4 but that version is not used anymore.
-
Nicolas Dandrimont authored
This allows us to reuse these fixtures in other modules without brittle swh.scheduler.tests.conftest star imports. Unfortunately, we can't really override pytest fixtures from one plugin to another. We therefore reimplement the fixtures provided by celery, inlining the static configuration and renaming them to our names in the process. This also adds a backwards-compatibility import from pytest_plugin to conftest, to allow old users of the conftest fixtures to keep working.
-
- Jul 07, 2020
-
-
Antoine R. Dumont authored
-
- Jul 06, 2020
-
-
Nicolas Dandrimont authored
This avoids having to run `from swh.scheduler.tests.conftest import *` in other modules, e.g. swh.lister, to import and use the swh_scheduler pytest fixture.
-
Nicolas Dandrimont authored
This paginated endpoint allows retrieving information about the origins recorded by listers.
-
Nicolas Dandrimont authored
We need to use our serialization hook recursively to make sure that we can deserialize nested data structures.
-
- Jun 22, 2020
-
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
-
- Jun 16, 2020
-
-
Nicolas Dandrimont authored
This new API endpoint allows listers to record the origins they have seen during their current run. Origins are identified by the lister instance, the url of the origin, and the type of loader that should be used to load this origin. The implementation allows listers just send the list of origins they've seen (with some lightweight extra information), leaving the backend to handle whether to do an insertion or an update to an existing origin. The current implementation doesn't disable origins that have disappeared when doing a full listing run. This step will be done by a separate "origin garbage collection" endpoint, which will peruse the `last_seen` field.
-
Nicolas Dandrimont authored
This lets us keep the tests a little DRYer.
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
This splits primary keys across "automatic" primary keys (handled by the database) and manual primary keys (managed by the user). Use the opportunity to improve/clarify the documentation of field metadata attributes.
-
- Jun 15, 2020
-
-
Nicolas Dandrimont authored
This adds a pair a functions to the backend: - `get_or_create_lister` pulls the record for a given lister from the database - `update_lister` updates the record for a given lister in the database This is one of the basic building blocks for the integration of lister information directly in the scheduler database. Related to T2442.
-
Nicolas Dandrimont authored
This allows us to automatically serialize/deserialize exceptions under this base class within our RPC framework.
-
Nicolas Dandrimont authored
Alongside swh.model.model, this allows us to define data models for the objects the scheduler is working with, and to serialize/deserialize these objects transparently at the RPC layer. This also introduces some mild ORM-like logic so we can keep the actual SQL a little DRYer.
-
- Jun 11, 2020
-
-
Nicolas Dandrimont authored
-
- Jun 10, 2020
-
-
Nicolas Dandrimont authored
This new subcommand has two commands: - ping: checks whether the given worker instance answers within a given timeout - list-running: lists running tasks on the given worker instance
-
Nicolas Dandrimont authored
The logging module is already initialized by the main swh.core cli; This only creates double logging with no advantages whatsoever.
-
Nicolas Dandrimont authored
When running the cli with default settings (i.e. pointing to a softwareheritage-scheduler-dev database), and the database doesn't exist, an OperationalError is raised. This shouldn't prevent (some of the) cli subcommands from working, so catch this error and ignore it as one of the scheduler backend setup failure modes.
-
- Jun 09, 2020
-
-
Nicolas Dandrimont authored
-
- Jun 03, 2020
-
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
We've been using pytest-postgresql for... a year (4117d5ab).
-