Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 380035 - o.e.e.p2.tests download pointing to non-existing url
Summary: o.e.e.p2.tests download pointing to non-existing url
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.8.0 Juno   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: Kepler M4   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 379748
  Show dependency tree
 
Reported: 2012-05-18 22:04 EDT by Thanh Ha CLA
Modified: 2012-12-14 15:14 EST (History)
10 users (show)

See Also:


Attachments
p2.test.diff (1.33 KB, patch)
2012-05-18 22:04 EDT, Thanh Ha CLA
no flags Details | Diff
p2.test.diff (1.35 KB, patch)
2012-05-18 22:13 EDT, Thanh Ha CLA
no flags Details | Diff
Patch to use mirror URL (1.66 KB, patch)
2012-10-04 15:54 EDT, Thanh Ha CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thanh Ha CLA 2012-05-18 22:04:07 EDT
Created attachment 215892 [details]
p2.test.diff

The file 
rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/download.eclipse.platform.for.p2.migration.tests.xml

seems to point to a URL that no longer exist causing the download to fail.

http://mirror.csclub.uwaterloo.ca/eclipse/eclipse/downloads/drops/R-3.7.1-201109091335/eclipse-platform-3.7.1-linux-gtk.tar.gz


Attached diff shows the modifications I made to get around this issue.
Comment 1 Thanh Ha CLA 2012-05-18 22:13:45 EDT
Created attachment 215893 [details]
p2.test.diff

Update to use same mirror as original.
Comment 2 John Arthorne CLA 2012-05-25 10:56:12 EDT
The problem is that the 3.7.1 release was moved to the archive in preparation for the Juno release. Updating to 3.7.2 seems reasonable.. it's odd that we're explicitly depending on the Waterloo computer science club mirror though :)
Comment 3 Thanh Ha CLA 2012-10-04 15:54:28 EDT
Created attachment 221921 [details]
Patch to use mirror URL

I decided to improve the patch so that it no longer depends on University of Waterloo mirror.
Comment 4 David Williams CLA 2012-10-05 10:09:43 EDT
(In reply to comment #3)
> Created attachment 221921 [details]
> Patch to use mirror URL
> 
> I decided to improve the patch so that it no longer depends on University of
> Waterloo mirror.

Very cool. Not only that, but by the time it moves to "archives" it should still find it there! (Even though, by then, we will likely want to move up to a more recent version of "previous release" ... but just wanted to compliment your attention to "doing it right"). 

Thank you!
Comment 5 Igor Fedorenko CLA 2012-10-05 10:49:40 EDT
(In reply to comment #4)
> (In reply to comment #3)
> > Created attachment 221921 [details]
> > Patch to use mirror URL
> > 
> > I decided to improve the patch so that it no longer depends on University of
> > Waterloo mirror.
> 
> Very cool. Not only that, but by the time it moves to "archives" it should
> still find it there! (Even though, by then, we will likely want to move up
> to a more recent version of "previous release" ... but just wanted to
> compliment your attention to "doing it right"). 
> 
> Thank you!

I think ability to find archived download is a requirement for LTS, no?
Comment 6 Paul Webster CLA 2012-11-12 15:19:40 EST
Ian, could i get you to include this patch in your 4.2.2/3.8.2 stream?

PW
Comment 7 Krzysztof Daniel CLA 2012-11-13 03:53:28 EST
I think that tests should not download anything - because the eclipse may be built in an environment with network restrictions (pretty common in corporations). From the security point of view, an unverified, unsigned executable is being downloaded...

I'd rather push that bug towards tests refactoring.
Comment 8 Alexander Kurtakov CLA 2012-11-13 03:57:59 EST
If the tests are testing network behaviour too - one can easily use some mocking framework to simulate the needed traffic.
Comment 9 Pascal Rapicault CLA 2012-11-14 10:22:19 EST
These tests are not about testing network connectivity but release to release updates, therefore they need to obtain an existing Eclipse from somewhere.
Comment 10 Lars Vogel CLA 2012-11-22 04:58:07 EST
The current URL breaks the build. To avoid local build failure can we apply the patch with the change of the URL? Looks trivial and should allow for a clean build.

Afterwards the improvements of the tests can be continued to discuss IMHO.
Comment 11 Ian Bull CLA 2012-11-26 01:05:55 EST
I've applied this patch and pushed it to eclipse.org for the R38 maintenance branch. Can someone who has a local CBI running try this and see if it works?

http://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/?h=R3_8_maintenance&id=1cbf73a51be304079404b277c10fe50832bab4d7
Comment 12 Lars Vogel CLA 2012-11-26 06:11:18 EST
Thanks Ian, Platform CBI build works now fine for me. I'm leaving this bug open in case the test should still be adjusted to cover the non-network connect case.
Comment 13 Ian Bull CLA 2012-11-26 13:01:39 EST
(In reply to comment #12)
> Thanks Ian, Platform CBI build works now fine for me. I'm leaving this bug
> open in case the test should still be adjusted to cover the non-network
> connect case.

I don't think we should handle that case. To fully test all aspects of p2 some network access will be required -- this is why we have 'integration' tests. However, I don't think that users should necessarily need to run the full suite of integration tests locally. 

IMHO we should focus our efforts on allowing users to run the unit tests locally, and only the fully end-to-end integration tests if they really want to. That is, if the setup is not in place for a full end-to-end integration tests, the user can disable these tests and still get a working Eclipse install.

I'm marking this bug closed since the originally problem has been addressed.