Page MenuHomeSoftware Heritage

requirements-server: Pin psycopg2 to < 2.9
ClosedPublic

Authored by anlambert on Jun 17 2021, 7:13 PM.

Details

Summary

psycopg2 2.9 release broke compatibility with django 2.2 release
and deposit tests are failing since.

Related discussions on github:

That error was missed by psycopg2 maintainers as they are testing
against django >= 3.1 where the issue does not appear.

So pin psycopg2 version to avoid test failures.

Diff Detail

Repository
rDDEP Push deposit
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 22085
Build 34357: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 34356: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D5889 (id=21097)

Rebasing onto 1c0d3f8916...

Current branch diff-target is up to date.
Changes applied before test
commit 51d5c9998c57d39dac9916cdfb86acdbe9e28bd8
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Thu Jun 17 19:07:25 2021 +0200

    requirements-server: Pin psycopg2 to < 2.9
    
    psycopg2 2.9 release broke compatibility with django 2.2 release
    and deposit tests are failing since.
    
    That error was missed by psycopg2 maintainers as they are testing
    against django >= 3.1 where the issue does not appear.
    
    So pin psycopg2 version to avoid test failures.

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

This revision is now accepted and ready to land.Jun 18 2021, 9:45 AM