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

ci: Utilize native arm64 linux runners #784

Merged
merged 20 commits into from
Jan 27, 2025
Merged

ci: Utilize native arm64 linux runners #784

merged 20 commits into from
Jan 27, 2025

Conversation

MaxymVlasov
Copy link
Collaborator

Description of your changes

This should speed up docker image build process during tests and wipe out one of dependencies

This should speed up docker image build process during tests and wipe out one of dependencies
@MaxymVlasov
Copy link
Collaborator Author

Here we go again... Looks like I need to fork and add arm support to https://github.com/plexsystems/container-structure-test-action/

Binary already exist, also here docker image. Whould be nice to use it
https://github.com/GoogleContainerTools/container-structure-test/releases

Or, maybe I can use it directly, without action

@MaxymVlasov MaxymVlasov changed the title ci: Utilize naitve arm64 linux runners ci: Utilize native arm64 linux runners Jan 25, 2025
@@ -16,9 +16,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up QEMU
# yamllint disable-line rule:line-length
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Double-checked - it works without it

Copy link

codecov bot commented Jan 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.38%. Comparing base (980a129) to head (7f4a6cd).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #784   +/-   ##
=======================================
  Coverage   96.38%   96.38%           
=======================================
  Files          10       10           
  Lines         249      249           
  Branches        7        7           
=======================================
  Hits          240      240           
  Misses          9        9           
Flag Coverage Δ
CI-GHA 96.38% <ø> (ø)
MyPy 91.05% <ø> (ø)
OS-Linux 96.38% <ø> (ø)
OS-Windows 100.00% <ø> (ø)
OS-macOS 100.00% <ø> (ø)
Py-3.10.11 100.00% <ø> (ø)
Py-3.10.16 100.00% <ø> (ø)
Py-3.11.11 100.00% <ø> (ø)
Py-3.11.9 100.00% <ø> (ø)
Py-3.12.8 100.00% <ø> (ø)
Py-3.13.1 96.38% <ø> (ø)
Py-3.9.13 100.00% <ø> (ø)
Py-3.9.21 100.00% <ø> (ø)
VM-macos-13 100.00% <ø> (ø)
VM-macos-14 100.00% <ø> (ø)
VM-ubuntu-24.04 100.00% <ø> (ø)
VM-ubuntu-latest 91.05% <ø> (ø)
VM-windows-2025 100.00% <ø> (ø)
pytest 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MaxymVlasov MaxymVlasov marked this pull request as ready for review January 26, 2025 02:01

- name: Dive - check image for waste files
if: steps.changed-files-specific.outputs.any_changed == 'true'
# yamllint disable-line rule:line-length
uses: MaxymVlasov/dive-action@379af3fc636888ada5899c997e8b52db6ad45023 # v1.0.1
uses: MaxymVlasov/dive-action@b6a02b38f0f309e8817199658eab090d4f0f93ce # v1.1.0
Copy link
Collaborator Author

@MaxymVlasov MaxymVlasov Jan 26, 2025

Choose a reason for hiding this comment

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

Lol, I spent whole day on it 🤪
3 releases, 1 for external collaborator PRs, 1 to polish and make-up-to date f*ng node_modules/ GHA on TypeScript, and 1 to actually add ARM support (hopefully there is a fork of dive itself which added docker ARM builds)

- name: Run structure tests
if: steps.changed-files-specific.outputs.any_changed == 'true'
# yamllint disable-line rule:line-length
uses: plexsystems/container-structure-test-action@c0a028aa96e8e82ae35be556040340cbb3e280ca # v0.3.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It also has issues with MacOS, which blocks #636, so I replaced it with binary, as I don't want to write my own GHA from scratch for this

@MaxymVlasov MaxymVlasov reopened this Jan 26, 2025
@MaxymVlasov MaxymVlasov reopened this Jan 26, 2025
@MaxymVlasov MaxymVlasov merged commit c1154d6 into master Jan 27, 2025
130 checks passed
@MaxymVlasov MaxymVlasov deleted the ci/arm branch January 27, 2025 14:31
@antonbabenko
Copy link
Owner

This PR is included in version 1.97.1 🎉

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.

3 participants