Page MenuHomeSoftware Heritage

storage.in_memory: use attr classes in the (internal) SubStorage.
ClosedPublic

Authored by vlorentz on Oct 1 2020, 12:11 PM.

Details

Summary

No change to the interface yet, it's a preliminary change needed
to do it.

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 D4108 (id=14473)

Rebasing onto e92b931e47...

Current branch diff-target is up to date.
Changes applied before test
commit 799e3fb0172caeaa58595f9f778ed0eb835a9f22
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Oct 1 12:10:02 2020 +0200

    storage.in_memory: use attr classes in the (internal) SubStorage.
    
    No change to the interface yet, it's a preliminary change needed
    to do it.

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

Build has FAILED

Patch application report for D4108 (id=14474)

Rebasing onto e92b931e47...

Current branch diff-target is up to date.
Changes applied before test
commit 02e226b0ab9d75746950ceb122b5b2dd76a7d644
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Oct 1 12:10:02 2020 +0200

    storage.in_memory: use attr classes in the (internal) SubStorage.
    
    No change to the interface yet, it's a preliminary change needed
    to do it.

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

lgtm

tests unhappy though and i have one question inline.

swh/indexer/storage/in_memory.py
64

What does this means?

swh/indexer/storage/model.py
6

by* the

35

not-None?

why not plain not None ? (same question for the raise below).

vlorentz added inline comments.
swh/indexer/storage/in_memory.py
64

https://docs.python.org/3/library/typing.html#user-defined-generic-types

and bound=BaseRow means its values can only be subclasses of BaseRow.

swh/indexer/storage/model.py
35

whatever

tests unhappy though

Oh yeah, forgot to tag D4087

Build has FAILED

Patch application report for D4108 (id=14476)

Rebasing onto e92b931e47...

Current branch diff-target is up to date.
Changes applied before test
commit cd650f102d686c5d7e95fe9dc4f1e4b0e87f4066
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Oct 1 12:10:02 2020 +0200

    storage.in_memory: use attr classes in the (internal) SubStorage.
    
    No change to the interface yet, it's a preliminary change needed
    to do it.

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

should tag the core first though then ;)

swh/indexer/storage/in_memory.py
64

thanks

This revision is now accepted and ready to land.Oct 1 2020, 12:41 PM

Build is green

Patch application report for D4108 (id=14476)

Rebasing onto e92b931e47...

Current branch diff-target is up to date.
Changes applied before test
commit cd650f102d686c5d7e95fe9dc4f1e4b0e87f4066
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Oct 1 12:10:02 2020 +0200

    storage.in_memory: use attr classes in the (internal) SubStorage.
    
    No change to the interface yet, it's a preliminary change needed
    to do it.

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