Page MenuHomeSoftware Heritage

Raise an error when serializing a naive datetime.
ClosedPublic

Authored by vlorentz on Apr 29 2020, 1:05 PM.

Details

Summary

There's no reason to allow this, and it's a potential source of
invalid data.

Depends on: D3082, D3083 (else, swh-storage tests will crash)

Diff Detail

Repository
rDCORE Foundations and core functionalities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D3084 (id=10978)

Rebasing onto 5cd847a35d...

Current branch diff-target is up to date.
Changes applied before test
commit 833c35bcdae059a26270311777a3aa9923d46abd
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Wed Apr 29 12:44:59 2020 +0200

    Raise an error when serializing a naive datetime.
    
    There's no reason to allow this, and it's a potential source of
    invalid data.

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

anlambert added a subscriber: anlambert.

Looks good to me

This revision is now accepted and ready to land.Apr 29 2020, 5:22 PM
This revision was landed with ongoing or failed builds.May 7 2020, 11:22 AM
This revision was automatically updated to reflect the committed changes.

Build is green

Patch application report for D3084 (id=11129)

Rebasing onto 0d9ce48d9d...

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

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