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 Apple silicon macs #2383

Merged
merged 3 commits into from
Aug 7, 2020
Merged

Add Apple silicon macs #2383

merged 3 commits into from
Aug 7, 2020

Conversation

AshCripps
Copy link
Member

This pr will add the DTKs kindly donated to us by macstadium and any edits needed to playbooks.

refs: nodejs/TSC#886

@nodejs/build-infra can the ips be added to the test jenkins firewall please.

@AshCripps
Copy link
Member Author

AshCripps commented Jul 14, 2020

Manual intervention needed so far:

Brew needs a workround patch untill upstream is patched: Homebrew/brew#7857
Because brew offically support 11.0 yet, im installing the packages manually because ansible isnt like the unsupported messages

@AshCripps
Copy link
Member Author

Failures:

installing tap2junit:

The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
  File "/tmp/ansible_pip_payload_FZYqiv/ansible_pip_payload.zip/ansible/module_utils/basic.py", line 2561, in run_command
    cmd = subprocess.Popen(args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception

fatal: [test-macstadium-macos11.0-arm64-2]: FAILED! => {
    "changed": false,
    "cmd": "/usr/local/bin/pip3 install tap2junit",
    "invocation": {
        "module_args": {
            "chdir": null,
            "editable": false,
            "executable": "/usr/local/bin/pip3",
            "extra_args": null,
            "name": [
                "tap2junit"
            ],
            "requirements": null,
            "state": "present",
            "umask": null,
            "use_mirrors": true,
            "version": null,
            "virtualenv": null,
            "virtualenv_command": "virtualenv",
            "virtualenv_python": null,
            "virtualenv_site_packages": false
        }
    },
    "msg": "[Errno 2] No such file or directory",
    "rc": 2
}

@richardlau
Copy link
Member

Looks like for some reason pip3 is being used with python 2.

@AshCripps
Copy link
Member Author

oo good spot, for some reason these brand new macs released this year still come with python 2 as the system python

@richardlau is there a way to set which python ansible uses on the target machine?

@richardlau
Copy link
Member

oo good spot, for some reason these brand new macs released this year still come with python 2 as the system python

@richardlau is there a way to set which python ansible uses on the target machine?

Yes, see e.g.

ansible_python_interpreter = /QOpenSys/pkgs/bin/python2

@richardlau
Copy link
Member

oo good spot, for some reason these brand new macs released this year still come with python 2 as the system python

That's certainly odd -- I'm sure we've had lots of reports over in node-gyp where the system python on newer macOS is Python 3.

@AshCripps
Copy link
Member Author

from updating the python used Its now pointing out that this is the wrong link:

- name: install tap2junit
pip:
name: tap2junit
state: present
executable: /usr/local/bin/pip3

On the DTK pip is under /usr/bin/pip3 but I think they will break the playbooks for new macs so might need to make a seperate mac arm file.

in other news I get a clean run through of the playbooks now

@AshCripps
Copy link
Member Author

so test-macstadium-macos11.0-arm64-2 is all setup and I got a build of nodejs/node#34238 complete. saw some V8 failures and a fair few test failures which I think are mentioned in the PR

@AshCripps
Copy link
Member Author

Second machine setup, have discovered the ./configure script isnt working on these machines - it only detects python2 not python3.
https://github.com/nodejs/node/blob/3b130327fa96cda42fed581df7c763acbf706a13/configure#L8-L12

command -v python3.8 returns nothing wheres command -v python2.7 returns the path for system python.
command -v python3 does return the correct path however

@mhdawson
Copy link
Member

Sorry, missed the request to add IP's looking at it now.

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

@mhdawson
Copy link
Member

Should be active now

@AshCripps
Copy link
Member Author

@mhdawson
Copy link
Member

@AshCripps seems like the changes will affect all the Macs not just the new ones, can you confirm you've already validated they will all work ok on the old machines as well?

@AshCripps
Copy link
Member Author

@mhdawson haven't tested yet will do that now. I tried to spawn a fresh instance in orka to save affecting one of the test machines but do to my current internet issues I can't load the VPN so will have to use one of the test machines.

@AshCripps
Copy link
Member Author

Rebased and pushed to fix merge conflicts

@AshCripps AshCripps merged commit 06c83e7 into nodejs:master Aug 7, 2020
@AshCripps AshCripps deleted the add-arm64-mac branch August 7, 2020 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.

None yet

3 participants