- Feb 11, 2022
-
-
David Douard authored
will be used to implement several test scenarios in following commits. Also rename existing sql scripts with a "legit" numbering scheme.
-
David Douard authored
-
David Douard authored
-
David Douard authored
-
David Douard authored
-
David Douard authored
-
- Feb 10, 2022
-
-
Antoine Lambert authored
To install the new hook: $ pre-commit install -t commit-msg
-
- Feb 04, 2022
-
- Jan 20, 2022
-
-
David Douard authored
allowing to keep track of state-machine/workflow like status changes as statsd gauges.
-
- Jan 17, 2022
-
-
Nicolas Dandrimont authored
pre-commit is needed externally, not for the actual swh.core tests
-
- Jan 14, 2022
-
-
David Douard authored
allow to configure statsd tags from environment variable (eg. add the hostname as tag).
-
- Dec 16, 2021
-
-
Antoine R. Dumont authored
This also drops spurious copyright headers to those files if present. Related to T3812
-
- Dec 02, 2021
-
-
David Douard authored
defined in pytest_plugin. Also move the FakeSocket class there. It should make it easier to write statsd-related tests in dependent packages.
-
- Dec 01, 2021
-
-
David Douard authored
-
- Nov 25, 2021
-
-
Antoine Lambert authored
Exception thrown when packing a datetime without tzinfo has been changed from TypeError to ValueError.
-
- Nov 08, 2021
-
-
vlorentz authored
It depends on psycopg 3 instead of psycopg2; but we still use psycopg2 everywhere
-
- Sep 17, 2021
-
-
Antoine Lambert authored
Some archive files do not have any extension but we can guess their format by getting their mime types. So add a last resort processing step to get archive format from mime type prior trying to extract it. Related to T3468
-
- Sep 15, 2021
-
-
Antoine Lambert authored
Rust crate files are standard tar.gz archives so add support to uncompress them through shutil.register_unpack_format. For the record, those kind of source files archive are processed by the nixguix loader.
-
Antoine Lambert authored
By default shutil.unpack_archive will try to match the archive format from its extension but it does not do it in a case insensitive way. Thus trying to extract a file named "archive.ZIP" will fail. So try to detect archive format in a case insensitive way by processing the data returned by shutil.get_unpack_formats prior unpacking.
-
Antoine Lambert authored
Nothing should be printed to standard output when calling swh.core.tarball.uncompress.
-
- Aug 30, 2021
-
-
Boris Baldassari authored
- Aug 25, 2021
-
-
Antoine R. Dumont authored
Related to T3468
-
- Jul 30, 2021
-
-
vlorentz authored
It's needed to properly read from storage.directory_get_entries, which returns None instead of empty iterators when a directory is not found (so clients can tell the difference with the empty directory without hardcoding its hash).
-
- Jun 11, 2021
-
-
Antoine Lambert authored
Do not leak internal swh.core.tarball implementation in tests. Also fix swh.core.tarball.uncompress documentation and implementation, the function should not return a value.
- Jun 10, 2021
-
-
Antoine Lambert authored
Python zipfile module does not support the unpacking of ZIP archive with legacy compression type 6 (implode). Fallback using the unzip command in that case as it supports the unpacking of such ZIP file. Closes T3369
-
- Jun 09, 2021
-
-
vlorentz authored
-
Antoine Lambert authored
Use lowercase only for requirement names and sort them in lexicographical order. Move types-* in requirements-test.txt files as they are not required for execution. Remove no longer used requirements-test-db.txt file and associated testing-db extra in setup.py.
-
Antoine R. Dumont authored
-
- Jun 08, 2021
-
-
Antoine Lambert authored
This ensures mypy will not produce errors while being able to run tests regardless pytest-postgresql version (<3 or >=3).
-
- May 10, 2021
-
-
Jayesh authored
-
- May 06, 2021
-
-
vlorentz authored
Two changes affect us: * pytest_postgresql.factories.get_config was moved to pytest_postgresql.config.get_config * all db_name keywords and attributes were renamed to dbname For consistency, I renamed db_name to dbname everywhere, so this will affect other SWH packages.
-
Antoine Lambert authored
When building the global swh documentation, all commands defined in other swh packages will be insterted in the swh.core cli documentation but we only want to document the root command here. This also fixes the remaining sphinx warning when building the global swh documentation.
- May 05, 2021
-
-
vlorentz authored
3.0 breaks backwards compatibility, we should handle the upgrade in a separate patch, for now this ensures the rest of the pipelines can keep running.
-
- Apr 26, 2021
-
-
Nicolas Dandrimont authored
The previous implementation would not normalize permissions for files detected as executable. This would make the loader crash when a file has bogus permissions such as 0o100100 (executable but not readable). This adds a test that all possible file permissions properly normalize to either 0o100644 or 0o100755.
-
- Apr 23, 2021
-
-
Antoine Lambert authored
Enable to check package documentation can be built without producing sphinx warnings. The sphinx environment is designed to be used in continuous integration in order to prevent breaking documentation build when committing changes. The sphinx-dev environment is designed to be used inside a full swh development environment. Related to T3258
-
- Apr 16, 2021
-
-
Antoine Lambert authored
Related to T2265
-
- Apr 15, 2021
-
-
vlorentz authored
-