-
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 the pde-build tests #998
Enable the pde-build tests #998
Conversation
So we have now 3 P2 test failures, @iloveeclipse can you confirm that these are actually run in the ibuild or is my analysis correct that they are actually disabled there? If they are disabled I would propose to disable them here as well, or maybe even delete them WDYT @akurtakov ? |
Jenkins: Test Result (3 failures ) SDK Linux build: I see tests executed on SDK build with no fails. |
Two from tests fail because some features couldn't be found. I assume the tycho need to include them into the target platform for tests. Third fail is a NPE, haven't checked why. |
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.
Thank @laeubi for bringing this up again.
So the profile makes the difference to #980 to prevent the cycle.
Another point is that it looked like the activated tests only use what have been build with the I-builds (see #984) and if I understand the config right, this is no surprise since the test-runtime is p2 provisioned?
This is sadly right (but not the conclusion), this is not because we use The problem is that currently I use the SDK feature, but as it is not build in this reactor, it contains strict version ranges and therefore the currently build versions are not selected. So I need to somehow convince the p2 director to update the pde(build) features to the build versions ones. |
@HannesWell fell free to checkout the PR and make some test locally, the good thing is its quite easy to execute, but p2 installed runtime has some caveats, e.g. it complains that the launcher lib is missing, so one needs to include that as well, also the executable has to be part of the (not yet) supported deltapack provisioning and so on ... but I'm currently working on make this allow to use the new director mojo and even tycho-surefire to simply use a (externally) provisioned install. |
Alright I was confused by this obfuscated statement here: eclipse.pde/build/org.eclipse.pde.build.tests/src/org/eclipse/pde/build/tests/P2TestSuite.java Line 30 in d7a9363
even though I don't understand why we need the property at all if in the |
d593d72
to
a1f1c5a
Compare
This is now fixed, I'm using the new director-mojo now to first created a provisioned sdk install, the test bundle is the installed on top of it, according to my local testing this then installs the version from the build (if it is newer). |
@jukzi I noticed that CodeQL seem to execute the test, is this really required for code analysis or can we have it |
a1f1c5a
to
d078fb0
Compare
isn't taht already done in https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blame/5fd8db2bf030a053655563e856801255323b0db8/.github/workflows/codeQLworkflow.yml#L86? |
d078fb0
to
965c4a2
Compare
Yes sorry for confusion, I think the problem is that I explicitly need to enable it need to think how to archive that... |
965c4a2
to
5dadafc
Compare
I was now able to replicate the deltapack creation as well, there is one test left that probably needs to be enhanced so it does not run into NPE but explains what it was missing. |
Currently pde test are not executed what leads to regressions detected too late. This enables the tests based on a profile only executed for verification builds.
5dadafc
to
d2a16fb
Compare
I think the failing test wants that the profile is actually named |
Only usual maven warnings because of http.service |
It's great to have this again. Thank @laeubi for this work. |
Currently pde test are not executed what leads to regressions detected too late. This enables the tests based on a profile only executed for verification builds.
Please note I have reorganized things a bit to have two explicit executions for tests while the default is suppressed. I also explicitly enabled P2 tests as for me it seems they are all disabled by default.
Locally the
ScriptGenerationTests.testBug238177:873 expected:<4> but was:<5>
fails, I'll submit this anyways here so maybe we can see if it also fails at Jenkins/Github.This also currently disables all tests that use a delta-pack I plan to look into this in a separate step if this one is submitted.