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

Build and test on arm64 runner #4802

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

harryzcy
Copy link

@harryzcy harryzcy commented Feb 11, 2025

Closes #3542

@kitbellew
Copy link
Collaborator

@aairey should we merge this, despite multiple failures?

@aairey
Copy link

aairey commented Feb 15, 2025

@aairey should we merge this, despite multiple failures?

I don't think so.

Someone who understands these test failures should take a look.

@kitbellew
Copy link
Collaborator

@aairey should we merge this, despite multiple failures?

I don't think so.

Someone who understands these test failures should take a look.

in that case, what was the purpose of approving this pr?

Copy link

@aairey aairey left a comment

Choose a reason for hiding this comment

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

Fix test failures.

Copy link
Collaborator

@kitbellew kitbellew left a comment

Choose a reason for hiding this comment

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

separately, since you seem to understand about docker so much, could you help make sense of the claim that docker images no longer work, please?

see context: #4761 (comment)

@@ -21,6 +21,7 @@ jobs:
os:
- windows-latest
- ubuntu-latest
- ubuntu-24.04-arm
Copy link
Collaborator

Choose a reason for hiding this comment

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

i am not sure about this... we don't run on macos either.

Copy link
Collaborator

Choose a reason for hiding this comment

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

hmm... now i wonder why tests have failed for this platform. any ideas?

@@ -54,7 +55,7 @@ jobs:
fail-fast: false
matrix:
java: [ '11' ]
os: [ windows-latest, ubuntu-latest ]
os: [ windows-latest, ubuntu-latest, ubuntu-24.04-arm ]
Copy link
Collaborator

Choose a reason for hiding this comment

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

we definitely don't need this, the whole point was to make sure windows and non-windows are handled correctly.

@@ -61,20 +61,17 @@ jobs:
dockerize:
needs: [ scala-native ]
if: ${{ github.event_name == 'release' == success() }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

not ubuntu-latest anymore, it's a fixed version now.

also, any way to re-use the same deploy matrix (with os and name fields) from above?

@@ -83,12 +80,59 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Copy link
Collaborator

Choose a reason for hiding this comment

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

what does this do?

push: true
tags: ${{ steps.meta.outputs.tags }}
outputs: type=image,"name=scalameta/scalafmt",push-by-digest=true,name-canonical=true
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we not need tags here?

- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.platform == 'linux/arm64' && 'arm64' || 'amd64' }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this test keeps getting repeated. i'd go with the same, or similar, multi-field matrix strategy (see comment above, about deploy matrix).

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.

multi-architecture docker image
3 participants