Closed mbutrovich closed 6 years ago
LGTM.
@pervazea What is the status of getting the newer Mac onto the Jenkins infrastructure?
We provided the Mac to Chad, so it could be installed in the PDL lab. I haven't heard an update on this... will check on it later today, to see how it is progressing.
From: Prashanth Menon notifications@github.com Sent: Tuesday, June 12, 2018 10:48 AM To: cmu-db/peloton Cc: Pervaze Akhtar; Mention Subject: Re: [cmu-db/peloton] Fix warning for unused lambda capture on Clang 9.1 (#1400)
LGTM.
@pervazeahttps://github.com/pervazea What is the status of getting the newer Mac onto the Jenkins infrastructure?
- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cmu-db/peloton/pull/1400#issuecomment-396617120, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AhDfwGQZFv1zze9LM6UqwTVc40TLAbJrks5t79TXgaJpZM4UjEy2.
How important is it to isolate the build process on this platform? The problem is that, unlike the current Docker setup for Linux builds, PRs from random users would get merged and built directly on the system.
The approach I'd like to take is to run macOS inside VirtualBox on this system and install the Jenkins agent on the VM there but this will take me a bit of time. Is that OK?
@crd477 It's probably best to play it safe and run the builds in a sandbox.
But doesn't mean if we can run OSX in a VM then we don't need Mac hardware in the future?
No. Section 2.B.iii of The software license agreement for macOS states:
(iii) to install, use and run up to two (2) additional copies or instances of the Apple Software within virtual operating system environments on each Mac Computer you own or control that is already running the Apple Software, for purposes of: (a) software development; (b) testing during software development; (c) using macOS Server; or (d) personal, non-commercial use.
So running several macOS VMs in a hypervisor under macOS running natively on the Apple hardware appears to be permitted. That's the way I propose to set it up.
[EDIT: it only occurs to me clearly now that I reread what I just posted that I should get official guidance from computing services, which I will do right now...]
OK, computing services says:
Software Licensing just updated the ticket and said they're okay with the virtual machines. They believe that your description of your intent is within the terms of the license agreement. Thanks!
I'm intend to make some progress on this today.
The macOS VM has been added to the pool. Does the build stage that I specified for macOS look OK to you? If so, I'll generate a PR. This systems seems to perform OK with a single VM and 4 Jenkins executors. If you want to get more macOS capacity, I think it will be necessary to buy some more minis and reuse the scripts I have in place currently.
Yes, macOS build stage looks ok.
Pervaze
From: Chad Dougherty notifications@github.com Sent: Friday, July 6, 2018 9:15:13 AM To: cmu-db/peloton Cc: Pervaze Akhtar; Mention Subject: Re: [cmu-db/peloton] Fix warning for unused lambda capture on Clang 9.1 (#1400)
The macOS VM has been added to the pool. Does the build stage that I specified for macOShttp://jenkins.db.cs.cmu.edu:8080/blue/organizations/jenkins/crd%2Fpeloton-crd/detail/mac-jenkins/10/pipeline/16 look OK to you? If so, I'll generate a PR. This systems seems to perform OK with a single VM and 4 Jenkins executors. If you want to get more macOS capacity, I think it will be necessary to buy some more minis and reuse the scripts I have in place currently.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cmu-db/peloton/pull/1400#issuecomment-403030776, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AhDfwGn9G_0Tqf5cFy3y9-mzTYDpUNLCks5uD2LhgaJpZM4UjEy2.
PR submitted in #1454
Resolves the following warning introduced by #1371 on Clang 9.1:
../git/peloton/test/codegen/csv_scan_translator_test.cpp:39:30: error: lambda capture 'quote' is not required to be captured for this use [-Werror,-Wunused-lambda-capture] const auto quote_string = [quote](std::string s) {
I couldn't reproduce the warning on GCC 7.3, which makes me wonder if it's spurious on Clang's part. However, I ran make check with this proposed change under Clang 9.1 and GCC 7.3 and everything looked good. Hopefully it's the same story on Jenkins and Travis.