Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2A9BB200BF6 for ; Tue, 10 Jan 2017 19:01:25 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2924E160B3D; Tue, 10 Jan 2017 18:01:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 73597160B2C for ; Tue, 10 Jan 2017 19:01:24 +0100 (CET) Received: (qmail 22450 invoked by uid 500); 10 Jan 2017 18:01:23 -0000 Mailing-List: contact reviews-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.apache.org Delivered-To: mailing list reviews@aurora.apache.org Received: (qmail 22420 invoked by uid 99); 10 Jan 2017 18:01:23 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2017 18:01:23 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 2363D312725; Tue, 10 Jan 2017 18:01:22 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8195189499156056384==" MIME-Version: 1.0 Subject: Re: Review Request 55347: Ensure destination exists when mounting files into a filesystem image. From: Joshua Cohen To: Santhosh Kumar Shanmugham , Stephan Erb Cc: Joshua Cohen , Aurora ReviewBot , Aurora Date: Tue, 10 Jan 2017 18:01:22 -0000 Message-ID: <20170110180122.2898.95244@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Joshua Cohen X-ReviewGroup: Aurora X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/55347/ X-Sender: Joshua Cohen References: <20170109192829.2898.8293@reviews.apache.org> In-Reply-To: <20170109192829.2898.8293@reviews.apache.org> Reply-To: Joshua Cohen X-ReviewRequest-Repository: aurora archived-at: Tue, 10 Jan 2017 18:01:25 -0000 --===============8195189499156056384== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Jan. 9, 2017, 7:28 p.m., Stephan Erb wrote: > > src/main/python/apache/aurora/executor/common/sandbox.py, lines 285-290 > > > > > > This looks suspicious. Creating a directory and then checking it does not exist. Fixed. > On Jan. 9, 2017, 7:28 p.m., Stephan Erb wrote: > > src/test/python/apache/aurora/executor/common/test_sandbox.py, lines 404-410 > > > > > > With that amount of mocking the test is both hard to understand and brittle to changes of the production code. > > > > Have you considered extending this https://github.com/apache/aurora/blob/master/examples/vagrant/upstart/aurora-scheduler.conf#L43 list instead? Added to startup config and added e2e test as well. - Joshua ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55347/#review160933 ----------------------------------------------------------- On Jan. 10, 2017, 6 p.m., Joshua Cohen wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55347/ > ----------------------------------------------------------- > > (Updated Jan. 10, 2017, 6 p.m.) > > > Review request for Aurora, Santhosh Kumar Shanmugham and Stephan Erb. > > > Repository: aurora > > > Description > ------- > > When testing filesystem isolation internally, we ran into an issue where mounting a regular file into the task filesystem failed with exit code 32 since the mount destination did not exist. To account for this, we'll touch an empty file in the taskfs. > > > Diffs > ----- > > examples/vagrant/upstart/aurora-scheduler.conf e68a801017ae02e0ed581129e12a645ccc1e35d4 > src/main/python/apache/aurora/executor/common/sandbox.py 9d6e73c4221302c56596ef3591bdeab41c81535e > src/test/python/apache/aurora/executor/common/test_sandbox.py a441d2a60e413395b74b62445846e3871784e729 > src/test/sh/org/apache/aurora/e2e/http/http_example.aurora 438eb0f03128d21b3201d0a843adebe09422c75e > src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh 46309371a33d26bdd467b5fa131634354be2a978 > > Diff: https://reviews.apache.org/r/55347/diff/ > > > Testing > ------- > > ./build-support/jenkins/build.sh > > > Thanks, > > Joshua Cohen > > --===============8195189499156056384==--