- Jan 26, 2021
-
-
Jenkins for Software Heritage authored
Update to upstream version '0.12.0' with Debian dir fa312d034805923e43055018f760bb74d93020fa
-
David Douard authored
so it's kept up to date when evolutions are made in the model and thus preventing swh-journal and swh-model to be unecessarly coupled. Related to T2970.
- Jan 20, 2021
-
-
Jenkins for Software Heritage authored
Update to upstream version '0.11.0' with Debian dir ad60fcf7e9e7237e4c2e6dd0680004d3379e7ab9
-
Antoine R. Dumont authored
Related to T2961
- Jan 14, 2021
-
-
Jenkins for Software Heritage authored
Update to upstream version '0.10.0' with Debian dir 3349854b23ac224df660256b72722b90d897af10
- Jan 13, 2021
-
-
Vincent Sellier authored
The optional nature of the type will allow to avoid migrating the (db) data model right now then we can have this type field in kafka messages in the origin-visit-status topic Related to T2443
-
- Jan 12, 2021
-
-
vlorentz authored
They were mixed in with snapshot tests.
-
vlorentz authored
test_identifiers: Make sure that {directory,revision,release,snapshot}_identifier() doesn't just return a value from the dict. For example, before this commit, you could replace the code of revision_identifier() with this: def release_identifier(release): return release.get("id", b"") and all tests would still pass.
-
- Jan 04, 2021
-
-
vlorentz authored
-
- Dec 30, 2020
-
-
Stefano Zacchiroli authored
Before this change there was a lot of overlap between parse_swhid() and the attrs-based validators in the SWHID class. Also, the validation implementation in parse_swhid() was done by hand. With this change the coarse-grained validation done by parse_swhid() is now delegated to a regex. The semantic validation of SWHIDs is left to attrs validators. The regex is also exposed as a module attribute, to be used by client code that want to syntactically validate SWHIDs without necessarily instantiate SWHID classes (we have several other modules doing that already, and they are using slightly different hand-made regexs, which isn't great). As part of this change we also clean up the use of ValidationError exceptions, systematically passing the problematic parts of SWHID as arguments, and uniform error messages. This change also brings some speed up in SWHID parsing. On a benchmark parsing ~30 M valid SWHIDs, the previous implementation took ~3:06 minutes, the new one ~2:50 minutes, or a ~9% speedup. Closes T2788
-
- Dec 15, 2020
-
-
vlorentz authored
Unfortunately, sphinx (actually, autodoc) only picks up attributes if they fall in any of these cases: 1. are enum variants 2. are in slots 3. are in __dict__ 4. have an annotation 5. are found using its custom parser (see get_object_members in sphinx/ext/autodoc/importer.py) In theory, option 5 should work for us; unfortunately, autodoc only asks the parser the list of members with a comment. And it's not easy to adapt it to ask the parser for all members, because said parser (sphinx/pycode/parser.py) does not return the class qualname (aka. namespace) for members without comments. So, as I don't want to change the interface of sphinx.pycode.parser, this commit switches to relying on option 3, by adding __slots__ for all attr classes. Additionally, this might have some performance/memory improvement (though I did not check) and will further avoid mutation of these objects.
-
- Nov 17, 2020
-
-
Jenkins for Software Heritage authored
Update to upstream version '0.9.0' with Debian dir 83f5830c4b3e83f522a5735985fc3e419dcb1310
- Nov 16, 2020
-
-
Nicolas Dandrimont authored
All reverse dependencies have been updated to avoid using it now, so it can now be removed, paving the way to recycle it into an intrinsic identifier.
-
- Nov 12, 2020
-
-
Jenkins for Software Heritage authored
Update to upstream version '0.8.0' with Debian dir cb3baf0fb785c9fdfb080474a425f3948ef005ab
-
Antoine R. Dumont authored
Related to T2729
-
Antoine R. Dumont authored
So parse_swhid raises a ValidationError when that is detected. Related to T2769
-
Antoine R. Dumont authored
Related to T2769
-
Antoine R. Dumont authored
Related to T2769
- Nov 10, 2020
-
-
Antoine R. Dumont authored
Related to T2769
-
- Oct 27, 2020
-
-
Jenkins for Software Heritage authored
Update to upstream version '0.7.3' with Debian dir 52148284bb73fc33b424821f1624f3f539a5e6d3
-
Nicolas Dandrimont authored
This avoids throwing the deprecation warning when id and target are present and have the same value, which makes a from_dict / to_dict round-trip throw no deprecation warnings.
-
Jenkins for Software Heritage authored
Update to upstream version '0.7.2' with Debian dir 3d28dbc49bced19e4411f3c3f60af57d08510a4a
- Oct 26, 2020
-
-
Nicolas Dandrimont authored
This backwards-compatible change prepares the transition to give RawExtrinsicMetadata an `id` field that is computed intrinsically from its contents (using the HashableObject mixin).
-
- Oct 23, 2020
-
-
Nicolas Dandrimont authored
This will enable a gradual enhancement of the functions in identifiers.py to take model objects directly, and return the bytes of the hash instead of an hex representation.
-
Antoine R. Dumont authored
-
Antoine Cezar authored
-