-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable pde build tests #905
Conversation
Even though no search path is provided we need to decode the URL and see if we can find the schema in the current workspace. Also fixes an issue where schema can't be opened by double click on linux. Fix eclipse-pde#890
6ef2284
to
55d881a
Compare
Enabling them is a good idea, but before this is submitted the tests should of course pass. So fixing #884 is a prerequisite. |
55d881a
to
37a9bca
Compare
f6dcd30
to
c7eeb58
Compare
c7eeb58
to
baa56b4
Compare
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-surefire-plugin</artifactId> | ||
<configuration> | ||
<dependencies> | ||
<dependency> | ||
<type>eclipse-plugin</type> | ||
<artifactId>org.eclipse.osgi.compatibility.state</artifactId> | ||
<version>0.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<type>p2-installable-unit</type> | ||
<artifactId>org.eclipse.equinox.executable</artifactId> | ||
<version>0.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<type>eclipse-feature</type> | ||
<artifactId>org.eclipse.sdk</artifactId> | ||
<version>0.0.0</version> | ||
</dependency> | ||
</dependencies> | ||
<testRuntime>p2Installed</testRuntime> | ||
</configuration> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really necessary to have it installed at that stage (my concern is that test execution in requirements aren't so portable)?
Could it be replaced by some instructions in p2.inf?
Could it be replaced by creation of a TargetPlatform in the tests that would consist of running target?
Do you really need it as "p2installed", or would running this setting the right testProduct/testApplication
to usual SDK values be sufficient? p2installed
is usually useful only when there are crazy things like touchpoints or when you need the files to be organized on disk similarly to an installation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really necessary to have it installed at that stage (my concern is that test execution in requirements aren't so portable)?
I tried without but didn't work so well... I have no clue why the compatibility
is not discovered automatically but it seems a common problem.
Could it be replaced by some instructions in p2.inf?
Probably yes, but last time I tried it wasn't that obvious and introduced build cycles in aggregator.
Could it be replaced by creation of a TargetPlatform in the tests that would consist of running target?
The problem is that the test don't start at all, the only good think is that one can easily try this standalone and play around by go into the folder eclipse.pde/build/org.eclipse.pde.build.tests
and execute mvn clean verify
and it is also quite fast.
Do you really need it as "p2installed"
p2installed
was just something I tried here because the test do special stuff, especially require that the plugins are exploded, that an installation location is set and so on, I haven't debugged this in detail and there might be mitigations but as pde-build is nothing I have experience with its hard for me to decide.
p2installed is usually useful only when there are crazy things like touchpoints or when you need the files to be organized on disk similarly to an installation.
I fear that's the case here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no clue why the compatibility is not discovered automatically but it seems a common problem.
It's a fragment of org.eclipse.osgi, and it's required whenever one invokes Platform.getPlatformAdmin()
.
I added it (in p2.inf) and see that it indeed seems to require a full installation (using the simpleconfigurator/bundles.info file).
But I see the text.xml file contains 2 launches, one with a system property. Passing this system property may help running the tests here.
I'm actually curious as to whether PDE would handle this case as well without enabling p2.
I've opened #927 with further configuration to run the tests. I get 12 failures locally that I believe are all caused by the missing "Delta Pack". |
@mickaelistria thanks for that, I have added a comment in the PR regarding delta-pack. |
Closing in favor of |
At least the test runtime comes up already ...