Page MenuHomeSoftware Heritage

in_memory: Fix snapshot_get_branches regression with target_types
ClosedPublic

Authored by anlambert on Jul 10 2020, 4:06 PM.

Details

Summary

When providing target_types parameter, snapshot branches must be sorted when
iterating otherwise wrong branches can be returned.

Diff Detail

Repository
rDSTO Storage manager
Branch
in-memory-snapshot-get-branches-fix
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 13590
Build 20808: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 20807: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D3500 (id=12363)

Rebasing onto 23318c21d1...

Current branch diff-target is up to date.
Changes applied before test
commit 5513ff4bb18e4febb0945b559dd83b7b01b3d3bf
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Fri Jul 10 16:02:30 2020 +0200

    in_memory: Fix snapshot_get_branches regression with target_types
    
    When providing target_types parameter, snapshot branches must be sorted when
    iterating otherwise wrong branches can be returned.

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

Update: Sort branches only once

Build is green

Patch application report for D3500 (id=12368)

Rebasing onto 23318c21d1...

Current branch diff-target is up to date.
Changes applied before test
commit 9219a23606c8051377a6f83c07144c4c80ea21e7
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Fri Jul 10 16:02:30 2020 +0200

    in_memory: Fix snapshot_get_branches regression with target_types
    
    When providing target_types parameter, snapshot branches must be sorted when
    iterating otherwise wrong branches can be returned.

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

This revision is now accepted and ready to land.Jul 10 2020, 4:24 PM