Page MenuHomeSoftware Heritage

Use separate base classes for intrinsic and extrinsic mappings
ClosedPublic

Authored by vlorentz on Jul 4 2022, 1:38 PM.

Details

Summary

detect_metadata_files and extrinsic_metadata_formats (respectively) are somewhat
mutually exclusive, so it does not make much sense to have them in the same
class and MAPPINGS dict

Partially addresses comments in D8053

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build has FAILED

Patch application report for D8072 (id=29135)

Could not rebase; Attempt merge onto 61b22345e7...

Updating 61b2234..8340183
Fast-forward
 swh/indexer/metadata.py                     | 10 +++--
 swh/indexer/metadata_detector.py            |  4 +-
 swh/indexer/metadata_dictionary/__init__.py | 12 +++++-
 swh/indexer/metadata_dictionary/base.py     | 59 +++++++++++++++++------------
 swh/indexer/metadata_dictionary/cff.py      | 10 ++---
 swh/indexer/metadata_dictionary/codemeta.py |  4 +-
 swh/indexer/metadata_dictionary/github.py   |  4 +-
 swh/indexer/metadata_dictionary/maven.py    |  4 +-
 swh/indexer/metadata_dictionary/npm.py      |  4 +-
 swh/indexer/metadata_dictionary/python.py   |  4 +-
 swh/indexer/metadata_dictionary/ruby.py     |  4 +-
 11 files changed, 69 insertions(+), 50 deletions(-)
Changes applied before test
commit 8340183b9574a40f540b0fa18013b9daf0fb54b6
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:37:58 2022 +0200

    Use separate base classes for intrinsic and extrinsic mappings
    
    detect_metadata_files and extrinsic_metadata_formats (respectively) are somewhat
    mutually exclusive, so it does not make much sense to have them in the same
    class and MAPPINGS dict

commit d84d1a47c3fbfe6eff2afd26253382f9f3fd13e5
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:03:17 2022 +0200

    cff: Remove redundant @context setting
    
    It is already set by _translate_dict itself.

Link to build: https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/321/
See console output for more information: https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/321/console

Build has FAILED

Patch application report for D8072 (id=29136)

Could not rebase; Attempt merge onto 61b22345e7...

Updating 61b2234..5fb5092
Fast-forward
 docs/metadata-workflow.rst                  |  6 ++-
 swh/indexer/metadata.py                     | 10 +++--
 swh/indexer/metadata_detector.py            |  4 +-
 swh/indexer/metadata_dictionary/__init__.py | 12 +++++-
 swh/indexer/metadata_dictionary/base.py     | 59 +++++++++++++++++------------
 swh/indexer/metadata_dictionary/cff.py      | 10 ++---
 swh/indexer/metadata_dictionary/codemeta.py |  4 +-
 swh/indexer/metadata_dictionary/github.py   |  4 +-
 swh/indexer/metadata_dictionary/maven.py    |  4 +-
 swh/indexer/metadata_dictionary/npm.py      |  4 +-
 swh/indexer/metadata_dictionary/python.py   |  4 +-
 swh/indexer/metadata_dictionary/ruby.py     |  4 +-
 12 files changed, 73 insertions(+), 52 deletions(-)
Changes applied before test
commit 5fb5092657ba4c3dd51c079eaba397f52f4f5f9d
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:37:58 2022 +0200

    Use separate base classes for intrinsic and extrinsic mappings
    
    detect_metadata_files and extrinsic_metadata_formats (respectively) are somewhat
    mutually exclusive, so it does not make much sense to have them in the same
    class and MAPPINGS dict

commit d84d1a47c3fbfe6eff2afd26253382f9f3fd13e5
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:03:17 2022 +0200

    cff: Remove redundant @context setting
    
    It is already set by _translate_dict itself.

Link to build: https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/322/
See console output for more information: https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/322/console

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 4 2022, 1:47 PM
Harbormaster failed remote builds in B30229: Diff 29136!

Build is green

Patch application report for D8072 (id=29139)

Could not rebase; Attempt merge onto 61b22345e7...

Updating 61b2234..7a2d641
Fast-forward
 docs/metadata-workflow.rst                  |  6 ++-
 swh/indexer/metadata.py                     | 10 +++--
 swh/indexer/metadata_detector.py            |  4 +-
 swh/indexer/metadata_dictionary/__init__.py | 12 +++++-
 swh/indexer/metadata_dictionary/base.py     | 59 +++++++++++++++++------------
 swh/indexer/metadata_dictionary/cff.py      | 10 ++---
 swh/indexer/metadata_dictionary/codemeta.py |  4 +-
 swh/indexer/metadata_dictionary/github.py   |  4 +-
 swh/indexer/metadata_dictionary/maven.py    |  4 +-
 swh/indexer/metadata_dictionary/npm.py      |  4 +-
 swh/indexer/metadata_dictionary/python.py   |  4 +-
 swh/indexer/metadata_dictionary/ruby.py     |  4 +-
 12 files changed, 73 insertions(+), 52 deletions(-)
