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

Split test cases by architecture #305

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

koji-1009
Copy link
Contributor

@koji-1009 koji-1009 commented May 2, 2024

Since macos-latest has been updated to arm64 machines, I splited test_print_output between x64 and arm64. And flutter sdk for arm64 has been provided since v3.0.0, so checked only versions after v3.0.0.

ref #303 #304

@penkzhou
Copy link

penkzhou commented Jun 7, 2024

@subosito hello, will you approve this change?

@bartekpacia
Copy link
Collaborator

Hey @koji-1009, would you resolve merge conflicts please?

@koji-1009
Copy link
Contributor Author

koji-1009 commented Dec 3, 2024

@bartekpacia
No merge conflicts appear to have occurred. This may have been resolved by 6db0ba8.

@koji-1009
Copy link
Contributor Author

Sorry. Is there anything wrong with this PR?

@koji-1009 koji-1009 force-pushed the test/update_print_output branch from 6db0ba8 to 3dba341 Compare December 19, 2024 12:10
test_print_output:
runs-on: macos-13
test_print_output_x64:
runs-on: 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.

Does the runs-on affect if the tests will be successful or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, flutter for Linux is only available for x64.

https://docs.flutter.dev/release/archive

Also, the GitHub Actions ubuntu is currently only available for x64. However, in the future it will be possible to run it for arm64 as well.

https://github.blog/news-insights/product-news/arm64-on-github-actions-powering-faster-more-efficient-build-systems/

Therefore, if ubuntu-latest switches to arm64, this test will fail. (Probably, we cannot get the old sdk that does not support arm64.) This setting would be as expected, since it can detect that ubuntu-latest is switching to arm64 and can reveal what features flutter-action can support.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, thanks a ton for sharing this valuable context!



test_print_output_arm64:
runs-on: macos-latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does the runs-on affect if the tests will be successful or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, arm64 is only available for macos.
Also, if macos-latest ever changes from arm64, you will notice the change in this setting. (I would like to believe that this is not the case.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

gotcha - thank you!

Copy link
Collaborator

@bartekpacia bartekpacia left a comment

Choose a reason for hiding this comment

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

Hey, thanks for resolving the conflicts!

LGTM

@bartekpacia bartekpacia merged commit ce3cf21 into subosito:main Dec 20, 2024
81 checks passed
@koji-1009 koji-1009 deleted the test/update_print_output branch December 20, 2024 09:45
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