Page MenuHomeSoftware Heritage

Add support for author=None and committer=None
ClosedPublic

Authored by vlorentz on Mar 21 2022, 3:18 PM.

Details

Summary

committer=None happens on some malformed commits generated by old dgit version;
and it is possible for author=None to happen for the same reason.

Test Plan

Tests will fail because D7400 is not released yet

Diff Detail

Repository
rDSTO Storage manager
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 D7399 (id=26738)

Rebasing onto 98b41c8549...

Current branch diff-target is up to date.
Changes applied before test
commit 54f426d729bfa41571562da61c45698830553044
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Mar 21 15:18:20 2022 +0100

    Add support for author=None and committer=None
    
    committer=None happens on some malformed commits generated by old dgit
    version; and it is possible for author=None to happen for the same reason.
    
    For now, this is not supported by swh-model, so tests temporarily
    disable attrs checks that swh-model relies on.

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

Harbormaster returned this revision to the author for changes because remote builds failed.Mar 21 2022, 3:28 PM
Harbormaster failed remote builds in B27633: Diff 26738!
vlorentz edited the test plan for this revision. (Show Details)

Build has FAILED

Patch application report for D7399 (id=26740)

Rebasing onto 98b41c8549...

Current branch diff-target is up to date.
Changes applied before test
commit aed320efc5bccc963b55357b7d646c13da5e417c
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Mar 21 15:46:43 2022 +0100

    Remove typing workarounds for Revision.author or Revision.committer being None
    
    swh-model 6.0.0 adds proper support for them.
    
    + fix issue found by mypy

commit 052efb9701dac27dff1ec8ce11faccc874110064
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Mar 21 15:18:20 2022 +0100

    Add support for author=None and committer=None
    
    committer=None happens on some malformed commits generated by old dgit
    version; and it is possible for author=None to happen for the same reason.
    
    For now, this is not supported by swh-model, so tests temporarily
    disable attrs checks that swh-model relies on.

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

Harbormaster returned this revision to the author for changes because remote builds failed.Mar 21 2022, 3:48 PM
Harbormaster failed remote builds in B27635: Diff 26740!
vlorentz edited the test plan for this revision. (Show Details)
olasd added a subscriber: olasd.

So, I assume this will bump the swh.model dependency to 6.0 before it lands?

This revision is now accepted and ready to land.Mar 23 2022, 10:48 AM

rebase + fix test + bump dep

Build has FAILED

Patch application report for D7399 (id=26816)

Rebasing onto 92c78ab547...

Current branch diff-target is up to date.
Changes applied before test
commit 6fdaf8a05d6955dfd53c76d0ceec9226040d9ca8
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Mar 21 15:46:43 2022 +0100

    Remove typing workarounds for Revision.author or Revision.committer being None
    
    swh-model 6.0.0 adds proper support for them.
    
    + fix issue found by mypy

commit 3eff720a0c2cabb756a4635bb107659cae3e903a
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Mar 21 15:18:20 2022 +0100

    Add support for author=None and committer=None
    
    committer=None happens on some malformed commits generated by old dgit
    version; and it is possible for author=None to happen for the same reason.
    
    For now, this is not supported by swh-model, so tests temporarily
    disable attrs checks that swh-model relies on.

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

Build has FAILED

Patch application report for D7399 (id=26816)

Rebasing onto 92c78ab547...

Current branch diff-target is up to date.
Changes applied before test
commit 6fdaf8a05d6955dfd53c76d0ceec9226040d9ca8
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Mar 21 15:46:43 2022 +0100

    Remove typing workarounds for Revision.author or Revision.committer being None
    
    swh-model 6.0.0 adds proper support for them.
    
    + fix issue found by mypy

commit 3eff720a0c2cabb756a4635bb107659cae3e903a
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Mar 21 15:18:20 2022 +0100

    Add support for author=None and committer=None
    
    committer=None happens on some malformed commits generated by old dgit
    version; and it is possible for author=None to happen for the same reason.
    
    For now, this is not supported by swh-model, so tests temporarily
    disable attrs checks that swh-model relies on.

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

This revision was landed with ongoing or failed builds.Mar 23 2022, 4:48 PM
This revision was automatically updated to reflect the committed changes.