----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/60628/#review187357 -----------------------------------------------------------
Summary and description need to follow Mesos standards (past-tense, full-sentence summary, with description in the body). (This description in particular needs to be cleaned up.) src/launcher/CMakeLists.txt Lines 25-28 (original), 25-26 (patched) <https://reviews.apache.org/r/60628/#comment264317> Yay! src/launcher/fetcher.cpp Lines 99 (patched) <https://reviews.apache.org/r/60628/#comment264318> This needs to be `#endif // __WINDOWS__`. src/launcher/fetcher.cpp Lines 192-211 (original), 198-208 (patched) <https://reviews.apache.org/r/60628/#comment264320> What's the point of this entire function now, since we have `os::copyfile`? It appears redundant. The only difference is the return value of `destinationPath`, but does the user even need this? src/launcher/fetcher.cpp Lines 196-197 (original), 202-203 (patched) <https://reviews.apache.org/r/60628/#comment264319> I think our style is a line between the assignment statement and the expression. src/slave/containerizer/fetcher.cpp Line 210 (original), 209 (patched) <https://reviews.apache.org/r/60628/#comment264321> Let's just replace this with `!path::absolute(path)`. No need for the intermediate `isRelativePath` variable. It's just a boolean. "if not absolute path" reads just fine. src/slave/containerizer/fetcher.cpp Line 228 (original), 226 (patched) <https://reviews.apache.org/r/60628/#comment264322> Ah ha! The one place in the code base that we should actually need to normalize back from `/` to `\` for Windows: `Fetcher::uriToLocalPath`. Is logic like `uriToLocalPath` anywhere else, too? If so, it's a great chance to refactor into your new `uri::` namespace. src/tests/CMakeLists.txt Lines 270-280 (original), 270-280 (patched) <https://reviews.apache.org/r/60628/#comment264323> This is fine for now, MESOS-8035 covers fixing these dependencies (i.e. `mesos-agent` should depend on `mesos-fetcher` instead of `mesos-tests` doing it). src/tests/fetcher_tests.cpp Line 132 (original), 132 (patched) <https://reviews.apache.org/r/60628/#comment264324> Your Review Board name is `coffler` :P src/tests/fetcher_tests.cpp Line 157 (original), 158 (patched) <https://reviews.apache.org/r/60628/#comment264325> (Same comment as in prior reviews, ignoring this for the rest of the review.) src/tests/fetcher_tests.cpp Lines 244-245 (patched) <https://reviews.apache.org/r/60628/#comment264326> Let's make sure we mention the issue. src/tests/fetcher_tests.cpp Line 469 (original), 473 (patched) <https://reviews.apache.org/r/60628/#comment264327> What was changed that required this to change? src/tests/fetcher_tests.cpp Line 515 (original), 519 (patched) <https://reviews.apache.org/r/60628/#comment264328> Ditto. src/tests/fetcher_tests.cpp Lines 586 (patched) <https://reviews.apache.org/r/60628/#comment264329> Mention the issue (or resolve this now as "executable" permissions don't map to Windows, at all). src/tests/fetcher_tests.cpp Lines 627 (patched) <https://reviews.apache.org/r/60628/#comment264330> Ditto. src/tests/fetcher_tests.cpp Lines 670 (patched) <https://reviews.apache.org/r/60628/#comment264331> Ditto. src/tests/fetcher_tests.cpp Lines 731-732 (patched) <https://reviews.apache.org/r/60628/#comment264332> Open an issue for this and mention it here. src/tests/fetcher_tests.cpp Lines 782-783 (patched) <https://reviews.apache.org/r/60628/#comment264333> Ditto. src/tests/fetcher_tests.cpp Lines 806-807 (original) <https://reviews.apache.org/r/60628/#comment264334> What happened here? src/tests/fetcher_tests.cpp Lines 919-924 (patched) <https://reviews.apache.org/r/60628/#comment264337> PowerShell* (casing) "so it succeeds, whereas the zip utility errors." src/tests/fetcher_tests.cpp Lines 928 (patched) <https://reviews.apache.org/r/60628/#comment264335> Style. src/tests/fetcher_tests.cpp Line 913 (original), 935-940 (patched) <https://reviews.apache.org/r/60628/#comment264339> Can we explain this a little further? I'm guessetimated that `verifyMetrics(x, y)` here is testing error codes, maybe? Except above it says `2` instead of `1`. What's going on here? src/tests/fetcher_tests.cpp Lines 941 (patched) <https://reviews.apache.org/r/60628/#comment264338> Style again. - Andrew Schwartzmeyer On Oct. 5, 2017, 9:04 p.m., Jeff Coffler wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/60628/ > ----------------------------------------------------------- > > (Updated Oct. 5, 2017, 9:04 p.m.) > > > Review request for mesos, Andrew Schwartzmeyer, John Kordich, Joseph Wu, and > Li Li. > > > Bugs: MESOS-6705 > https://issues.apache.org/jira/browse/MESOS-6705 > > > Repository: mesos > > > Description > ------- > > Document that some FetcherTest tests won't work on Windows platform. > Tests for tar, gzip, and such won't be working on Windows for > the time being. Thoughts are to provide this capability to the > Fetcher in a cross-platform manner via a programmatic code library > rather than Linux-specific command line tools (tar, gzip, etc). > > In the short term, zip and unzip will work since PowerShell can > support that natively. > > Fix FetcherTest.AbsoluteCustomSubdirectoryFails on Windows platform. > Test FetcherTest.InvalidUser can't work on Windows for now. > Fix test FetcherTest.NonExistingFile on Windows platform. > Fix test FetcherTest.AbsolutePath on Windows platform. > Fix test FetcherTest.RelativeFilePath on Windows platform. > Fix test FetcherTest.OSNetUriTest on Windows platform. > Fix test FetcherTest.OSNetUriSpaceTest on Windows platform. > Fix test FetcherTest.FileLocalhostURI on Windows platform. > Fix test FetcherTest.Unzip_ExtractFile on Windows platform. > Fix test FetcherTest.Unzip_ExtractInvalidFile on Windows platform. > Fix test Unzip_ExtractFileWithDuplicatedEntries on Windows platform. > Fix test FetcherTest.UseCustomOutputFile on Windows platform. > > > Diffs > ----- > > src/launcher/CMakeLists.txt c7a83d476efe13d65fa529e7676b6488eb48f44b > src/launcher/fetcher.cpp 5a9e93adbf2e4f0b8ff64a69e62fea5f6a0b8f2d > src/slave/containerizer/fetcher.cpp > ba5b0979aa427c5b3dbacf39661d6027da13e0d6 > src/tests/CMakeLists.txt def233d13f627f58362fdc61ac3e9c104d65fe7e > src/tests/fetcher_tests.cpp df9d2d9586a6457004506c4e2a972ccfc912c7c5 > > > Diff: https://reviews.apache.org/r/60628/diff/2/ > > > Testing > ------- > > See upstream. > > > Thanks, > > Jeff Coffler > >
