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

Add build_aarch64 workflow for push #7014

Merged
merged 4 commits into from
Apr 1, 2021

Conversation

theopolis
Copy link
Member

This adds a new GitHub Actions workflow called build_aarch64. This workflow does not run on Pull Requests because non-collaborators do not have access to the secrets context, meaning the builds will always fail. This is acceptable for now since we are looking to go from not knowing if aarch64 is working to knowing if it works on master. This gives us confidence when tagging new releases that aarch64 tests are passing, and we will have testable packages.

In the future we want to have tests run on PRs and https://github.com/osquery/infrastructure/pull/7/files is exploring the solution.

This uses the approach here: https://github.com/machulav/ec2-github-runner but using my fork theopolis/ec2-github-runner@main for a little extra safety from breaking changes (and because I added aarch64 support but will PR this soon).

@theopolis theopolis added CI/CD Anything about the Continuous Integration or Continuous Deployment tool used by the repository aarch64 labels Mar 20, 2021
@theopolis theopolis requested a review from a team as a code owner March 20, 2021 15:28
Copy link
Member

@directionless directionless left a comment

Choose a reason for hiding this comment

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

Unlike the normal build, this is not running in a container. (the other builds use osquery/builder18.04) Is that intentional?

.github/workflows/build_aarch64.yml Outdated Show resolved Hide resolved
.github/workflows/build_aarch64.yml Show resolved Hide resolved
.github/workflows/build_aarch64.yml Outdated Show resolved Hide resolved
@theopolis
Copy link
Member Author

Not intentional, perhaps an oversight. Let me test and see what happens if I add the container logic to the workflow.

@theopolis
Copy link
Member Author

Here are the proposed changes from the initial review: https://github.com/theopolis/osquery-ci-test/pull/5/files it looks like the container usage/addition is working as expected. This makes sense because I prepared the AMI with Docker support according to the documentation.

@directionless
Copy link
Member

I think I'm happy enough with the code in https://github.com/theopolis/osquery-ci-test/pull/5 want to pull that here and then merge?

@theopolis
Copy link
Member Author

Heads up, once this is approved, I'll add the needed secrets before merging.

Copy link
Member

@directionless directionless left a comment

Choose a reason for hiding this comment

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

Let's try!

@theopolis
Copy link
Member Author

... I wonder, what if?

@theopolis
Copy link
Member Author

Testing this in the build_aarch64 branch before merging into master. https://github.com/osquery/osquery/tree/build_aarch64

@theopolis theopolis merged commit a8069d2 into osquery:master Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aarch64 build CI/CD Anything about the Continuous Integration or Continuous Deployment tool used by the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants