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

Correct CI #15

Closed
2 tasks done
szszszsz opened this issue Jun 18, 2020 · 9 comments · Fixed by #75
Closed
2 tasks done

Correct CI #15

szszszsz opened this issue Jun 18, 2020 · 9 comments · Fixed by #75
Milestone

Comments

@szszszsz
Copy link
Member

szszszsz commented Jun 18, 2020

At the moment CI fails with:

venv/bin/flit install --symlink
make: venv/bin/flit: Command not found
Makefile:60: recipe for target 'update-venv' failed
make: *** [update-venv] Error 127
The command "make init" failed and exited with 2 during .
@szszszsz szszszsz added this to the 0.4 milestone Jun 19, 2020
@szszszsz
Copy link
Member Author

Mostly fixed with f46bd38

szszszsz added a commit that referenced this issue Jun 22, 2020
@szszszsz
Copy link
Member Author

I got it broken again unfortunately, due to trying to call the nitropy after flit installation.
It works on Python 3.8 though: https://travis-ci.org/github/Nitrokey/nitro-python/jobs/700871763

@szszszsz
Copy link
Member Author

Build fails due to problem with extending some Bash features apparently, see:

python -m pip install pynitrokey== 2>&1 | grep -oE ", ([^,]+), ([^,]+)\)$" | cut -d "," -f 2 | xargs > LAST_VERSION
python -m pip install pynitrokey==`cat LAST_VERSION | xargs`
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement pynitrokey==
ERROR: No matching distribution found for pynitrokey==

@szszszsz
Copy link
Member Author

@daringer @robin-nitrokey Could you take a look into this?

@szszszsz
Copy link
Member Author

@daringer @robin-nitrokey @LennardBoediger
Just a friendly reminder. Having a broken CI kind of misses the point :-)

@robin-nitrokey
Copy link
Member

It is hard for me to fix this properly because I’m not sure what it is trying to achieve. Apparently, it is trying to install the latest version, but couldn’t we use ${VERSION} instead of grepping the pip output? I can prepare a PR that does that but I’m not sure if that’s the intention.

robin-nitrokey added a commit to robin-nitrokey/pynitrokey that referenced this issue Apr 30, 2021
Previosuly, the CI task system-pip-install-last-version tried to
determine the latest package version by grepping the output of pip.
This did not work properly and caused build failures.  With this patch,
we use the $VERSION variable instead (which is read from the
pynitrokey/VERSION) file.  Fixes Nitrokey#15.
@robin-nitrokey
Copy link
Member

Also, as these tests only check the installation via pip/PyPi and not the actual code in the repository, wouldn’t it make sense to use scheduled builds instead of running them for every push?

@szszszsz
Copy link
Member Author

@daringer Could you review the mentioned #75 and see if that is according to your design? LGTM.
@robin-nitrokey Yes, scheduled builds would be ideal solution for this, as what we wanted here is to check, when the package will stop installing due to the changed external dependencies (especially important on not locked versions).

@szszszsz
Copy link
Member Author

This one got closed without explanation, but I believe the reason was we have moved to Gitlab CI, thus this one got outdated. Still the hook was connected to Circle CI until now. Removing it.

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.

2 participants