fix(importer): change importer to have correct key from rdm - #1107
Merged
kpsherva merged 1 commit intoAug 11, 2026
Annotations
3 errors and 11 warnings
|
Run tests
Process completed with exit code 1.
|
|
Run tests:
tests/importer/json/test_rdm_import.py#L13
test_rdm_transformation
AssertionError: assert {'_eitem': {'...-0961'}], ...} == {'_eitem': {'...-0961'}], ...}
Omitting 29 identical items, use -vv to show
Differing items:
{'document_type': 'BOOK'} != {'document_type': 'THESIS'}
Full diff:
{
'_eitem': {
'urls': [
{
'description': 'e-book',
'value': 'https://127.0.0.1/api/records/aey8d-bdw61/files/CERN-THESIS-2015-130.pdf',
},
],
},
'_migration': {
'eitems_external': None,
'eitems_proxy': None,
},
'_rdm_pid': 'v2ha7-xyc73',
'_serial': [
{
'title': 'ALEPH Theses',
},
{
'identifiers': [
{
'scheme': 'ISSN',
'value': '0356-0961',
},
],
'title': 'Series 0356-0961',
},
],
'abstract': 'A new particle decaying to a pair of vector bosons was discovered in 2012 '
'by the ATLAS and CMS experiments at the Large Hadron Collider. In the '
'wake of this discovery a rush of measurements was made to characterize '
'this particle. The four-lepton final state has been instrumental in both '
'the discovery and characterization of this new particle. With only about '
'20 events seen in the resonance peak at 125GeV the CMS experiment has '
'been able to make considerable progress in characterizing the Higgs-like '
'boson using the wealth of information in this final state in concert with '
'other decay modes. In addition to the search for this new boson we '
'present three recent results in the study of the Higgs-like boson '
'properties: studies of the production mode, total width, and spin-parity '
'quantum numbers. First we present the search for this new resonance using '
'the H to ZZ to 4l decay channel. Then we discuss the production mode '
'measurement using this final state. Next, we present two results that '
'provided breakthroughs in the study of the Higgs-like resonance. One is '
'the measurement of the width from an interplay between the off-shell and '
'on-shell production, setting a limit three orders of magnitude tighter '
'than previous limits. The other is the tensor structure measurement of '
'the bosons interactions with pairs of vector bosons, leading to '
'constraints on its spin-parity properties, where only limited '
'measurements had been done before. All of these results provide further '
'confirmation that CMS has discovered a Higgs boson near 125GeV.',
'agency_code': 'SzGeCERN',
'alternative_abstracts': [
'Some other abstract',
],
'alternative_identifiers': [
{
'scheme': 'CDS',
'value': 'aey8d-bdw61',
},
{
'scheme': 'INSPIRE',
'value': '1393422',
},
],
'alternative_titles': [
{
'language': 'eng',
'type': 'TRANSLATED_TITLE',
'value': 'Construction of a central pre-sampler at ATLAS and study of ',
},
{
'type': 'ALTERNATIVE_TITLE',
'value': 'Construction of a central pre-sampler at {ATLAS} and study of ',
},
],
'authors': [
{
'affiliations': [
{
'name': 'Johns Hopkins U',
},
],
'full_name': 'Martin, Christopher Blake',
'identifiers': [
{
'scheme': 'ORCID',
'value': '0000-0003-1754-9027',
},
],
'type': 'PERSON',
},
],
|
|
Run tests:
tests/importer/json/test_json_import.py#L42
test_rdm_import
AssertionError: assert 'BOOK' == 'THESIS'
- THESIS
+ BOOK
|
|
Complete job
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-python@v5. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_query_parser/walkers/match_unit.py#L27
Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_query_parser/walkers/match_unit.py#L27
Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/marshmallow/fields.py#L1302
The 'missing' argument to fields is deprecated. Use 'load_default' instead.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/webargs/__init__.py#L13
distutils Version classes are deprecated. Use packaging.version instead.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/webargs/compat.py#L8
distutils Version classes are deprecated. Use packaging.version instead.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/webargs/compat.py#L8
The '__version__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'importlib.metadata.version("marshmallow")' instead.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
background
wait
wait-all
cancel
parallel
Loading