Commits on Source (22)
-
Pierre-Yves David authored
-
Antoine Lambert authored
Side effect of swh.loader.core v5.18.0 release.
-
Antoine Lambert authored
SWH data model allows an origin to have multiple visit types, in particular a git origin can have visit types 'git' and 'git-checkout'. We must ensure to retrieve the latest snapshot for a git visit type in the git loader implementation as it can break incremental loading of a git origin having both visit types mentioned above. Indeed a 'git-checkout' visit type produces a snapshot with a single branch while a 'git' visit type produces a snapshot containing all branches of the loaded repository. Previously, if the latest snapshot retrieved was produced by a 'git-checkout' visit type, the loader would refetch all branches and associated git objects while most of them have already been archived. Related to swh/meta#5092.
-
Antoine Lambert authored
Previous implementation was building an invalid pack file with REF_DELTA object types as it was using the new object to deltify as the base of the delta. This was leading to errors and undefined behavior after building an index for such a pack file as the deltified objects could not be properly resolved by dulwich (observed by stsp while working on git loader improvements). The bases for deltified objects are now objects that were previously loaded into the archive. Tag objects produced in that test are also ensured to be valid.
-
David Douard authored
as well as in GitCheckoutLoader.
-
Antoine Lambert authored
Latest tenacity release adds some internal changes that broke the mocking of sleep calls in tests. Fix it by directly mocking time.sleep (was not working previously).
-
David Douard authored
-
Antoine Lambert authored
-
Renaud Boyer authored
-
Antoine Lambert authored
BaseLoader.load now returns a dict with an extra error field when a loading fails.
-
Antoine Lambert authored
-
Antoine Lambert authored
-
Antoine Lambert authored
It can lead to test failures if commit signing is globally enabled in git configuration.
-
Antoine Lambert authored
Bump development tools: mypy, codespell, isort, ... Move all tools configuration in pyproject.toml. Remove no longer needed mypy overrides.
-
Antoine Lambert authored
-
Antoine Lambert authored
This was used at the time we were building debian packages for swh components but we no longer do that.
-
Previously the dumb git loader was only considering refs targeting commits and tags but those can also occasionally target blobs and trees, so ensure to support such refs. Fixes #4756.
-
-
Antoine Lambert authored
When calling the content_get_data method from the storage interface, ensure to provide all content hashes as parameter to avoid an extra request on the storage server to fetch missing hashes.
-
vlorentz authored
by replacing their timestamp with epoch, and relying on the raw_manifest to store the timestamp instead
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
Showing
- .copier-answers.yml 1 addition, 1 deletion.copier-answers.yml
- .pre-commit-config.yaml 7 additions, 7 deletions.pre-commit-config.yaml
- CODE_OF_CONDUCT.md 1 addition, 1 deletionCODE_OF_CONDUCT.md
- mypy.ini 0 additions, 23 deletionsmypy.ini
- pyproject.toml 33 additions, 1 deletionpyproject.toml
- pytest.ini 0 additions, 12 deletionspytest.ini
- requirements-swh.txt 3 additions, 3 deletionsrequirements-swh.txt
- requirements-test.txt 4 additions, 2 deletionsrequirements-test.txt
- setup.cfg 0 additions, 8 deletionssetup.cfg
- swh/loader/git/converters.py 27 additions, 24 deletionsswh/loader/git/converters.py
- swh/loader/git/directory.py 4 additions, 4 deletionsswh/loader/git/directory.py
- swh/loader/git/dumb.py 11 additions, 12 deletionsswh/loader/git/dumb.py
- swh/loader/git/from_disk.py 22 additions, 12 deletionsswh/loader/git/from_disk.py
- swh/loader/git/loader.py 28 additions, 20 deletionsswh/loader/git/loader.py
- swh/loader/git/tests/test_converters.py 90 additions, 28 deletionsswh/loader/git/tests/test_converters.py
- swh/loader/git/tests/test_directory.py 7 additions, 4 deletionsswh/loader/git/tests/test_directory.py
- swh/loader/git/tests/test_from_disk.py 37 additions, 28 deletionsswh/loader/git/tests/test_from_disk.py
- swh/loader/git/tests/test_loader.py 89 additions, 33 deletionsswh/loader/git/tests/test_loader.py
- tox.ini 7 additions, 5 deletionstox.ini
mypy.ini
deleted
100644 → 0
pytest.ini
deleted
100644 → 0
setup.cfg
deleted
100644 → 0