Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-reviews-dev] Test failures

Hmmm…looks like 2.5.6 is failing period.  https://hudson.eclipse.org/sandbox/job/mylyn-reviews-gerrit/877/console

Any ideas, Tomek? I don't see any merged changes that might have failed this..

(Steffen is in Holiday through next week..)

On 2013-08-02, at 2:37 PM, Miles Parker <miles.parker@xxxxxxxxxxx> wrote:

> 
> Hi Francois,
> 
> Following up to Dev list so everyone can benefit from discussion. So, I'm not sure why the unit tests failed. Form looking quickly at your code, my guess is that you tried to access API that isn't available under anonymous access, and so Gerrit barfs on that.
> 
> You shouldn't have to do anything to credentials for builds on Hudson.
> 
> So here's how you setup things to run tests locally. I don't think this is actually documented anywhere.. ;)
> 
> 1. Install VBox support on your machine. Oracle VirtualBox is what i use.
> 2. Cmd-lone cd to {git path}/org.eclipse.mylyn.reviews/org.eclipse.mylyn.gerrit.releng
> 3. "vagrant up"
>   chunk-a-chunk-a… you should have a set of running Mylyn Reviews instances through some kind of Steffen magic.
> 4. Browse to http://localhost:2080/gerrit-2.5.6/#/ to verify above.
> 5. Open org.eclipse.mylyn.reviews.gerrit.tests/local.json (or create it if it doesn't exist)
> 
> You can configre this however you want -- like to test just 2.4.4… :
> 
> [
> {
>  "type": "gerrit",
>  "url": "http://localhost:2080/gerrit-2.4.4/";,
>  "version": "2.4.4",
>  "info": "",
>  "properties":{
> 
>    "default": "1"
>  }
> }
> ]
> 
> 6. Then you should be able to execute the gerrit.tests plugin.
> 
> hth!
> 
> Miles
> 
> 
> 
> On 2013-08-02, at 2:16 PM, Francois Chouinard <fchouinard@xxxxxxxxx> wrote:
> 
>> ------------------------------
>> 
>> Since my patches were in that are, well, I had a bad feeling about my work :-)
> 
> Did you try pushing a trivial change off of master to see if the tests still fail? I just did a rebase to force a build off the last working review that I have.. https://git.eclipse.org/r/#/c/15004/
> 
>> 
>> When I tried to run the unit tests from Eclipse (at work, behind a firewall...), I couldn't even establish a proper connection with mylyn.org.
>> 
>> Back home (no proxy), I had a similar problem when building from maven although the tests went a little farther before hanging:
>> 
>> ------------------------------
>> ...
>> Running testFromValid(org.eclipse.mylyn.gerrit.tests.core.client.rest.SubmitInputTest)
>> Running testExecuteNullOpenIdProviderNullCredentials(org.eclipse.mylyn.gerrit.tests.core.client.OpenIdAuthenticationTest)
>> [ERROR]
>> Running testExecuteOpenIdProviderNullCredentials(org.eclipse.mylyn.gerrit.tests.core.client.OpenIdAuthenticationTest)
>> Authentication failed: [ |  | ]
>> Running repository: http://mylyn.org/gerrit-2.5.6/ [@2.5.6](org.eclipse.mylyn.tests.util.TestFixture$Activation)
>> Running testRefreshConfig(org.eclipse.mylyn.gerrit.tests.core.client.GerritClientTest)
>> Running testGetAccount(org.eclipse.mylyn.gerrit.tests.core.client.GerritClientTest)
>> Running testGetAccountAnonymous(org.eclipse.mylyn.gerrit.tests.core.client.GerritClientTest)
>> Running testGetInfo(org.eclipse.mylyn.gerrit.tests.core.client.GerritClientTest)
>> Running testRefreshConfigCommentLinks(org.eclipse.mylyn.gerrit.tests.core.client.GerritClientTest)
>> Running testInvalidXrsfKey(org.eclipse.mylyn.gerrit.tests.core.client.GerritClientTest)
>> Running testGetVersion(org.eclipse.mylyn.gerrit.tests.core.client.GerritClientTest)
>> Running testPerformQueryAnonymous(org.eclipse.mylyn.gerrit.tests.core.GerritConnectorTest)
>> 
>> [ hangs here ]
>> ------------------------------
>> 
>> It failed at the same spot for my patches but also on the 'master' branch...
>> 
>> It seems to me that gerrit-2.5.6-dev (on mylyn.org) is a test branch where authentication shouldn't be a problem (auth type = DEVELOPMENT_BECOME_ANY_ACCOUNT). Is there anything special I need to do to run the tests (like get proper mylyn.org credentials or something)?
>> 
>> On Hudson, it doesn't even get as far as when I run maven locally ( I run 'mvn clean install --fea'). Any idea why it fails?
>> 
>> 
>> Regards,
>> 
>> --
>> Francois
> 
> Miles T. Parker | Tasktop Labs | Tasktop Technologies  
> email: miles.parker@xxxxxxxxxxx 
> skype: milestravisparker  | web: http://tasktop.com  | blog: http://milesparker.blogspot.com  
> 
> Committer: Eclipse Mylyn Reviews, R4E, Virgo
> Lead: Eclipse Mylyn MFT, AMP 
> 
> Are you passionate about innovation and excellence and interested in joining our team? Tasktop, voted one of the Best Companies to Work for in British Columbia, is hiring!
> 



Back to the top