Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Conversation

mbutrovich
Copy link
Contributor

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.

@mbutrovich mbutrovich requested review from pmenon and pervazea and removed request for pervazea June 11, 2018 17:16
@pmenon
Copy link
Member

pmenon commented Jun 12, 2018

LGTM.

@pervazea What is the status of getting the newer Mac onto the Jenkins infrastructure?

@pervazea
Copy link
Contributor

pervazea commented Jun 12, 2018 via email

@crd477
Copy link

crd477 commented Jun 12, 2018

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?

@apavlo
Copy link
Member

apavlo commented Jun 12, 2018

@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?

@crd477
Copy link

crd477 commented Jun 13, 2018

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...]

@crd477
Copy link

crd477 commented Jun 14, 2018

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.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.004%) to 76.975% when pulling 482338b on mbutrovich:clang_fix into 1244002 on cmu-db:master.

@tli2 tli2 merged commit 7d85d5f into cmu-db:master Jun 14, 2018
@mbutrovich mbutrovich deleted the clang_fix branch June 15, 2018 14:50
@crd477
Copy link

crd477 commented Jul 6, 2018

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.

@pervazea
Copy link
Contributor

pervazea commented Jul 6, 2018 via email

@crd477
Copy link

crd477 commented Jul 6, 2018

PR submitted in #1454

mtunique pushed a commit to mtunique/peloton that referenced this pull request Apr 16, 2019
Fix warning for unused lambda capture on Clang 9.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants