BCDA-APS / apstools

various tools for use with Bluesky at the APS
https://bcda-aps.github.io/apstools/latest/
Other
16 stars 9 forks source link

CI unit test workflow fails #756

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

Fails during Install & cache databroker catalogs step:

gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_LZ4=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -Ic-blosc/blosc -Ic-blosc/internal-complibs/zstd-1.4.8 -Ic-blosc/internal-complibs/zlib-1.2.8 -Ic-blosc/internal-complibs/lz4-1.9.3 -Ic-blosc/internal-complibs/zstd-1.4.8/decompress -Ic-blosc/internal-complibs/zstd-1.4.8/deprecated -Ic-blosc/internal-complibs/zstd-1.4.8/legacy -Ic-blosc/internal-complibs/zstd-1.4.8/dll -Ic-blosc/internal-complibs/zstd-1.4.8/dictBuilder -Ic-blosc/internal-complibs/zstd-1.4.8/compress -Ic-blosc/internal-complibs/zstd-1.4.8/common -Ic-blosc/internal-complibs/zstd-1.4.8/dll/example -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c numcodecs/blosc.c -o build/temp.linux-x86_64-cpython-311/numcodecs/blosc.o -msse2 -mavx2 -DSHUFFLE_SSE2_ENABLED -DSHUFFLE_AVX2_ENABLED
numcodecs/blosc.c:308:12: fatal error: longintrepr.h: No such file or directory
  308 |   #include "longintrepr.h"
      |            ^~~~~~~~~~~~~~~
compilation terminated.
[numcodecs] command '/usr/bin/gcc' failed with exit code 1
prjemian commented 2 years ago

Seems related to:

prjemian commented 2 years ago

As the logs show, this uses a released version of Python 3.11.0

2022-11-10T17:19:35.4132979Z Successfully setup CPython (3.11.0)
2022-11-10T17:19:35.4283133Z ##[group]Run python -m pip install --upgrade pip
prjemian commented 2 years ago

Can workflow change the Python version for this step? https://github.com/BCDA-APS/apstools/blob/51d9f04ffcf846e235fe1fa7afef6e1757f9a553/.github/workflows/unit_tests.yml#L45

Latest release is v4.3.0, try upgrade to actions/setup-python@v4 first.

prjemian commented 2 years ago

If still a problem, then:

- uses: actions/setup-python@v4
  with:
    python-version: '3.10' 
prjemian commented 2 years ago

Any fix for the problem (when using Python 3.11) must come from upstream.

prjemian commented 2 years ago

With the workflow action change (19bbdc7), no error with that workflow step.

prjemian commented 2 years ago

Add Py3.11 to CI testing and supported versions.

Note no CI testing with Python 3.11 (3.11.0 is now released). https://github.com/BCDA-APS/apstools/blob/51d9f04ffcf846e235fe1fa7afef6e1757f9a553/.github/workflows/unit_tests.yml#L81 https://github.com/BCDA-APS/apstools/blob/51d9f04ffcf846e235fe1fa7afef6e1757f9a553/setup.cfg#L62-L64