| Summary: | [prov] Run the test framework on provisioned SDK | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | DJ Houghton <dj.houghton> | ||||||||||||
| Component: | p2 | Assignee: | DJ Houghton <dj.houghton> | ||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||
| Severity: | normal | ||||||||||||||
| Priority: | P3 | CC: | john.arthorne, kim.moir, overholt, pascal | ||||||||||||
| Version: | 3.4 | ||||||||||||||
| Target Milestone: | 3.4 M6 | ||||||||||||||
| Hardware: | All | ||||||||||||||
| OS: | All | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Bug Depends on: | 222125, 222341 | ||||||||||||||
| Bug Blocks: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
DJ Houghton
Not for M3, I guess. I took a quick stab at this, but it immediately bombed:
Can't install org.eclipse.equinox.p2.metadata.generator/0.1.0.v20080205-2202 from location file:plugins\org.eclipse.equinox.p2.metadata.generator_0.1.0.v20080205-2202.jar
org.osgi.framework.BundleException: An error occurred trying to read the bundle
at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:94)
at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:937)
at org.eclipse.osgi.framework.internal.core.Framework$1.run(Framework.java:823)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:904)
at org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:818)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:210)
at org.eclipse.equinox.simpleconfigurator.internal.ConfigApplier.installBundles(ConfigApplier.java:182)
at org.eclipse.equinox.simpleconfigurator.internal.ConfigApplier.install(ConfigApplier.java:60)
at org.eclipse.equinox.simpleconfigurator.internal.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:109)
at org.eclipse.equinox.simpleconfigurator.internal.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:123)
at org.eclipse.equinox.simpleconfigurator.internal.Activator.start(Activator.java:49)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1073)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:632)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:280)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBundle.java:153)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:643)
Created attachment 92076 [details]
Proposed fix
This patch changes the test framework to unzip test plugins into the dropins folder rather than plugins. This seems work except the plugins added to dropins don't all seem to be installed on the first startup. If you run the tests a second time without cleanup, it succeeds on the second run.
One general problem is that the various test.xml files in the different Eclipse components reference the library.xml file by path:
<property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>
These should be changed to:
<property name="library-file" value="${eclipse-home}/dropins/eclipse/plugins/org.eclipse.test/library.xml"/>
In this patch, we define the "library-file" property directly in the master test.xml in releng, and this works. There may be other cases where people have test.xml scripts that reference library.xml or other scripts by path that are now in different a different location.
DJ says "The linux shell scripts must also be changed to extract the org.eclipse.test plugin to the dropins folder". Kim, this is the patch for running the tests on a p2 provisioned SDK. Note Pascal's note in comment #4 that we have to update the runtests for Linux as well. Created attachment 92092 [details]
Updated patch
Added:
+ Linux script change
+ Run eclipse -initialize so that reconcile happens and test application is found.
patch released, starting test build with a restricted set of of tests. Don't have time to run them all tonight. Kim, I see the incoming change in org.eclipse.test (in HEAD) but not in the eclipsebuilder project. Are you using the one from HEAD for the build or a tag from a branch? Yes in p2integration2 branch Created attachment 92235 [details]
this is the .log that results when trying to run the tests in I20080311-0924
The tests are all failing...I've attached the .log from the first suite.
Created attachment 92368 [details]
.log from running tests on I20080312-1200
Created attachment 92546 [details]
.log from running tests on N20080313-2106
See also bug 222871 and bug 222895. Fixed. |