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

Test failures in Github Actions for Python 3.10 #7100

Closed
tripleee opened this issue Jun 16, 2022 · 3 comments · Fixed by #7102
Closed

Test failures in Github Actions for Python 3.10 #7100

tripleee opened this issue Jun 16, 2022 · 3 comments · Fixed by #7102

Comments

@tripleee
Copy link
Member

What problem has occurred? What issues has it caused?

Many (but not all) test runs in the recent past has failed for 3.10 because the Python installed in .../SmokeDetector/Smokedetector/env/bin/python is a symlink to a version which does not exist.

In some more detail, test runs in my personal fork with ls -l interspersed before the failure reveal that .../env/bin/python3 (which python symlinks to) is a symlink to /opt/hostedtoolcache/Python/3.10.4/x64/bin/python3 which however does not exist; /opt/hostedtoolcache/Python contains a directory for 3.10.5 (sic) but not 3.10.4.

What would you like to happen/not happen?

Ideally, I'm hoping this is a problem Github can solve without our involvement, but I'm creating a bug report for visibility and possible workarounds in the meantime.

@tripleee
Copy link
Member Author

Actually I'm guessing the bug is in how we use cache-runner to restore env from possibly a different Python minor version.

@makyen
Copy link
Contributor

makyen commented Jun 16, 2022

The cache was cleared after GitHub's update from 3.10.4 to 3.10.5. In fact, that was the first thing I tried in order to resolve the issue. In order to do so, I changed the base storage/restore key, such that it wouldn't find the old caches. Given that we can't manually clear the caches for Github Actions, that's the primary way to invalidate the cache. In the past, I added a version number to the string, so that it would be easier to do so.

Hmmm.... if the cache contains old data, which it appears it might, then the problem could be that GitHub is jumping back and forth as to which version of Python is being used (e.g. some of their servers are using the old version and some the new version). I'll check for that.

@makyen
Copy link
Contributor

makyen commented Jun 16, 2022

Yep. That's what's happening. Some of the tests are being run with 3.10.4 and some with 3.10.5.

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