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

Release docker image for arm64. #1889

Merged
merged 1 commit into from
Oct 10, 2021
Merged

Release docker image for arm64. #1889

merged 1 commit into from
Oct 10, 2021

Conversation

odidev
Copy link
Contributor

@odidev odidev commented Sep 21, 2021

The following file has been modified:
Modified .github/workflows/tests.yml file to build and push the image for both amd64 and arm64 platforms.

Signed-off-by: odidev odidev@puresoftware.com

@cyberw
Copy link
Collaborator

cyberw commented Sep 21, 2021

Great to get a arm64 build, just two things:

  • the PR would make it push to master even when not in right repo on master branch, which is wrong
  • needs to change the step docker_tagged, so that git-tagged versions (images tagged latest and by git tag) are also built for ARM.

@cyberw
Copy link
Collaborator

cyberw commented Sep 21, 2021

Also, in order to release on arm64 I think we need to run at least some basic tests on that platform as well.

@cyberw
Copy link
Collaborator

cyberw commented Sep 27, 2021

@odidev ?

- name: build and publish image
id: docker_build
uses: docker/build-push-action@v2
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'locustio' }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for having this if statement for the push-setting rather than the whole step is that we can see any errors before merging. Is it necessary to move it?

Signed-off-by: odidev <odidev@puresoftware.com>
@odidev
Copy link
Contributor Author

odidev commented Sep 28, 2021

@cyberw , I have added changes as per your suggestions and pushed the commit and am now checking into adding tests for arm64.

@cyberw
Copy link
Collaborator

cyberw commented Oct 5, 2021

@odidev Did you find a way to run the tests on arm? I can merge this without the tests, but it would be nice to have them...

@odidev
Copy link
Contributor Author

odidev commented Oct 6, 2021

@odidev Did you find a way to run the tests on arm? I can merge this without the tests, but it would be nice to have them...

@cyberw,

I have tried to run the test cases on arm64 but the test cases are failing for arm64.

Commit link: odidev@eb24c0f

GitHub action link: https://github.com/odidev/locust/runs/3814915067?check_suite_focus=true

Could you suggest some pointers on these issues and how can I get details of failed cases?
If changes looks good to you, I will amend these changes as well.

@cyberw
Copy link
Collaborator

cyberw commented Oct 6, 2021

Not sure what is causing that error.. maybe wrong flask version somehow?

I guess there is still no proper support for arm on GH so you cant just add it to the matrix build?

@cyberw
Copy link
Collaborator

cyberw commented Oct 10, 2021

I want to try adding 3.10 support, so merging this first makes sense, even without tests...

@cyberw cyberw merged commit 04faa43 into locustio:master Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants