- May 10, 2023
-
-
vlorentz authored
1. When passed a .yaml path (or any path with a non-whitelisted extension), don't read .yml instead when the .yaml exists. It's an extremely surprising behavior. 2. If the .yaml file does not exist, it will still try alternative extensions in order not to break existing deployments which may rely on it, but it raises a warning now. 3. When given a non-existing path, show an error log, but keep parsing it as an empty config, in order not to break existing deployments.
-
- May 02, 2023
-
-
vlorentz authored
eg. '413 Request Entity Too Large' raised by nginx
-
- Apr 20, 2023
-
-
Antoine Lambert authored
It returns the full JSON metadata of a GitHub repository by querying the GitHub REST API. Also refactor get_canonical_url method with it. Related to swh-loader-git#3652.
-
- Apr 18, 2023
-
-
Antoine Lambert authored
GitHub API seems to have harmonized its responses when API rate limit is exceeded regardless an user is authenticated or not: a 403 status code is returned with an error message starting with "API rate limit exceeded" (https://docs.github.com/en/rest/overview/resources-in-the-rest-api ?apiVersion=2022-11-28#exceeding-the-rate-limit). Previously, a 429 status code was returned for authenticated users. So update code detecting exceeded rate limit accordingly and keep the 429 status check for backward compatibility just in case. Fix #4429
-
- Apr 13, 2023
-
-
Antoine Lambert authored
It enables to deduplicate HTTP retry code used in swh-lister and swh-loader-core packages.
-
- Mar 27, 2023
-
-
Antoine Lambert authored
It is useful to compute the release name for sentry when the SWH_MAIN_PACKAGE environment variable is not defined. Related to swh/meta#4949.
-
- Mar 13, 2023
-
-
vlorentz authored
We don't use positional arguments anywhere, except in the one place where we accidentally passed namespace as host: swh-journal!260
-
- Mar 08, 2023
-
-
David Douard authored
- Feb 21, 2023
-
-
vlorentz authored
- Feb 20, 2023
-
-
Related to swh/meta#4959
-
- Feb 17, 2023
-
-
Antoine Lambert authored
Related to swh/meta#4960
-
- Feb 02, 2023
-
-
Antoine Lambert authored
This fixes python 3.7 support due to poetry, a dependency of isort, that removed support for that Python version in a recent release.
-
- Jan 24, 2023
-
- Jan 23, 2023
-
-
Antoine R. Dumont authored
This module only depends on core python library. That will allow to simplify deployment logging configuration per infrastructure. Refs. swh/infra/sysadm-environment#4524
-
- Dec 21, 2022
-
- Dec 09, 2022
-
-
Antoine Lambert authored
In order to remove warnings about /apidoc/*.rst files being included multiple times in toc when building full swh documentation, prefer to include module indices only when building standalone package documentation. Also include them the proper sphinx way. Related to T4496
-
- Oct 24, 2022
-
-
Antoine R. Dumont authored
It's already supported [1] but not wired in this module. Related to T3781#97784
-
- Oct 18, 2022
-
-
David Douard authored
- pre-commit from 4.1.0 to 4.3.0, - codespell from 2.2.1 to 2.2.2, - black from 22.3.0 to 22.10.0 and - flake8 from 4.0.1 to 5.0.4. Also freeze flake8 dependencies. Also change flake8's repo config to github (the gitlab mirror being outdated).
-
- Oct 13, 2022
-
- Oct 12, 2022
-
-
Antoine Lambert authored
When shutil.unpack_archive failed to unpack a tarball, fallback using the tar command to perform that task. Such issues were encountered when trying to unpack old tarballs coming from CPAN. Related to T2833
-
Antoine Lambert authored
It exist cases when an uncompressed tarball has directories without any traversal or read permissions so ensure to also fix directory permissions in normalize_permissions function.
-
- Oct 05, 2022
-
-
Antoine R. Dumont authored
Related to T3781
-
- Oct 03, 2022
-
-
Antoine R. Dumont authored
This will allow to reuse it when we try to detect tarball nature in lister. Related to T3781
-
vlorentz authored
This mirrors the behavior of the synchronous server. In practice, this means the objstorage won't log ObjNotFoundError or report them to Sentry.
-
- Sep 12, 2022
-
-
Antoine Lambert authored
In order for that useful fixture to be shared across multiple swh packages, move it from swh-indexer to main swh-core pytest plugin. Also add a couple of tests for it.
-
- Aug 23, 2022
-
-
vlorentz authored
Without the return, 'psycopg2.connect(db_or_conninfo)' is actually reachable when calling next() twice on the generator
-
- Aug 19, 2022
-
-
Antoine Lambert authored
-
- Aug 09, 2022
- Aug 05, 2022
- Aug 04, 2022
-
-
vlorentz authored
According to <https://github.com/pallets/flask/issues/4734#issuecomment-1204124984>, app.test_client() should not be used as a long-lived context manager. This causes swh-indexer's tests to break with Flask >= 2.2.0 because some of them start threads within the lifespan of the context manager, which causes a crash. As far as I can tell, simply assigning app.test_client() instead of entering does not break anything.
-
- Jul 05, 2022
-
-
David Douard authored
so one can create database (e.g. for unit tests) of given flavor.
-
- Jul 04, 2022
-
-
vlorentz authored
We already have 'msgpack >= 1.0.0' in requirements.txt
-
- Jun 16, 2022
-
-
Franck Bret authored
_zst_unpack method added to support '.tar.zst' extension and 'application/zstd', 'application/x-zstd' mime type. Add archive example file and a test for unpacking zst file.
-