Page MenuHomeSoftware Heritage

158: Make schema and migration converge so the migration works
ClosedPublic

Authored by ardumont on Jul 11 2020, 8:53 AM.

Details

Summary

In the end, the order of the revision entry matters whether we select * or not.
So the select must match the order defined in the revision_entry type type.
Otherwise, a mismatch type error occurs [1]

[1] psql:sql/upgrades/158.sql:74: ERROR: return type mismatch in function
declared to return revision_entry

Note: it's been running on staging storage to unstuck the failed workers

Test Plan

tox

Diff Detail

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

Event Timeline

sql/upgrades/158.sql
14

The enclosing parenthesis did not work either.

Build is green

Patch application report for D3504 (id=12388)

Rebasing onto 9219a23606...

Current branch diff-target is up to date.
Changes applied before test
commit 1a8924be8f7da912cc4bcd6ce2f749b9454dcbad
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Sat Jul 11 08:42:17 2020 +0200

    158: Make schema and migration converge so the migration works
    
    In the end, the order of the revision entry matters whether we select * or not.
    So the select must match the order defined in the revision_entry type type.
    Otherwise, a mismatch type error occurs [1]
    
    [1] psql:sql/upgrades/158.sql:74: ERROR: return type mismatch in function
    declared to return revision_entry

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

This revision is now accepted and ready to land.Jul 15 2020, 10:48 AM