You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Shiv Deepak <sh...@hackerrank.com> on 2018/03/19 21:52:58 UTC

Fwd: Build Failure

Hello,

I am trying to build Mesos 1.5.0 from source on Ubuntu 16.04.

I tried on Docker, VM, and EC2. Three test cases are failing no matter what.

Here is the list.

*[  PASSED  ] 1904 tests.*
*[  FAILED  ] 3 tests, listed below:*
*[  FAILED  ] FetcherTest.Unzip_ExtractFile*
*[  FAILED  ] FetcherTest.Unzip_ExtractInvalidFile*
*[  FAILED  ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries*

Here is the test output:

*[ RUN      ] FetcherTest.Unzip_ExtractFile*
*../../src/tests/fetcher_tests.cpp:870: Failure*
*(fetch).failure(): Failed to fetch all URIs for container
'709de28f-5f71-439d-a032-072df865090f': exited with status 1*
*[  FAILED  ] FetcherTest.Unzip_ExtractFile (297 ms)*
*[ RUN      ] FetcherTest.Unzip_ExtractInvalidFile*
*../../src/tests/fetcher_tests.cpp:936: Failure*
*Value of: os::exists(extractedFile)*
*  Actual: false*
*Expected: true*
*[  FAILED  ] FetcherTest.Unzip_ExtractInvalidFile (201 ms)*
*[ RUN      ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries*
*../../src/tests/fetcher_tests.cpp:997: Failure*
*(fetch).failure(): Failed to fetch all URIs for container
'dd749015-3d16-4926-b7f3-e1c96211a461': exited with status 1*
*[  FAILED  ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries (201 ms)*

Is this expected or do I need to fix something? Can someone please point me
in the right direction?

Thank you

-- 

<https://www.hackerrank.com/>

Shiv Deepak▌
Engineering Manager

HackerRank

Blog <https://blog.hackerrank.com/> / Twitter
<https://twitter.com/hackerrank> / Linkedin
<https://www.linkedin.com/company/hackerrank/> / Facebook
<https://www.facebook.com/hackerrank/>

Re: Build Failure

Posted by Andrew Schwartzmeyer <an...@schwartzmeyer.com>.
 It's sad that we fail at runtime like this when certain utilities
aren't installed. We're currently working to replace the extraction
logic with libarchive instead, so we'll no longer implicitly require
unzip/gunzip/tar/7z etc. I think it will probably make it into 1.6.0.

On 03/19/2018 4:38 pm, Shiv Deepak wrote: 

> Thanks. I installed unzip. That worked. 
> 
> On Mon, Mar 19, 2018 at 3:48 PM, Tomek Janiszewski <ja...@gmail.com> wrote:
> Do you have unzip installed? Can you try unzipping file like it's done in the test? 
> 
> pon., 19.03.2018, 22:53 użytkownik Shiv Deepak <sh...@hackerrank.com> napisał: 
> Hello,
> 
> I am trying to build Mesos 1.5.0 from source on Ubuntu 16.04. 
> 
> I tried on Docker, VM, and EC2. Three test cases are failing no matter what. 
> 
> Here is the list. 
> 
> [ PASSED ] 1904 TESTS. 
> [ FAILED ] 3 TESTS, LISTED BELOW: 
> [ FAILED ] FETCHERTEST.UNZIP_EXTRACTFILE 
> [ FAILED ] FETCHERTEST.UNZIP_EXTRACTINVALIDFILE 
> [ FAILED ] FETCHERTEST.UNZIP_EXTRACTFILEWITHDUPLICATEDENTRIES 
> 
> Here is the test output: 
> 
> [ RUN ] FETCHERTEST.UNZIP_EXTRACTFILE 
> ../../SRC/TESTS/FETCHER_TESTS.CPP:870: FAILURE 
> (FETCH).FAILURE(): FAILED TO FETCH ALL URIS FOR CONTAINER '709DE28F-5F71-439D-A032-072DF865090F': EXITED WITH STATUS 1 
> [ FAILED ] FETCHERTEST.UNZIP_EXTRACTFILE (297 MS) 
> [ RUN ] FETCHERTEST.UNZIP_EXTRACTINVALIDFILE 
> ../../SRC/TESTS/FETCHER_TESTS.CPP:936: FAILURE 
> VALUE OF: OS::EXISTS(EXTRACTEDFILE) 
> ACTUAL: FALSE 
> EXPECTED: TRUE 
> [ FAILED ] FETCHERTEST.UNZIP_EXTRACTINVALIDFILE (201 MS) 
> [ RUN ] FETCHERTEST.UNZIP_EXTRACTFILEWITHDUPLICATEDENTRIES 
> ../../SRC/TESTS/FETCHER_TESTS.CPP:997: FAILURE 
> (FETCH).FAILURE(): FAILED TO FETCH ALL URIS FOR CONTAINER 'DD749015-3D16-4926-B7F3-E1C96211A461': EXITED WITH STATUS 1 
> [ FAILED ] FETCHERTEST.UNZIP_EXTRACTFILEWITHDUPLICATEDENTRIES (201 MS) 
> 
> Is this expected or do I need to fix something? Can someone please point me in the right direction? 
> 
> Thank you 
> 
> -- 
> 
> [1] 
> 
> Shiv Deepak▌
> Engineering Manager 
> 
> HackerRank 
> 
> Blog [2] / Twitter [3] / Linkedin [4] / Facebook [5]

 -- 

 [1] 

Shiv Deepak▌
Engineering Manager 

HackerRank 

Blog [2] / Twitter [3] / Linkedin [4] / Facebook [5] 

 

Links:
------
[1] https://www.hackerrank.com/
[2] https://blog.hackerrank.com/
[3] https://twitter.com/hackerrank
[4] https://www.linkedin.com/company/hackerrank/
[5] https://www.facebook.com/hackerrank/

Re: Build Failure

Posted by James Peach <jo...@gmail.com>.

> On Mar 19, 2018, at 4:38 PM, Shiv Deepak <sh...@hackerrank.com> wrote:
> 
> Thanks. I installed unzip. That worked.

FWIW the test suite was fixed for 1.6 in 0da7b6cc37786df94465ae98948fd7be669a843e.

> 
> On Mon, Mar 19, 2018 at 3:48 PM, Tomek Janiszewski <ja...@gmail.com> wrote:
> Do you have unzip installed? Can you try unzipping file like it's done in the test? 
> 
> 
> pon., 19.03.2018, 22:53 użytkownik Shiv Deepak <sh...@hackerrank.com> napisał:
> Hello,
> 
> I am trying to build Mesos 1.5.0 from source on Ubuntu 16.04.
> 
> I tried on Docker, VM, and EC2. Three test cases are failing no matter what.
> 
> Here is the list.
> 
> [  PASSED  ] 1904 tests.
> [  FAILED  ] 3 tests, listed below:
> [  FAILED  ] FetcherTest.Unzip_ExtractFile
> [  FAILED  ] FetcherTest.Unzip_ExtractInvalidFile
> [  FAILED  ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries
> 
> Here is the test output:
> 
> [ RUN      ] FetcherTest.Unzip_ExtractFile
> ../../src/tests/fetcher_tests.cpp:870: Failure
> (fetch).failure(): Failed to fetch all URIs for container '709de28f-5f71-439d-a032-072df865090f': exited with status 1
> [  FAILED  ] FetcherTest.Unzip_ExtractFile (297 ms)
> [ RUN      ] FetcherTest.Unzip_ExtractInvalidFile
> ../../src/tests/fetcher_tests.cpp:936: Failure
> Value of: os::exists(extractedFile)
>   Actual: false
> Expected: true
> [  FAILED  ] FetcherTest.Unzip_ExtractInvalidFile (201 ms)
> [ RUN      ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries
> ../../src/tests/fetcher_tests.cpp:997: Failure
> (fetch).failure(): Failed to fetch all URIs for container 'dd749015-3d16-4926-b7f3-e1c96211a461': exited with status 1
> [  FAILED  ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries (201 ms)
> 
> Is this expected or do I need to fix something? Can someone please point me in the right direction?
> 
> Thank you
> 
> -- 
> 
> Shiv Deepak▌
> Engineering Manager
> HackerRank
> 
> Blog / Twitter / Linkedin / Facebook
> 
> 
> 
> 
> -- 
> 
> Shiv Deepak▌
> Engineering Manager
> HackerRank
> 
> Blog / Twitter / Linkedin / Facebook


Re: Build Failure

Posted by Shiv Deepak <sh...@hackerrank.com>.
Thanks. I installed unzip. That worked.

On Mon, Mar 19, 2018 at 3:48 PM, Tomek Janiszewski <ja...@gmail.com>
wrote:

> Do you have unzip installed? Can you try unzipping file like it's done in
> the test?
>
>
> pon., 19.03.2018, 22:53 użytkownik Shiv Deepak <sh...@hackerrank.com>
> napisał:
>
>> Hello,
>>
>> I am trying to build Mesos 1.5.0 from source on Ubuntu 16.04.
>>
>> I tried on Docker, VM, and EC2. Three test cases are failing no matter
>> what.
>>
>> Here is the list.
>>
>> *[  PASSED  ] 1904 tests.*
>> *[  FAILED  ] 3 tests, listed below:*
>> *[  FAILED  ] FetcherTest.Unzip_ExtractFile*
>> *[  FAILED  ] FetcherTest.Unzip_ExtractInvalidFile*
>> *[  FAILED  ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries*
>>
>> Here is the test output:
>>
>> *[ RUN      ] FetcherTest.Unzip_ExtractFile*
>> *../../src/tests/fetcher_tests.cpp:870: Failure*
>> *(fetch).failure(): Failed to fetch all URIs for container
>> '709de28f-5f71-439d-a032-072df865090f': exited with status 1*
>> *[  FAILED  ] FetcherTest.Unzip_ExtractFile (297 ms)*
>> *[ RUN      ] FetcherTest.Unzip_ExtractInvalidFile*
>> *../../src/tests/fetcher_tests.cpp:936: Failure*
>> *Value of: os::exists(extractedFile)*
>> *  Actual: false*
>> *Expected: true*
>> *[  FAILED  ] FetcherTest.Unzip_ExtractInvalidFile (201 ms)*
>> *[ RUN      ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries*
>> *../../src/tests/fetcher_tests.cpp:997: Failure*
>> *(fetch).failure(): Failed to fetch all URIs for container
>> 'dd749015-3d16-4926-b7f3-e1c96211a461': exited with status 1*
>> *[  FAILED  ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries (201 ms)*
>>
>> Is this expected or do I need to fix something? Can someone please point
>> me in the right direction?
>>
>> Thank you
>>
>> --
>>
>> <https://www.hackerrank.com/>
>>
>> Shiv Deepak▌
>> Engineering Manager
>>
>> HackerRank
>>
>> Blog <https://blog.hackerrank.com/> / Twitter
>> <https://twitter.com/hackerrank> / Linkedin
>> <https://www.linkedin.com/company/hackerrank/> / Facebook
>> <https://www.facebook.com/hackerrank/>
>>
>>


-- 

<https://www.hackerrank.com/>

Shiv Deepak▌
Engineering Manager

HackerRank

Blog <https://blog.hackerrank.com/> / Twitter
<https://twitter.com/hackerrank> / Linkedin
<https://www.linkedin.com/company/hackerrank/> / Facebook
<https://www.facebook.com/hackerrank/>

Re: Build Failure

Posted by Tomek Janiszewski <ja...@gmail.com>.
Do you have unzip installed? Can you try unzipping file like it's done in
the test?

pon., 19.03.2018, 22:53 użytkownik Shiv Deepak <sh...@hackerrank.com>
napisał:

> Hello,
>
> I am trying to build Mesos 1.5.0 from source on Ubuntu 16.04.
>
> I tried on Docker, VM, and EC2. Three test cases are failing no matter
> what.
>
> Here is the list.
>
> *[  PASSED  ] 1904 tests.*
> *[  FAILED  ] 3 tests, listed below:*
> *[  FAILED  ] FetcherTest.Unzip_ExtractFile*
> *[  FAILED  ] FetcherTest.Unzip_ExtractInvalidFile*
> *[  FAILED  ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries*
>
> Here is the test output:
>
> *[ RUN      ] FetcherTest.Unzip_ExtractFile*
> *../../src/tests/fetcher_tests.cpp:870: Failure*
> *(fetch).failure(): Failed to fetch all URIs for container
> '709de28f-5f71-439d-a032-072df865090f': exited with status 1*
> *[  FAILED  ] FetcherTest.Unzip_ExtractFile (297 ms)*
> *[ RUN      ] FetcherTest.Unzip_ExtractInvalidFile*
> *../../src/tests/fetcher_tests.cpp:936: Failure*
> *Value of: os::exists(extractedFile)*
> *  Actual: false*
> *Expected: true*
> *[  FAILED  ] FetcherTest.Unzip_ExtractInvalidFile (201 ms)*
> *[ RUN      ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries*
> *../../src/tests/fetcher_tests.cpp:997: Failure*
> *(fetch).failure(): Failed to fetch all URIs for container
> 'dd749015-3d16-4926-b7f3-e1c96211a461': exited with status 1*
> *[  FAILED  ] FetcherTest.Unzip_ExtractFileWithDuplicatedEntries (201 ms)*
>
> Is this expected or do I need to fix something? Can someone please point
> me in the right direction?
>
> Thank you
>
> --
>
> <https://www.hackerrank.com/>
>
> Shiv Deepak▌
> Engineering Manager
>
> HackerRank
>
> Blog <https://blog.hackerrank.com/> / Twitter
> <https://twitter.com/hackerrank> / Linkedin
> <https://www.linkedin.com/company/hackerrank/> / Facebook
> <https://www.facebook.com/hackerrank/>
>
>