Page MenuHomeSoftware Heritage

origin_metadata_add: Reject non-bytes types for 'metadata'.
ClosedPublic

Authored by vlorentz on May 19 2020, 6:33 PM.

Details

Summary

The left-over jsonize() allowed passing a dict under some
circumstances, which allowed tests to pass but failed in
production.

Diff Detail

Repository
rDSTO Storage manager
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 12438
Build 18877: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 18876: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.May 19 2020, 6:38 PM

Build is green

Patch application report for D3168 (id=11250)

Rebasing onto e645e63709...

Current branch diff-target is up to date.
Changes applied before test
commit 8c2ee709495b8c2677f7a60e91075f4c3df75ab3
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue May 19 18:24:21 2020 +0200

    origin_metadata_add: Reject non-bytes types for 'metadata'.
    
    The left-over jsonize() allowed passing a dict under some
    circumstances, which allowed tests to pass but failed in
    production.

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