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

RQA-2830 fix mac dmg to be x64 binary and use x64 bundled python to pip install #15624

Merged
merged 4 commits into from
Jul 11, 2024

Conversation

y3rsh
Copy link
Collaborator

@y3rsh y3rsh commented Jul 11, 2024

Replaces #15618 with PR against branch name ending in app-build-internal to trigger a build

Overview

Test Plan

  • build locally and see that it works
  • watch CI and install the built package
  • validate that once the package dmg is x64 that analysis works (python has packages with the right arch)

Review requests

  • This the right approach?

Risk assessment

High because our .dmg currently cannot analyze protocols 2.0.0-alpha.0 internal release build.

Copy link
Member

@shlokamin shlokamin left a comment

Choose a reason for hiding this comment

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

lgtm, validated this works locally. after the build generated by CI clears let's make sure that works too before merging

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Just installed the CI build, all archs are as expected (aka x64) and analysis works!

@y3rsh
Copy link
Collaborator Author

y3rsh commented Jul 11, 2024

@y3rsh y3rsh merged commit 83f4bd3 into edge Jul 11, 2024
59 of 61 checks passed
@y3rsh y3rsh deleted the RQA-2830-mac-python-package-app-build-internal branch July 11, 2024 19:32
y3rsh added a commit that referenced this pull request Jul 22, 2024
…ip install (#15624)

## Replaces #15618 with PR against branch name ending in
`app-build-internal` to trigger a build

## Overview

- <https://opentrons.atlassian.net/browse/RQA-2830>
- `macos-11` GitHub runner was intel and now we use macos-latest that is
arm
[doc](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories)
- specify --x64 argument to electron-builder
- ~~per
[doc](https://github.com/actions/setup-python?tab=readme-ov-file#supported-architectures)
x64 python should be installed so the pip install will be the right
platform. I'm not confident in this.~~
- see comment in #15618
- we need to use the python we download on mac to do the pip install so
the installed packages match the platform correctly

## Test Plan

- [x] build locally and see that it works
- [x] watch CI and install the built package
- [x] validate that once the package dmg is x64 that analysis works
(python has packages with the right arch)

# Review requests

- This the right approach?

# Risk assessment

High because our .dmg currently cannot analyze protocols 2.0.0-alpha.0
internal release build.
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