Page MenuHomeSoftware Heritage

api/snapshot: Handle aliases chain when resolving real branch target
ClosedPublic

Authored by anlambert on Dec 2 2019, 3:28 PM.

Details

Summary

Hypothesis can generate chain of aliases in a snapshot content. We could also encounter
such cases in real world data so we need to handle it.

Test Plan

This issue was discovered by an already written test when using the slow hypothesis
profile mode.

Depends on D2382

Diff Detail

Repository
rDWAPPS Web applications
Branch
snapshot-resolve-aliases-chain
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 9467
Build 13908: Cypress tests for swh-web diffsJenkins
Build 13907: tox-on-jenkinsJenkins
Build 13906: arc lint + arc unit

Event Timeline

olasd added a subscriber: olasd.

This is crying for a "lazy-loaded snapshot object" abstraction in swh.storage, but I guess that's a good step up from the status quo :)

This revision is now accepted and ready to land.Dec 3 2019, 10:36 AM