[PROJ] Failing action in my repo: macos_build

Even Rouault even.rouault at spatialys.com
Sat Nov 19 05:19:49 PST 2022


Javier,

The Mac CI workflow does work in my fork. There's nothing special to do.

Given the difference in logs, I suspect there's an issue with the 
following snippet of travis/install.sh where the TRAVIS_OS_NAME == osx 
check fail for you, for a mysterious reason

if [ "$TRAVIS_OS_NAME" == "osx" ]; then
     # on macOS /tmp is a symblink to /private/tmp only for the shared build
     INST=/private/tmp
else
     INST=/tmp
fi

which makes

In the raw log of your job 
https://pipelines.actions.githubusercontent.com/serviceHosts/6b542973-dcef-4e06-8169-ff9422a73985/_apis/pipelines/1/runs/282/signedlogcontent/2?urlExpires=2022-11-19T12%3A54%3A07.7428761Z&urlSigningMethod=HMACV1&urlSignature=5oeDXu%2B5VGns2RgjAs%2Fwh%2BRlljoKD5Kfckam7x7Y9fQ%3D

I do see

2022-11-19T11:50:33.1529890Z   TRAVIS_OS_NAME: osx


UPDATE: while comparing more closely the logs of a successful build with 
yours, I see that successful builds have right at their beginning

2022-11-19T11:42:28.3777650Z Image: macos-11
2022-11-19T11:42:28.3777950Z Version: 20221028.1

whereas yours as

2022-11-19T11:47:36.9113510Z Image: macos-12
2022-11-19T11:47:36.9113920Z Version: 20221027.1


.github/workflows/mac.yml has "runs-on: macos-latest", so I suspect 
github is progressively deploying a new version of their macos-latest 
image to be now macos-12, and that it hasn't still reached OSGeo/PROJ, 
but this might be just a matter of time.

So travis/install.sh should be adapted to work with macos-12

You could perhaps try changing line 184 to be

grep "Downloading from https://cdn.proj.org into 
/tmp/proj_static_install_from_dist_renamed/subdir/share/proj" static.out 
|| grep "Downloading from https://cdn.proj.org into 
$INST/proj_static_install_from_dist_renamed/subdir/share/proj" static.out

to test for both /tmp and /private/tmp

The comment at line 176 should be adjusted to something like "# on macOS 
11 /tmp is resolved by PROJ as a symlink to /private/tmp only for the 
shared build. on macOS 12 for both static and shared builds"

Even

Le 19/11/2022 à 13:19, Javier Jimenez Shaw a écrit :
> Hi
>
> I have rebased my master into origin master, and there is a consistent 
> failing action: macos_build
> (all the other jobs are fine)
>
> for instance here: 
> https://github.com/jjimenezshaw/PROJ/actions/runs/3503183916/jobs/5868045291#step:6:3001
>
> The last lines of the log are:
>
> Check that we can retrieve the resource directory in a relative way 
> after renaming the installation prefix
> Downloading from https://cdn.proj.org into 
> /private/tmp/proj_shared_install_from_dist_renamed/subdir/share/proj
> Downloading from https://cdn.proj.org into 
> /private/tmp/proj_shared_install_from_dist_renamed/subdir/share/proj
> Downloading from https://cdn.proj.org into 
> /private/tmp/proj_static_install_from_dist_renamed/subdir/share/proj
> Error: Process completed with exit code 1.
>
> Compared with a similar job in origin master, the same part of the log 
> says
>
> Check that we can retrieve the resource directory in a relative way 
> after renaming the installation prefix
> Downloading from https://cdn.proj.org into 
> /private/tmp/proj_shared_install_from_dist_renamed/subdir/share/proj
> Downloading from https://cdn.proj.org into 
> /private/tmp/proj_shared_install_from_dist_renamed/subdir/share/proj
> Downloading from https://cdn.proj.org into 
> /tmp/proj_static_install_from_dist_renamed/subdir/share/proj
> Downloading from https://cdn.proj.org into 
> /tmp/proj_static_install_from_dist_renamed/subdir/share/proj
> Skipping test_autotools.sh test for osx
> Running post-install tests with CMake (shared)
> Testing C app
> ...
>
> Should I change anything in my repo actions to have it green?
>
> Thanks
>
> .___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
> Entre dos pensamientos racionales
> hay infinitos pensamientos irracionales.
>
>
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20221119/9ca83948/attachment.htm>


More information about the PROJ mailing list