Skip to content

snadampal/arm64-python-wheel-tester

 
 

Repository files navigation

Arm64 python wheels tester

This is a simple project to run wheels in a docker environment on 4k and 64k page-size systems to detect possible incompatibilities in upstream wheels on Arm64 systems. It uses github actions and self-hosted runners to guarantee the system configurations we need.

This project is can also be repurposed for other interpreted languages that contain native bindings, such as Ruby Gems.

Using the CDK to generate self-hosted Graviton2 runners for testing Wheels!

This projects uses the AWS CDK to stand up some infra-structure in AWS for testing python wheels built for Arm64 on Graviton2 processors. The CDK scripts will allow one to stand up an m6g.large runner and attempts to install with the necessary dependencies for github runners. If the installation fails, just follow the steps from github to manually install the runners.

To use:

$ python3 -m venv .env
$ source .env/bin/activate
$ pip install -r requirements.txt

# Create a file with your AWS credentials and github tokens called .aws_creds
$ source ./.aws_creds
$ npm install -g aws-cdk
$ cdk synth --profile=<profile>
$ cdk deploy

Then go to:

To learn about the runners and how to use/trouble-shoot them.

Useful commands

  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation

About

Test python wheels import correctly on Graviton2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.0%
  • Shell 3.3%
  • Batchfile 1.7%