Changes applied before test
commit 7a2d641f4fdd2f9922800e4f12c99646cf86cb6f
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:37:58 2022 +0200

    Use separate base classes for intrinsic and extrinsic mappings
    
    detect_metadata_files and extrinsic_metadata_formats (respectively) are somewhat
    mutually exclusive, so it does not make much sense to have them in the same
    class and MAPPINGS dict

commit d84d1a47c3fbfe6eff2afd26253382f9f3fd13e5
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:03:17 2022 +0200

    cff: Remove redundant @context setting
    
    It is already set by _translate_dict itself.

See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/324/ for more details.

Build is green

Patch application report for D8072 (id=29169)

Could not rebase; Attempt merge onto ff2730c3f6...

Updating ff2730c..7dfc75c
Fast-forward
 docs/metadata-workflow.rst                  |  6 ++-
 swh/indexer/metadata.py                     | 10 +++--
 swh/indexer/metadata_detector.py            |  4 +-
 swh/indexer/metadata_dictionary/__init__.py | 12 +++++-
 swh/indexer/metadata_dictionary/base.py     | 59 +++++++++++++++++------------
 swh/indexer/metadata_dictionary/cff.py      | 10 ++---
 swh/indexer/metadata_dictionary/codemeta.py |  4 +-
 swh/indexer/metadata_dictionary/composer.py |  4 +-
 swh/indexer/metadata_dictionary/github.py   |  4 +-
 swh/indexer/metadata_dictionary/maven.py    |  4 +-
 swh/indexer/metadata_dictionary/npm.py      |  4 +-
 swh/indexer/metadata_dictionary/python.py   |  4 +-
 swh/indexer/metadata_dictionary/ruby.py     |  4 +-
 13 files changed, 75 insertions(+), 54 deletions(-)
Changes applied before test
commit 7dfc75cf1af32c0c7dc066434287ecb65091dc5c
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:37:58 2022 +0200

    Use separate base classes for intrinsic and extrinsic mappings
    
    detect_metadata_files and extrinsic_metadata_formats (respectively) are somewhat
    mutually exclusive, so it does not make much sense to have them in the same
    class and MAPPINGS dict

commit c2742b5b75f62a550ee905699cd47b5b13eac52a
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:03:17 2022 +0200

    cff: Remove redundant @context setting
    
    It is already set by _translate_dict itself.

See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/333/ for more details.

Build is green

Patch application report for D8072 (id=29171)

Could not rebase; Attempt merge onto ff2730c3f6...

Updating ff2730c..d41f26e
Fast-forward
 docs/metadata-workflow.rst                  |  6 ++-
 swh/indexer/metadata.py                     | 10 +++--
 swh/indexer/metadata_detector.py            |  4 +-
 swh/indexer/metadata_dictionary/__init__.py | 12 +++++-
 swh/indexer/metadata_dictionary/base.py     | 59 +++++++++++++++++------------
 swh/indexer/metadata_dictionary/cff.py      | 10 ++---
 swh/indexer/metadata_dictionary/codemeta.py |  4 +-
 swh/indexer/metadata_dictionary/composer.py |  4 +-
 swh/indexer/metadata_dictionary/github.py   | 12 ++----
 swh/indexer/metadata_dictionary/maven.py    |  4 +-
 swh/indexer/metadata_dictionary/npm.py      |  4 +-
 swh/indexer/metadata_dictionary/python.py   |  4 +-
 swh/indexer/metadata_dictionary/ruby.py     | 11 ++----
 13 files changed, 78 insertions(+), 66 deletions(-)
Changes applied before test
commit d41f26eef0561fd41932eb688bc6908f2253ef4c
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:37:58 2022 +0200

    Use separate base classes for intrinsic and extrinsic mappings
    
    detect_metadata_files and extrinsic_metadata_formats (respectively) are somewhat
    mutually exclusive, so it does not make much sense to have them in the same
    class and MAPPINGS dict

commit c2742b5b75f62a550ee905699cd47b5b13eac52a
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Jul 4 13:03:17 2022 +0200

    cff: Remove redundant @context setting
    
    It is already set by _translate_dict itself.

See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/335/ for more details.

This revision is now accepted and ready to land.Jul 6 2022, 3:58 PM