-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
enable darwin for the node installation in the CI #51705
Conversation
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea, but It would be better to have the opinion of @brianseeders and @spalger here
Pinging @elastic/kibana-operations (Team:Operations) |
@elasticmachine merge upstream |
I just want to say, I don't recommend running the CI script on your local machine, they're designed to run on single-purpose machines and don't take care to protect user data or be a "good citizen". Please be careful, continue at your own risk :) |
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it's always a good option to have the CI been reproducible in local, otherwise developers won't be able to check if a failure on CI is real or it's something on their own.
If the build does something weird with data, then it must bee encapsulated at CI level, not on build scripts.
src/dev/ci_setup/setup_env.sh
Outdated
@@ -71,7 +73,7 @@ if [[ "$OS" == "win" ]]; then | |||
nodeUrl="https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/dist/v$nodeVersion/node-v$nodeVersion-win-x64.zip" | |||
else | |||
nodeBin="$nodeDir/bin" | |||
nodeUrl="https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/dist/v$nodeVersion/node-v$nodeVersion-linux-x64.tar.gz" | |||
nodeUrl="https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/dist/v$nodeVersion/node-v$nodeVersion-${OS}-x64.tar.gz" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the URL will also work with Windows, mind moving the nodeUrl
outside the condition block so we only have a single place where nodeUrl
is set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See 003a361
I also want to echo what Spencer mentioned - these setup scripts are for CI and should not be run on your machine. If you want to reproduce what CI is running, you can run the underlying commands on the repository which will build/test. |
I agree to disagree, :) |
💚 Build SucceededTo update your PR or re-run it, just comment with: |
You're welcome to run whatever script you'd like on your computer, I just don't recommend it because we don't write them with the intention of being runnable on your own machine. So, run at your own risk I guess. |
@elasticmachine merge upstream |
Are there any concerns regarding this PR? Otherwise, when could it be merged? Thanks |
good to go - i'll merge once we go green |
@v1v do you need this back further than 7.7? dropping the 7.6 labels would help the inevitable feature freeze discussion. alternatively we could wait for 7.6.1 |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* enable darwin for the node installation in the CI * refactor: avoid hardcode strings and customise based on the OS flavour * fix classifier Co-authored-by: Elastic Machine <[email protected]>
I pushed this to 7.7 for now. let me know if we need it further |
No, I don't think we need any backport for previous versions. Thanks so much |
* enable darwin for the node installation in the CI * refactor: avoid hardcode strings and customise based on the OS flavour * fix classifier Co-authored-by: Elastic Machine <[email protected]>
Summary
Enable darwin OS support when using the scripts for the CI. Therefore, anyone could reproduce the same steps locally independently of the OS.
$ system_profiler SPSoftwareDataType Software: System Software Overview: System Version: macOS 10.14.3 (18D42) Kernel Version: Darwin 18.2.0 Boot Volume: Macintosh HD Boot Mode: Normal Computer Name: v1v-box User Name: Victor Edgar Martinez Rubio (vmartinez) Secure Virtual Memory: Enabled System Integrity Protection: Enabled Time since boot: 3:20 $ sw_vers ProductName: Mac OS X ProductVersion: 10.14.3 BuildVersion: 18D42 $ uname -a Darwin Victors-MacBook-Pro.local 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64 $ uname Darwin
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.This was checked for cross-browser compatibility, including a check against IE11Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsUnit or functional tests were updated or added to match the most common scenariosThis was checked for keyboard-only and screenreader accessibilityFor maintainers