Skip to content

CI unit test workflow fails #756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
prjemian opened this issue Nov 10, 2022 · 7 comments · Fixed by #757
Closed

CI unit test workflow fails #756

prjemian opened this issue Nov 10, 2022 · 7 comments · Fixed by #757
Assignees
Milestone

Comments

@prjemian
Copy link
Contributor

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 prjemian added this to the 1.6.9 milestone Nov 10, 2022
@prjemian prjemian self-assigned this Nov 10, 2022
@prjemian
Copy link
Contributor Author

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
Copy link
Contributor Author

Can workflow change the Python version for this step?

- uses: actions/setup-python@v2

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

@prjemian
Copy link
Contributor Author

prjemian commented Nov 10, 2022

If still a problem, then:

- uses: actions/setup-python@v4
  with:
    python-version: '3.10' 

@prjemian
Copy link
Contributor Author

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

@prjemian
Copy link
Contributor Author

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

@prjemian
Copy link
Contributor Author

Add Py3.11 to CI testing and supported versions.

Note no CI testing with Python 3.11 (3.11.0 is now released).

python-version: ['3.8', '3.9', '3.10']

apstools/setup.cfg

Lines 62 to 64 in 51d9f04

Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant