Skip to content
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

Warnings in CI tests from setuptools_scm #42

Open
juanep97 opened this issue Nov 29, 2023 · 9 comments
Open

Warnings in CI tests from setuptools_scm #42

juanep97 opened this issue Nov 29, 2023 · 9 comments
Assignees

Comments

@juanep97
Copy link
Owner

juanep97 commented Nov 29, 2023

This warning is repeated in the github CI Actions many times during tests

 /opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/setuptools_scm/git.py:163: UserWarning: "/home/runner/work/iop4/iop4" is shallow and may cause errors
  warnings.warn(f'"{wd.path}" is shallow and may cause errors')
/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/setuptools_scm/git.py:163: UserWarning: "/home/runner/work/iop4/iop4" is shallow and may cause errors
  warnings.warn(f'"{wd.path}" is shallow and may cause errors')
/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/setuptools_scm/git.py:163: UserWarning: "/home/runner/work/iop4/iop4" is shallow and may cause errors
  warnings.warn(f'"{wd.path}" is shallow and may cause errors')

https://github.com/juanep97/iop4/actions/runs/7034575267/job/19142940434?pr=39

@morcuended
Copy link
Collaborator

I'll have a look

@morcuended
Copy link
Collaborator

Perhaps it is related to the fact that there was no tag yet.

@morcuended morcuended changed the title Warnings in CI tests Warnings in CI tests from setuptools_scm Nov 29, 2023
@juanep97
Copy link
Owner Author

Looks like it was the case, it does not appear in the last runs. Closing.

@morcuended
Copy link
Collaborator

I was about to comment. I still see the warnings there. Let's keep this open to not forget about it.

@morcuended morcuended reopened this Nov 29, 2023
@juanep97
Copy link
Owner Author

juanep97 commented Nov 29, 2023

Can you point to the warnings? I don't see the warnings, at least in the last run: https://github.com/juanep97/iop4/actions/runs/7035783243/job/19146947713

@morcuended
Copy link
Collaborator

morcuended commented Nov 29, 2023

Open the Run tests (with -o log_cli...) drop-down section and search for shallow in the logs. First appearance in L639. It might be also related to a problem with versioning.

The warning already appears in the build package step.

@morcuended
Copy link
Collaborator

Found another error warning ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any

@morcuended
Copy link
Collaborator

And another

/tmp/build-env-38jhk5t9/lib/python3.10/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'iop4lib._dev_version' is absent from the `packages` configuration.

@morcuended morcuended self-assigned this Nov 29, 2023
@morcuended
Copy link
Collaborator

morcuended commented Nov 30, 2023

So the only warning still present is:

ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any

leaving this open until fixed.

It is a nuisance error message. (More info: pypa/setuptools_scm#997)

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

No branches or pull requests

2 participants