Add packages to support deadsnakes Python install in jobs #67
Labels
Clear labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Something isn't working
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Further information is requested
This will not be worked on
An issue or PR manually copied from GitHub.
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/hosting#67
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When trying to get our CI jobs to run on ARM Linux I found that the stock python action uses a binary repository that has no builds for aarch64/Linux. The recommended workaround is to use a different action that instead pulls from a Debian package repository containing Python packages for various versions and architectures, called deadsnakes.
While in theory that would solve the problem, it turned out to create yet more problems. This PR addresses those by adding the
sudocommand to the runner container, and a package to supply the command used to add a new apt repo. In addition, because the Python package install in turn triggers the installation of the tzdata package that ends up looking for user input (and the use of sudo thwarts the usual workaround), this PR sets the container time zone. This has the side affect of skipping the user input step.You might ask why we should install random stuff in our runner container like this, for a specific github action? Normally that wouldn't be appropriate, however since the deadsnakes action appears to be fairly widely used, my assumption is that the Ubuntu runners at GitHub must have these various pieces already installed. On that basis (parity with GitHub runner environment) I think it makes sense.