Page MenuHomeSoftware Heritage

git_bare: Use original author names instead of display names
ClosedPublic

Authored by vlorentz on Feb 3 2022, 11:55 AM.

Details

Summary

We need to use the original names for commit/tag content to match their hash;
otherwise git-fsck/git-clone would error and make cooked repositories
unusable.

Test Plan

The 'with-graph' test depends will fail, as it depends on D7070.

Diff Detail

Event Timeline

Build has FAILED

Patch application report for D7071 (id=25656)

Could not rebase; Attempt merge onto 1da8cbe0a9...

Updating 1da8cbe..042735a
Fast-forward
 requirements-swh.txt                    |   2 +-
 swh/vault/cookers/git_bare.py           |  29 ++++---
 swh/vault/tests/test_cookers.py         | 117 +++++++++++++++++++++++++++-
 swh/vault/tests/test_git_bare_cooker.py | 133 ++++++++++++++++++++++++++++++++
 4 files changed, 268 insertions(+), 13 deletions(-)
Changes applied before test
commit 042735ace5ef4dc8325b98f5fcbf2882e928bc48
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Feb 3 11:52:54 2022 +0100

    git_bare: Use original author names instead of display names
    
    We need to use the original names for commit/tag content to match their hash;
    otherwise git-fsck/git-clone would error and make cooked repositories
    unusable.

commit b8d825325d84a4417b6a71aabb1d591d347772e0
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Wed Feb 2 18:31:06 2022 +0100

    git_bare: Use raw_manifest when available
    
    This allows restoring objects as-is, so they match checksums;
    even when the parser was lossy.

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

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 3 2022, 11:56 AM
Harbormaster failed remote builds in B26486: Diff 25656!
ardumont added a subscriber: ardumont.

nice

a couple of unblocking suggestion

swh/vault/tests/test_git_bare_cooker.py
473

?

533

?

This revision is now accepted and ready to land.Feb 3 2022, 3:38 PM
swh/vault/tests/test_git_bare_cooker.py
473

it's an object of type Person...

This revision was landed with ongoing or failed builds.Feb 8 2022, 10:17 AM
This revision was automatically updated to reflect the committed changes.

Build has FAILED

Patch application report for D7071 (id=25799)

Rebasing onto cbad3b9da8...

First, rewinding head to replay your work on top of it...
Fast-forwarded diff-target to base-revision-204-D7071.
Changes applied before test

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