#5250 closed defect (fixed)

Cirrus CI Freebsd failing on raster script builds

Reported by: robe Owned by: strk
Priority: blocker Milestone: PostGIS 3.4.0
Component: QA/buildbots Version: master
Keywords: Cc:

Description

https://github.com/postgis/postgis/runs/8541669143

grep -v '^#' rtpostgis_legacy.sql.tmp | \
/usr/local/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis_raster-3'g;s'@extschema@\.''g" > rtpostgis_legacy.sql
rm rtpostgis_legacy.sql.tmp
rm rtpostgis.sql.tmp
rm rtpostgis_drop.sql.tmp
/usr/local/bin/perl ../../utils/create_upgrade.pl rtpostgis.sql > rtpostgis_upgrade.sql.in
/usr/local/bin/perl ../../utils/create_undef.pl rtpostgis.sql 130 > uninstall_rtpostgis.sql
rm rtpostgis_legacy.sql.tmp
rm: rtpostgis_legacy.sql.tmp: No such file or directory
gmake[3]: *** [Makefile:130: rtpostgis_legacy.sql] Error 1
gmake[3]: *** Deleting file 'rtpostgis_legacy.sql'
gmake[3]: *** Waiting for unfinished jobs....
rm rtpostgis.sql.tmp
rm: rtpostgis.sql.tmp: No such file or directory
rm rtpostgis.sql.tmp
gmake[3]: *** [Makefile:130: rtpostgis.sql] Error 1
gmake[3]: *** Deleting file 'rtpostgis.sql'
gmake[3]: Leaving directory '/tmp/cirrus-ci-build/raster/rt_pg'
gmake[2]: *** [Makefile:88: ../../raster/rt_pg/uninstall_rtpostgis.sql] Error 2
gmake[2]: *** Deleting file '../../raster/rt_pg/uninstall_rtpostgis.sql'
gmake[2]: *** Waiting for unfinished jobs....
rm: rtpostgis.sql.tmp: No such file or directory
gmake[3]: *** [Makefile:130: rtpostgis.sql] Error 1
gmake[3]: Leaving directory '/tmp/cirrus-ci-build/raster/rt_pg'
gmake[2]: *** [Makefile:88: ../../raster/rt_pg/rtpostgis_drop.sql] Error 2
gmake[2]: *** Deleting file '../../raster/rt_pg/rtpostgis_drop.sql'
Unable to open input SQL file rtpostgis.sql
gmake[3]: *** [Makefile:152: rtpostgis_upgrade.sql.in] Error 2
gmake[3]: *** Deleting file 'rtpostgis_upgrade.sql.in'
Couldn't open file: rtpostgis.sql
gmake[3]: *** [Makefile:160: uninstall_rtpostgis.sql] Error 2
gmake[3]: Leaving directory '/tmp/cirrus-ci-build/raster/rt_pg'
gmake[2]: *** [Makefile:88: ../../raster/rt_pg/rtpostgis_upgrade_cleanup.sql] Error 2
gmake[2]: Leaving directory '/tmp/cirrus-ci-build/extensions/postgis'
gmake[1]: *** [Makefile:29: all] Error 1
gmake[1]: Leaving directory '/tmp/cirrus-ci-build/extensions'
gmake: *** [GNUmakefile:24: all] Error 1

Change History (4)

comment:1 by strk, 19 months ago

Can I have shell access on a FreeBSD machine ?

comment:2 by strk, 19 months ago

Temptative patch (although hiding a probable issue with multi-process make under the carpet): https://github.com/postgis/postgis/pull/709

comment:3 by strk, 19 months ago

I cannot reproduce the problem with an interactive shell in https://cirrus-ci.com/task/4695039455526912

comment:4 by Sandro Santilli <strk@…>, 19 months ago

Resolution: fixed
Status: assignedclosed

In 03cc059/git:

Do not assume .tmp file exists upon removal

CirrusCI is failing not finding the file.
Chances are multi-process make is building the same
file multiple times and thus not finding it upon removing it

A better fix would be useful (serializing those commands?)

Should fix #5250

Note: See TracTickets for help on using tickets.