Opened 5 years ago
Closed 5 years ago
#4485 closed task (fixed)
regression test to test postgis_extensions_upgrade
Reported by: | robe | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.5.4 |
Component: | build | Version: | master |
Keywords: | Cc: |
Description
like, call postgis_extensions_upgrade() and then check that there's no UNPACKAGED! substring in the output of postgis_full_version()
Change History (14)
comment:1 by , 5 years ago
comment:3 by , 5 years ago
So,we do have the testing support in place, now it is just a matter of adding a test for postgis_full_version() NOT complaining about anything. It could be the UNPACKAGED!
line or any needs upgrade
label. We don't want to see any of that.
comment:5 by , 5 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I'm reopening because I didn't actually add any call to postgis_extensions_upgrade()
with my commit. That's still all to do.
What run_test.pl does at the moment is directly call ALTER EXTENSION ... UPDATE
when called with --extension
and --upgrade-path
. What we would want is something to have it perform the upgrade using the postgis_extensions_upgrade()
instead. What would a good switch name for that feature be ? Maybe --upgrade-with-function
? Note that postgis_extensions_upgrade()
does not support a target version, so cannot always honour a user-provided --upgrade-path
. Also, it is not always available, and when is available we end up running the _old_ version of it, not the new version.
comment:8 by , 5 years ago
Manually testing the new support (I've added :auto
and :auto!
as upgrade-path targets) it looks like postgis_extensions_upgrade() leaves raster unpackaged when coming from 2.5.0 or older, should we change this to re-package when needed ? The documentation says we do repackage, which is NOT happening (unless you call it twice).
comment:9 by , 5 years ago
Manually testing the new support (I've added :auto
and :auto!
as upgrade-path targets) it looks like postgis_extensions_upgrade() leaves raster unpackaged when coming from 2.5.0 or older, should we change this to re-package when needed ? The documentation says we do repackage, which is NOT happening (unless you call it twice).
comment:12 by , 5 years ago
Summary: | regrssion test to test postgis_extensions_upgrade → regression test to test postgis_extensions_upgrade |
---|
For the record: with latest commit the good bots are expected to fail, due to make installcheck
now failing for the bug reported as #4486 (which will be fixed once we have a record of failure)
comment:13 by , 5 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Reopening because it doesn't look like extension upgrade is really being tested by GitLab, for some reason (there may be issues with how RUNTESTFLAGS is passed around): https://gitlab.com/postgis/postgis/-/jobs/277720711
comment:14 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Fixed with r17756 -- see https://gitlab.com/postgis/postgis/-/jobs/277847404 We should probably also do installcheck from Travis and Drone ...
In 17731: